Meta tags in template | Community
Skip to main content
New Participant
October 13, 2021
Solved

Meta tags in template

  • October 13, 2021
  • 1 reply
  • 1069 views

Hi,

I am building a editable template and I have head-meta-data.html.

I am also having a component in editable template.

What I want is to pull the component properties in head-meta-data.html.

How can I doe that ?

 

Please help.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sanjay_Bangar

Hi @hptarora ,

            I am saying that you need to create template In that component and using data-sly-template you can call that template in your head.html.

 

Regards,

Sanjay

1 reply

Sanjay_Bangar
New Participant
October 13, 2021

Hi @hptarora ,

        You can use data-sly-template in your head-meta.data.html.

In your component use template tag then you can use this component any where.

Regards,

Sanjay

hptaroraAuthor
New Participant
October 14, 2021

Hi Sanjay,

Thanks for your reply.

I am bit confused. I am already having data-sly-template in head-meta-data.html and I am calling head-meta-data in header.html.

Not sure if you mean to call the head-meta-data.html in component.

Please give me some more info on this.

 

Thanks

Harpreet

Sanjay_Bangar
Sanjay_BangarAccepted solution
New Participant
October 15, 2021

Hi @hptarora ,

            I am saying that you need to create template In that component and using data-sly-template you can call that template in your head.html.

 

Regards,

Sanjay