-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML title of a news entry should be the news title (not only "News") #44
Comments
Surprisingly, this is not easy with the way the current templates are made: a news item is actually a news list with one item. Same template, different code paths. But the title is set from within the template. Not saying it's impossible, but it would need to be modified to detect how many news items there are, and in the case there's only one, set the page title with the news title. My TT2-fu is currently too weak for this. |
What exactly is the problem? In the following, the news entries seem to have their title shown properly: |
Oh, I got it: by "HTML title" you mean the content of |
OK, so the main Looking at
but in fact, these would be empty/undef, because the actual title and text are under the Therefore I would suggest replacing those by:
to provide auto-localization. This has the drawback of adding a dependency on The real issue here is to set the Template variables are set using this line:
So we need to fill in the news item title, properly localized. At
We can simply add the title with this line:
As an aside, setting |
The current HTML title of a news entry is only "News".
The text was updated successfully, but these errors were encountered: