Re: Jahia 6 Community - Page Url
Benjamin Papez <[email protected]> Thu, 12 Mar 2009 23:52:59 +0100
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
--===============1665129643==
Content-Type: multipart/alternative; boundary=0016e6de010f85a92d0464f3d81a
--0016e6de010f85a92d0464f3d81a
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
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
2009/3/11 MesDocs ParMail <[email protected]>
> 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
> [email protected]
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
--0016e6de010f85a92d0464f3d81a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Try this:<br><br><template:field name=3D"TestURL" display=3D&q=
uot;false" valueBeanID=3D"testURL"/><br>
<a href=3D'${testURL.url}'>...</a><br><br>Just be caref=
ul, that in the next release this will be changed and you will have to use:=
<br><a href=3D'${testURL.page.url}'>...</a><br><br>Rega=
rds,<br>
Benjamin<br><br><div class=3D"gmail_quote">2009/3/11 MesDocs ParMail <span =
dir=3D"ltr"><<a href=3D"mailto:[email protected]">mesdocs.parmai=
[email protected]</a>></span><br><blockquote class=3D"gmail_quote" style=3D"bo=
rder-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding=
-left: 1ex;">
Hi,<br>
<br>
I'm currently developping a template container which description is<br>
<br>
[my_templates:TestContainer] > jnt:container<br>
smallText =A0 =A0 =A0 =A0 =A0 =A0 =A0 TestTitle<br>
bigText =A0 =A0 =A0 =A0 TestDescription<br>
page =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 TestURL (page[type=3D"internal,ex=
ternal"])<br>
file =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0TestFile<br>
<br>
In my page, I'd like to have the output<br>
<br>
<a href=3D' theReference'>TestTitle</a><br>
<br>
with theReference containing the TestFile downloadUrl or the =A0TestURL url=
<br>
<br>
has anybody an idea how to get a page url ?<br>
<br>
Regards,<br>
<br>
Mesdocs<br>
_______________________________________________<br>
template_list mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list" t=
arget=3D"_blank">http://lists.jahia.org/cgi-bin/mailman/listinfo/template_l=
ist</a><br>
</blockquote></div><br>
--0016e6de010f85a92d0464f3d81a--
--===============1665129643==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
--===============1665129643==--