[TYPO3-mvc] authentication with extbase
Bastian Waidelich
bastian at typo3.org
Tue Nov 10 10:47:27 CET 2009
Elías Fernández wrote:
Hi Elías,
let me give it a try:
<f:if condition="{empresas}">
<f:then>
<p class="bodytext">Here is a list of empresas:</p>
<ul>
<f:for each="{empresas}" as="empresa">
<li>
<h3>
<f:link.action action="index" controller="Empresa"
arguments="{empresa: empresa}">{empresa.name}</f:link.action>
</h3>
<p>
{empresa.description -> f:format.nl2br()}
<f:link.action action="edit" controller="Empresa"
arguments="{empresa:
empresa}" pageUid="{settings.editPageUid}">Edit</f:link.action>
<f:link.action action="delete" controller="Empresa"
arguments="{empresa: empresa}">Delete</f:link.action>
</p>
<p>
<strong><f:link.action action="add">Crear un nuevo
blog</f:link.action></strong>
</p>
</li>
</f:for>
</ul>
</f:then>
<f:else>
<p>
<strong><f:link.action action="add">Crear un nuevo
blog</f:link.action></strong>
</p>
</f:else>
</f:if>
(untested)
> and i don´t know how to link "edit" action to a different page id.
There are a lot of arguments for the action link/uri view helper (see
https://svn.typo3.org/TYPO3v4/CoreProjects/MVC/fluid/trunk/Classes/ViewHelpers/Link/ActionViewHelper.php).
One of those is "pageUid".
Best regards,
Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list