This forum is for assistance with theme development.

My node theme template is not being registered when output by a view

I have a 'card' view mode for an node bundle called 'event', which I'm displaying in a view block. The view is configured to display each event as content in the aforementioned card view mode. However, my custom theme template node--event--card-display.html.twig does not get applied.

I looked at the suggestions using mytheme_theme_suggestions_node_alter, which was the following:

Drupal 7 / Custom page template

I haven't used Drupal for a few years, now when I am back to my old site there is a problem I can't remember how to solve it. 

I have created a  custom theme and a template 'page--pagename.tpl.php'. It does not seem to pick the page with the name 'root/pagename'. It, however, picks and designs non-existing page if I go to root/pagename. I, of course, cleaned caches. I use local version on xampp.

Would be grateful for any help. 

Altering Password and Confirm Password form fields in the User Registration

Hey Guys,

The Drupal user-interface doesn't provide a way to alter the User name and password fields.

Through using a custom module, I was able to make some changes to the email and username.

However, I have not had luck with the Password and Confirm Password fields.
 

[Advice] Customize Login, Registration and Password Reset

Hey Guys,

I've been using Drupal 9 for about 5 months now.. I still consider my self somewhere between newbie & Junior level.

I want to customize the Login, Registration and Password reset form..

Attempts so far:

Use Hook or EVA to reference taxonomy within paragraph - SOLVED

Hello Drupal users,

New to Drupal and I need help with this new feature I'm trying to port from my old website.

I've created a new "Film" content type with a "credit" paragraph which works like this :

  • Film
    • Paragraph "Credit" with two fields :
      • "Job" Taxonomy (eg: "Director")
      • "Person" Taxonomy (eg "John Smith")

A film can have as many "Credit" paragraphs as needed.

Create credits for content - SOLVED

Dear Drupal users,

I'm migrating several websites from a self-coded solution (mysql / PHP) to Drupal 10.

It's working great but there is one thing that I can't achieve and is holding me back:

I'd like to create credits for my new content type "film" that I've created.

A credit is composed of a name (John Smith) and a job (Director). And I'd like to have several of those for each film post.

How could I achieve this ?

Pages

Subscribe with RSS Subscribe to RSS - Theme development