[opencms-dev] get the link to the right page from the CmsResult
Thomas Kraft
thomas.kraft at synyx.de
Tue Jun 14 14:09:44 CEST 2005
Hi Borja,
hab you tried to pass the link through CmsJspTagLink#linkTagAction ?
This works great for me:
http://synyx.de/api/opencms6b3/org/opencms/jsp/CmsJspTagLink.html#linkTagAction(java.lang.String,%20ServletRequest)
H2h, Thomas
Borja Marcos Suarez schrieb:
> Hi all,
>
>
>
> In a jsp for searching contents I have:
>
>
>
> <dl>
>
> <dt><%= entry.getScore()
> %>% - *<a href=”<%= action.link (entry.getPath()) %>”>*<%=
> entry.getTitle() %>*</a>*</dt>
>
> <dd>
>
>
> <strong>Modificado el:</strong> (<%= entry.getDateLastModified() %>)
>
> <br />
>
>
> <strong>Extracto:</strong><%= entry.getExcerpt() %><br />
>
> </dd>
>
> </dl>
>
> -----------------
>
> action is a CmsJspActionElement object.
>
> entry is a CmsSearchResult object
>
>
>
>
>
> This doesn’t work because the getPath method returns a string beginning
> with /sites/default
>
>
>
> Can anyone tell me how to get the right link from the CmsResult?
>
>
>
> I’m sure that it is very easy but my mind is not working fine today ;)
>
>
>
> Thanks in advance,
>
>
>
> Borja
>
>
> ------------------------------------------------------------------------
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list