1

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.

screenshot

I want it appears like this. enter image description here

  • 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
0

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)

enter image description here

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)

enter image description here

Result

enter image description here

PS: You can add CSS classes to your field under the fields STYLE SETTINGS, no need to use template files to add css classes.

enter image description here

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
  • @sony updated my answer with pictures, I hope you get it now. – No Sssweat Feb 26 '16 at 0:40
  • I have another problem, I would be glad if you help me – Sony Feb 26 '16 at 12:33
  • @Sony what is it? – No Sssweat Feb 26 '16 at 18:03
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.