Forum for discussing general topics related to Couch.
5 posts Page 1 of 1
How can i change this code

<cms:pages masterpage=k_user_template page_id=k_user_id >

to only fetch the info from selected user.

to come to site im using this url

<a href="user-profile.php?id=<cms:show k_page_id />"><cms:show fullname /></a>
kimheggen wrote: How can i change this code

<cms:pages masterpage=k_user_template page_id=k_user_id >

to only fetch the info from selected user.

to come to site im using this url

<a href="user-profile.php?id=<cms:show k_page_id />"><cms:show fullname /></a>



Code: Select all
<cms:set id="<cms:gpc 'id' method='get' />" scope='global' /> 
<cms:pages masterpage=k_user_template page_id=id >

should work.
Image
Would just like to add that the parameter accepted by cms:pages is 'id' and not 'page_id'. So the code should be like -
Code: Select all
<cms:pages masterpage=k_user_template id=id >
KK wrote: Would just like to add that the parameter accepted by cms:pages is 'id' and not 'page_id'. So the code should be like -
Code: Select all
<cms:pages masterpage=k_user_template id=id >


Oops, I missed that - thanks KK :)
Image
Thanks guys, your the best :)
5 posts Page 1 of 1
cron