Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How to use Links in Liferay Fragments
Hello guys,
I'm trying to create pages with some Fragments on Liferay 7.4. I want to display tiles that link to another page when clicking on the tile.
for this I created following code:
<div class="fragment_getting_started_tile">
<div class="card">
<a data-lfr-editable-id="link" data-lfr-editable-type="link" href="#">
<div class="card-body">
<div class="upper">
<h2 data-lfr-editable-id="title" data-lfr-editable-type="text">Header</h2>
<div>
<img alt="" class="${configuration.imageSize} getting-started-image" data-lfr-editable-id="img" data-lfr-editable-type="image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAYAAAA7KqwyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAkSURBVHgB7cxBEQAACAIwtH8Pzw52kxD8OBZgNXsPQUOUwCIgAz0DHTyygaAAAAAASUVORK5CYII=" />
</div>
</div>
<div class="mute">
<p data-lfr-editable-id="description" data-lfr-editable-type="text">Description</p>
</div>
</div>
</a>
</div>
</div>
This tile gets displayed, but I cant change the title or the description. When I double-click on the elements, I can edit the text, but It does not get saved although the success message appears and says "Success, the page has been published successfully"
Is this a bug? Is there a way to create an editable link for the whole tile?
Greetings
Adrian
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™