In my Liferay fragment I have created an editable tag via Fragment Specific Tags and Freemarker code to make it editable to the page editor. The code looks like this:
<a href="#placeholder"
data-lfr-editable-id="my_id"
data-lfr-editable-type="link"
>Placeholder</a>
Additionally to the <a> tag I want to render a Web Component on the same page and reuse the data from the Fragment Specific Tag (the href, the link label, the target - basically everything that is stored via data-lfr-editable-id).
What I am searching for is a way to access the data referenced by the data-lfr-element-id. The pseudo code could look something like this (getFragmentSpecificTagById() is a placeholder for the code that I am looking for):
[#assign myHref = getFragmentSpecificTagById("my_id").href]
[#assign myLabel = getFragmentSpecificTagById("my_id").label]
<my-button
href="${myHref}"
label="${myLabel}"
></my-button>
Your help is highly appreciated.