Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Meta tags in template

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

3 Replies

Avatar

Community Advisor

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

Avatar

Level 3

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

Avatar

Correct answer by
Community Advisor

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