Change Title from CSS List Menu Render Link Title

Dcode warner asked on July 27, 2017 19:04

Can Change the "Render Link title" in the CSS List Menu to show the "Page Title" from CMS > Properties > Metadata > Page Title? Instead of what it's generated bu default.

Screenshot: http://prntscr.com/g12bpy

I've tried various macros but nothing seems to render anything e.g. {% pagetile%} {% DocumentName%}

Correct Answer

Brenden Kehren answered on July 27, 2017 21:40

If you want full control over what is rendered use a universal viewer. The CSS List Menu is meant to be a simple control which will display a pre-formatted hierarchy of pages in an unordered list. Again, very little control over what or how it is rendered.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on July 27, 2017 19:38

The RenderLinkTitle property is a boolean and not a string so what you're trying won't work.

If you used {%DocumentName%} it would only render the current document's name because it doesn't iterate through all of the documents like the list menu is. So I don't believe this will work like you want it to, if it was a string property.

Lastly, I believe this renders the current pages name for the <a> tags title attribute, if checked. Have you tried checking the box and see what renders?

0 votesVote for this answer Mark as a Correct answer

Dcode warner answered on July 27, 2017 19:46

Yes I have checked it and it I does renders the Document name by the default.

0 votesVote for this answer Mark as a Correct answer

Peter M answered on July 27, 2017 20:21 (last edited on July 27, 2017 20:24)

To get meta page title try {%DocumentPageTitle%}

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 27, 2017 20:28

Ok so what are you trying to accomplish then if it's already rendering the document name? Do you want a different field rendered?

Peter M, the macro you supplied won't work because it's a boolean property as I stated in my initial answer.

0 votesVote for this answer Mark as a Correct answer

Dcode warner answered on July 27, 2017 21:29

@Brenden. @Peter M Yes.By default checking the box 'RenderLinkTile' shows the following : gallery

If possible, I like to change to whatever I want. My thought process was usnig the meta pagetitle. Or creating another field. So that it shows: gallery

If not possible, I may have to use a repeater instead. Do you understand

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.