If you mean "use a Ditto call on page 2", you can use the &parents=`1` parameter to have it get the value from page 1; then [+age+] (and any other placeholders) in your chunk tpl would return the value for page 1.
If you are trying to present a list of profiles, whether of users or any other "people", you might want to look at WebLoginPE instead, as this provides a "list' mode. I've used it for other purposes than for users, as it provides everything you need for creating and managing profiles.
-
- 23 Posts
You said that then [+age+] (and any other placeholders) in your chunk tpl would return the value for page 1, if there is a way that can put the age variable direct in the page2's template without create a chunk ? And can you give me some konwledge about WebLoginPE,I haven't use it untill now.
discuss.answer
Then you don't want Ditto. Try getField
http://modx.com/extras/package/getfield
-
- 23 Posts
wow, Amazing plugin!! Thinks very very very much!!
And I'm wodnering does getFiled competible with modx1.04 version ?
[ed. note: welkang last edited this post 12 years, 1 month ago.]
-
- 1,098 Posts
Yes it is, I used getField since 1.0.2 till now.
Where is loginName coming from? Is it a TV associated with page 5?
-
- 23 Posts
Yes, it is. I have found the reason, because I write it in the content zone which were changed to escape character, so it doesn't work...
-
- 23 Posts
I am confused with the Resource content,when i write some code in it ,it will be wraped with <p></p>. Can you tell me you usually use [*content*] for?