This forum is for assistance with theme development.

Views result: more fields in one div

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

How to customize the exposed form in a View?

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?

How to show an image as thumbnail?

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?

{{ fields.field_photo.content}}

Thank you very much.

claudio

DIVs around <label> and <input>

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.

Render add content fields in page--node--add template

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:

HTML Decode of Term Field

Hi Everybody,

I'm stuck with a problem of which I tought I could solve it in a few minutes. Hope you guys can help me out here :-)

I'm trying to show the content of a styled textfield of a taxonomy term. I'm able to get the value of that field:

Pages

Subscribe with RSS Subscribe to RSS - Theme development