Problem/Motivation

I would like to see that we can have two templates for doing the submitted by. Currently it only shows submitted.html.twig as a suggestion, however I would like to see one for the main content and one for comments. I thought I would just add a suggestion myself in the theme file however either I am missing something or the hook just doesn't want to play nice.

Thank in advance

Comments

Christopher Riley created an issue. See original summary.

adamps’s picture

I thought I would just add a suggestion myself in the theme file however either I am missing something or the hook just doesn't want to play nice.

Same for me😃. The problem is that 'submitted' has base hook = username, so the suggestions come from the base hook. Tricky.

adamps’s picture

Maybe we can just remove the base hook. I tried it and I can't see any problems so far.

adamps’s picture

Maybe we can just remove the base hook.

No that doesn't work, because template_preprocess_username isn't called.

I believe we need to change the approach of the submitted formatter to solve this is: #3344232: Improvements to Submitted Formatter.

adamps’s picture

Version: 2.0.x-dev » 3.x-dev
adamps’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.