bjornbjorn / wda-pages

Wedoaddons.com pages
0 stars 1 forks source link

Can I put variable fields (like rates) in the meta description in the SEO Lite #1

Open sw-tt-dhavaldhrangadhariya opened 5 years ago

sw-tt-dhavaldhrangadhariya commented 5 years ago

Hello Sir,

I am using SEO Lite addon for seo purpose on expressionengine 4.

I am facing below issue

I want to add exp:low_variables in meta description and need to parse in template and I am trying parsing the variable using this {exp:allow_eecode} addon but it is not working.

Do you have any idea about how to put variable in seo lite meta description and parse it in template

Can you please help me to resolve this issue.

bjornbjorn commented 5 years ago

Hi there, sounds like a classical parse order problem, yup.

Could you please post the template code you're using that's not working?

sw-tt-dhavaldhrangadhariya commented 5 years ago

Hello Sir,

My sample code will be as below

Meta description written in SEO Lite tab in channel code will be as below

Test {exp:low_variables:parse var="rate"}{rate:apy}{/exp:low_variables:parse}% rate per year

Template code Will be as below

{exp:allow_eecode}
{exp:seo_lite entry_id="{embed:entry_id}"}
{/exp:allow_eecode} 

Above Template code will not parse the value of low variable.

Waiting for your reply.

sw-tt-dhavaldhrangadhariya commented 5 years ago

Hello Sir,

I am waiting for your reply.

bjornbjorn commented 5 years ago

Hi again,

I think I misunderstood you - I was under the impression that you were having issues with using EE tags in the SEO Lite template, but I see now that you are talking about writing EE tags in the meta description and having them parsed.

Unfortunately that won't work :-/