This forum is for assistance with theme development.

Print Contenttype-Fields in a Contenttype-Template (twig)

Hi,

i'm familar with drupal 7 but new to drupal 8.

What i'm trying to is:
- create a contenttype-template
- print some fields instead of the {{ content }} variable

What i have done so far:
- created my own theme
- with css and js files
- created a templates folder with subfolders content and layout
- copied node.html.twig and page.html.twig from the classy theme

What i want do is print some custom fields as a variable in the node-template.

How can i do that?

Thanks Stefan

Active menu item - D8 and Bootstrap 3

So what is the proper way to get a menu link to show active for the current page?

Thanks

Seven theme -Undefined index/Trying to get property of non-object preprocess_page

Hi all

in my Seven template i had a preprocess_page suggestion to load my custom css by "type & arg" and it works very well BUT in all other pages it returns the error:

<em>
    Notice: Undefined index: node in seven_preprocess_page() (line 43 of [..]/seven/template.php).
    Notice: Trying to get property of non-object in seven_preprocess_page() (line 43 of [..]/seven/template.php).
</em>

My code:

Using default Edit page with custom front-end template

For a new content type in Drupal 6, I made a custom template file called page-node-blog_entry.tpl.php. I got Drupal to recognize and use this for the content type, except it also uses the exact same template instead of an edit page.

How do I set what the edit page is, and is there an easy way to just set it to be the default node edit page?

Can't login when new sub-theme is activated

Hi,

I created a new sub-theme of an existing theme. It works well, when I'm still logged as Admin. But when I log out, I can't log again as admin or as authenticated user, with the normal interface. It's says "access denied". The only way to do it is with the url "site/?q=user".
The problem doesn't happen with other themes. Any idea what is wrong and how can I fix this?

editing views appended text ellipsis

Maybe somebody can point me in the right direction. I have a request to add a space in front of the ellipses for appended text in views. I don't see it in settings anywhere, so I assume I need to go into a template somewhere, but no idea where that might be.

Suggestions?

Pages

Subscribe with RSS Subscribe to RSS - Theme development