<div class="viewsrow">
<div class="photo_field"><img src="photo.jpg"></div><!--end of photo_field div -->
<div class="description_field">
<h6 class="time_field">za 24 juni 20.15</h6>
<h3 class="title_field">Title </h3>
<p>Description will stay here. Description will stay here.
Description will stay here.Description will stay here.
Description will stay here.</p>
<h5 class="price_field">euro:7</h5>
</div><!--end of description_field div -->
Hi all,
I'd like to change the layout of the exposed form of a View in Drupal8.
The fields of the form now appear in a single column, I'd like to have a form with two columns.
Which is the best way to do this?
Hi guys,
I'm modifying the template views-view-fields.html.twig in a custom theme (in Drupal8).
In this template, I'd like to show an image-field not in its full size but as a thumbnail or in a smaller size.
Is it possible?
How should I change this code?
I need to add DIVs around and tags for each form element in a custom form for theming purposes. I can do it in theme_form_element() function, however it will change the tags for all forms. Please suggest an approach to do it for a specific form.
I'm using Drupal 7.55. I have an page--node--add template for adding content in my own design. Now I want to render the fields that I created in that content type to be fill in node/add page. I have tried many ways to render each field in my page--node--add but I can't.
For example I tried <?php print render(field_view_field('node', $node, 'field_name', array('label'=>'hidden'))); ?>
but I get this error: