reading values from page-template in Navigation / PageGroup
Author: rbitdd
Publication Date: 10/2/2012 15:03
Hello Community,
in my navigation-function I show some HTML-Code in addition to a value in the page-template.
Now I want to use this code in the page-group again.
The problem ist, that #nav.ref in these both functions is of different datatypes and the function PageGroup is inadequately documented so far.
In my navigation I used this code:
$CMS_SET(set_ref, #nav.ref)$
$CMS_SET(set_page, set_ref.getPage())$
$CMS_SET(set_data, set_page.getData())$
$CMS_SET(set_formData, set_page.getFormData())$
$CMS_IF(set_data.get("pt_new_icon") != null && set_formData.get(#global.language, "pt_new_icon").get() > #global.now)$
HTML-code here...
$CMS_END_IF$
The problem is, that the second line - due to the fact that getPage doesn't exist - won't work.
#nav.ref is of the datatype de.espirit.firstspirit.generate.functions.PageGroupFunctionImpl$PageGroupElement, to which I can't find in the documentation.
Can anybody help me?
Best regards.
D.
Tags: api, navigation, page_template, pagegroup
-
Author: broszeit - 10/15/2012 9:54
Hallo,
man kann mit #nav.ref.node an einen ContentProducer gelangen.
Von diesem aus kommt man dann auch an die jeweilige Seite:
#nav.ref.node.page
Viele Grüße
Rouven
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire