This forum is for assistance with theme development.

LInk Image field to URL sourced from another Field in Views

I'm not entirely sure of the correct way to describe this,

but I have a View page setup for events.

One field is "Ticket Link" and Another is "Event Image"

The listing page is being displayed via a Structure / View setup.

I want the Image when clicked, to link to the URL that is sourced from the "Ticket Link" field (external links)

How would I do that?

preprocess function crashes when trying to view revisions

I have the following preprocess_node function..

Date Time displays different times

In my twig template for Events I currently have date listed 3 ways:

template_from_string doesn't work

Hi,

I'm trying to allow the user to create a template in a field (type-long, formatted) on a node page, including {{ twig }} within the the string that will be in the field.

If I understand the Twig documentation, I should then be able to call {{ include(template_from_string(node.field.value)) }} to use the content of the field. I would then be able to pass in custom variables, etc. within the theme template.html.twig.

How to customize the display of the form for creating or modifying a type of node ?

I created a template for my nodes of type "article" node--article--full.html.twig

I want to create a template to customize the form for creating and modifying article type nodes. But I can not find a name suggestion for my template. Why is there no suggestion for the form ?

I have tried the template below but the form content does not appear.

node-edit-form.html.twig :

<article{{ attributes.addClass('node--edit node--article--edit') }}>

Breakpoints

Hello,

What breakpoints I supposed to declare inside the breakpoints.yml?

Only the breakpoints which image's change, so I have two, one for mobile and on for desktop and wright the rest media queries inside the responsive image style style with srcset or all of them?

Thank you.

Pages

Subscribe with RSS Subscribe to RSS - Theme development