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

hptarora
Level 2
Level 2

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
bangar50
Correct answer by
Level 7
Level 7

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
bangar50
Level 7
Level 7

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

hptarora
Level 2
Level 2

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

bangar50
Correct answer by
Level 7
Level 7

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