Page 1 of 1

serendipity_event_metadesc not generating meta description

Posted: Sun Apr 19, 2020 7:48 pm
by Piata
I have serendipity_event_metadesc and serendipity_event_social installed on my blog.

serendipity_event_social correctly generates the description like so:

Code: Select all

<meta property="og:description" content="entry description text"/>
But serendipity_event_metadesc outputs the meta description as blank:

Code: Select all

<meta name="description" content="" />
Relevant portion of the tpl looks like this:

Code: Select all

<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" />
<meta name="Powered-By" content="Serendipity v.{$head_version}" / >
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width; initial-scale=1.0" />
{serendipity_hookPlugin hook="frontend_header"}
It's a custom tpl but I'm not doing anything special with it. Any help would be appreciated.

Re: serendipity_event_metadesc not generating meta description

Posted: Wed Apr 22, 2020 7:52 pm
by yellowled
The custom template should be irrelevant since it includes

Code: Select all

{serendipity_hookPlugin hook="frontend_header"}
which is where plugins should emit their custom header code. Plugins can't "rewrite" templates, so they need a place to "hook into".

Are you aware that (as far as I know at least, I don't use either one of them) these are two different values that need to be explicitly set in the respective plugin's configuration? (I sort of sense that you assume that both would just re-use the one description value?)