Expand my Community achievements bar.

SOLVED

Hyperlink Text in Sightly Page Component

Avatar

Community Advisor

Hi Community,

I have one page component in which I have some menu items.

I want to add hyperlink (href) on this like in Home Page using Sightly code. I tried using <a href='geometrixx/en.html' @ scheme='http', extension='html'">Home</a> 

but its not working. Can you please help me to make it clickable so that it will redirect to some other page like in http://localhost:4502/content/geometrixx-outdoors/en.html when you click on Men's on Menu.

~ Prince

1 Accepted Solution

Avatar

Correct answer by
Employee

Expressions are done like this:

${ pageYouWantToLinkTo @ extension='html'}

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

Expressions are done like this:

${ pageYouWantToLinkTo @ extension='html'}

Avatar

Community Advisor

Hi Feike,

Thanks for reply.

It would be great if you will give any example.

~ Prince

Avatar

Level 10

This should work

 <a href="${ pageYouWantToLinkTo @ extension='html'}"  >My Page</a>