Search code examples
typo3typo3-9.xuid

Dynamic UID to edit the current news item


I use "Frontend_Editing" extension on TYPO3, to edit News items from Frontend.

How can i edit this code to change uid with the value of the current News item :

<core:contentEditable table="tx_news_domain_model_news" uid="9">
    <f:render section="content" />
</core:contentEditable>

Solution

  • I found the solution uid="{item.uid}" need to be uid="{newsItem.uid}"

    So the code is :

    <core:contentEditable table="tx_news_domain_model_news" uid="{newsItem.uid}">
        <f:render section="content" />
    </core:contentEditable>