How to use Links in Liferay Fragments

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 18 Join Date: 8/3/22 Recent Posts

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