psi-4ward / news4ward

Contao Extensions: News/Blog based on contentelements
13 stars 12 forks source link

Use Meta data set in blog entries #101

Open UB3RL33T opened 4 years ago

UB3RL33T commented 4 years ago

Hey,

we have a customer that's using the news4ward extension on a Contao 4.4 Installation. The extension allows meta data to be set on a entry-by-entry basis so you can have different meta data for each blog entry I suppose?

Our issue now is, that the meta data set in a blog entry is not available as $this->pageTitle or $this->description in the layout template.

The meta data set in the blog entry can only be printed out inside the blog entry template, meaning the meta data would be set in the <body> instead of the <head> which doesn't make much sense from a SEO perspective.

Is there something wrong on our end, is it a known Issue? Are there plans to fix this or perhaps you could give some pointers how to fix it?

Is there some hook that would allow us to hook onto the current blog entry being parsed?