Dialog property retrieval on page via sightly | Community
Skip to main content
New Participant
February 8, 2016
Solved

Dialog property retrieval on page via sightly

  • February 8, 2016
  • 12 replies
  • 20522 views

Hi All.

Doubt as below :

In component.html, we have a section as below :

<div class="col-xs-12 col-md-6" data-sly-test="${currentPage.title}">

<a href="something.pdf" class="icon-link doc_link_more"><span data-fi-lb>View  ${currentPage.title}</span></a>

  </div>

1] Here if I try with the above, it works fine and getting me the page title value.

2] However, if I try with another custom property at the page jcr:content level[i.e, at sme level where title is present] and of type "String" only, it is not displaying anything.

3] Also, there are couple of dialog properties[of type "String"] that I have to retrieve, which is also not coming up on the page.

Any thoughts/pointers on this will be really helpul.

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 edubey

Why are you trying.. "${currentPage.properties.customproperty}"

You should use "${properties.customproperty}"

12 replies

edubey
New Participant
February 8, 2016

you can access a value like

${ properties['jcr:title'] }

OR

${ properties.jcr:title }

However, I would insist you to share the exact piece of code you are trying to use.

Take a look at http://blogs.adobe.com/experiencedelivers/experience-management/sightly-intro-part-3-2/

smacdonald2008
New Participant
February 8, 2016

 Also, there are couple of dialog properties[of type "String"] that I have to retrieve, which is also not coming up on the page.

See this article: 

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

For other questions - read here: 

https://docs.adobe.com/docs/en/aem/6-0/develop/sightly.html

Related Articles

Sightly Introduction part 1
Sightly Introduction part 2
Sightly Introduction part 3
Sightly Introduction part 4
Sightly Introduction part 5
Sightly and Client Libraries
Sightly and Date Formatting

Hope this helps.