This forum is for assistance with theme development.

Theming a field

I have a node that requires a lot of theming for each field.

I'd like to hook into the field in template.php and modify it a little then do my output / frontend in .tpl.php.

What is best practice or maybe a link to documentation on theming the field values of a node?

D8 twig template override reverts when exiting development mode

EDIT/SOLVED: It seems like this was due to a caching issue. For some reason, "drush cr" didn't clear the cache properly, but it seems like clearing the cache from the admin panel did the trick.

Original post below:

I am overriding a node template for a specific view, using the name scheme node--view--view-name.html.twig.

SEO: Pagination --> html-head: <link rel="next" / "prev"... (D8)

Hello,

is there a working solution fur Drupal 8, to include <link rel="next" / "prev"-Attributes into the html-head on paginated Views? Seems like there is no working module available.

Background:

you can now use the HTML link elements rel=”next” and rel=”prev” to indicate the relationship between component URLs in a paginated series.

Reusable Media Tutorial?

I am building a Drupal 8.x theme with reusable media. I find media entities confusing. Is there a dead simple tutorial on how to implement reusable media with D8?

'User' category blocks - Drupal 8

Hi guys,

I've taken the plunge and have started testing out Drupal 8. Loving it so far.

I'm trying to work on the layout of user profiles with blocks. For example, I want to place some fields I set up in a sidebar region. I thought I could just place the block in the sidebar and restrict it to profile pages. However, when I click 'place' for my desired the block from the admin/structure/block page, nothing happens.

I've tried it with all the blocks from the 'user' category and it happens with all of them.

Blocks from other categories work fine.

Adding a "new" icon in menus

Is there an easy way to add an "new" icon in menus? I'd like to show which photogalleries that are new for visitors. And perhaps also in the normal feed, perhaps like "updated" or something similar. I've looked in modules and other places, but haven't found anything that seems to make this happen.

Edit:
I'm running the Aegan theme on my photosite. (fotosbypatrick.com)

Pages

Subscribe with RSS Subscribe to RSS - Theme development