This forum is for assistance with theme development.

Sub Theme

How can I get the media file description field in page.html.twig?

I have a media type "mt_packages" registering a PDF and enabled the description field.
Added field "field_packages" with unrestricted media reference to content type "ct_packages" to reference "mt_packages".

How can I get the media file description field in page.html.twig?
I got the URL, but not the description.

Below is the code that got the URL. What should I add to this?
{% for file in node.field_packages %}
  <li>
    {{ file|file_url }}
  </li>
{% end for %}

Polls module - problem with mobile

Does anybody know why modules Polls do not work on mobile devices? Everything is okay either on the desktop or laptop. Mypoll.uk - there is a link to the polls (left sidebar) and if you click on it there everything looks okay but not when you use any mobile. It works only on the desktop. The Drupal version is 9.4.8. Any idea what is going on? 

Yours Faithfully 

Drupal User :) 

Twig in site folder not overriding core files

I am trying to format my login page.  Using the twig debugging, I see that the suggested twig file is page--user--login.html.twig.

It's a multi-site Drupal folder.  So I've created that file and put it in app/web/sites/mysite/themes/uikit/templates/layout/page--user--login.html.twig

But almost nothing I modify in that file, or in the entire layout folder shows on the site.

The twig debugger shows that the site is reading template files from outside of the sites folder.  For example:

Charity Zymphonies Theme 2.0.2

Hello! Has anyone a documentation of this theme?Thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development