Discussion:
Jahia 6 Community - Page Url
MesDocs ParMail
2009-03-11 14:48:45 UTC
Permalink
Hi,

I'm currently developping a template container which description is

[my_templates:TestContainer] > jnt:container
smallText TestTitle
bigText TestDescription
page TestURL (page[type="internal,external"])
file TestFile

In my page, I'd like to have the output

<a href=' theReference'>TestTitle</a>

with theReference containing the TestFile downloadUrl or the TestURL url

has anybody an idea how to get a page url ?

Regards,

Mesdocs
Benjamin Papez
2009-03-12 22:52:59 UTC
Permalink
Try this:

<template:field name="TestURL" display="false" valueBeanID="testURL"/>
<a href='${testURL.url}'>...</a>

Just be careful, that in the next release this will be changed and you will
have to use:
<a href='${testURL.page.url}'>...</a>

Regards,
Benjamin
Post by MesDocs ParMail
Hi,
I'm currently developping a template container which description is
[my_templates:TestContainer] > jnt:container
smallText TestTitle
bigText TestDescription
page TestURL (page[type="internal,external"])
file TestFile
In my page, I'd like to have the output
<a href=' theReference'>TestTitle</a>
with theReference containing the TestFile downloadUrl or the TestURL url
has anybody an idea how to get a page url ?
Regards,
Mesdocs
_______________________________________________
template_list mailing list
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
Loading...