I created my view (datev) that contains two field (date and description).
I renamed my template views-view-datev.html.twig and views-view-fields--datev---block.html.twig.
I already have my CSS but I do not know how to use my template theme.
-
what result are you currently getting? – No Sssweat Feb 26 '16 at 0:07
-
the resultat is : 2016-03-01 Return to the line description – Sony Feb 26 '16 at 0:08
-
I have my CSS to achieve this poster but I do not know how to add ?? how broken down the date for this display – Sony Feb 26 '16 at 0:12
I have my CSS to achieve this poster but I do not know how to add ?? how broken down the date for this display
Add 1 more Content: Even Date field.
Then for each Even Date field, select custom formatter.
for the first one put d
(Note: there seems to be a bug, you will have to do this twice, as when you save the 1st time it does not change)
for the second one put F Y
(Note: there seems to be a bug, you will have to do this twice, as when you save the 1st time it does not change)
Result
PS: You can add CSS classes to your field under the fields STYLE SETTINGS, no need to use template files to add css classes.
Then, for example, you add .cool { border: solid red; }
to your theme's css file.
-
I create content type(Event)contains field Event date(date) and field body(text)and I create my views.How to update this for broken down the date for this display? I don't understand!! – Sony Feb 26 '16 at 0:22
-
-
-
-
How to create Slideshow carousel in Drupal8? I installed Slideshow module and I created my views with my content(photos)I created my view "sliderv" with a field containing several pictures; I reused the view "views-view-Unformatted-sliderv-block-1.html.twig". I already have my CSS and JavaScript,but it's still not work. Thanks! – Sony Feb 26 '16 at 18:52