Foros de discusión
Url links info
Jose Antonio Martinez Pla, modificado hace 12 años.
Url links info
New Member Mensajes: 2 Fecha de incorporación: 29/08/11 Mensajes recientes
Hi everybody,
I'm trying to do next in liferay:
I have one page that has a struct with two components, first one is the title which is required but not repetible and the second one is a "link to page" component which is required and also repetible so that I can have 1 to N links to different community portal pages.
This page has this little velocity script to show the title and all the created links:
--------------------------------------------------------------------------
<h1 class="titulo">$tituloRFP.getData()</h1>
<table class="tabla" cellpadding="0" cellspacing="0">
<tr bgcolor="#dfeaea">
<td class="celda centrado">
<strong>Titulo</strong>
</td>
</tr>
#foreach ($enlace in $enlacesRFP.getSiblings())
<tr>
<td class="celda">
<a href="$enlace.getData()">$enlace.getName()</a>
</td>
</tr>
#end
</table>
--------------------------------------------------------------------------
My question is, how can I make the shown text link (between the "a" tags) to be the name of the targeted page and not the main link name, I mean, now when I watch the page I got something like this...
--------------------
RFP List
/web/12301/27
/web/12301/29
/web/12301/30
/web/12301/31
/web/12301/32
/web/12301/33
--------------------
When I want to have something like this...
--------------------
RFP List
Desarrollo de Aplicaciones (sin migración)
Desarrollo de Aplicaciones (con migración)
Contrato de Servicios
Consultoría
Análisis de Aplicaciones
Mantenimiento de aplicaciones
--------------------
I have tried the getName and getUrl functions without success.
Best regards!!
Bye.
I'm trying to do next in liferay:
I have one page that has a struct with two components, first one is the title which is required but not repetible and the second one is a "link to page" component which is required and also repetible so that I can have 1 to N links to different community portal pages.
This page has this little velocity script to show the title and all the created links:
--------------------------------------------------------------------------
<h1 class="titulo">$tituloRFP.getData()</h1>
<table class="tabla" cellpadding="0" cellspacing="0">
<tr bgcolor="#dfeaea">
<td class="celda centrado">
<strong>Titulo</strong>
</td>
</tr>
#foreach ($enlace in $enlacesRFP.getSiblings())
<tr>
<td class="celda">
<a href="$enlace.getData()">$enlace.getName()</a>
</td>
</tr>
#end
</table>
--------------------------------------------------------------------------
My question is, how can I make the shown text link (between the "a" tags) to be the name of the targeted page and not the main link name, I mean, now when I watch the page I got something like this...
--------------------
RFP List
/web/12301/27
/web/12301/29
/web/12301/30
/web/12301/31
/web/12301/32
/web/12301/33
--------------------
When I want to have something like this...
--------------------
RFP List
Desarrollo de Aplicaciones (sin migración)
Desarrollo de Aplicaciones (con migración)
Contrato de Servicios
Consultoría
Análisis de Aplicaciones
Mantenimiento de aplicaciones
--------------------
I have tried the getName and getUrl functions without success.
Best regards!!
Bye.