Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Im working on making a page showing all the info that is ediable in profile. But this can only be shown if loged in and \the user can only se his info.

I tryid this but then i get info about all users!

profile-info.php in USERS getting info from profile.php I THINK!!!

<cms:pages masterpage=k_user_template page_id=k_user_id >

<cms:show k_page_title />

</cms:pages>

But i now see all the usernames.....
I think that is because the parameter to set would be 'id' and not 'page_id'
<cms:pages masterpage=k_user_template page_id=k_user_id >

Please make the change and let us know if that works.
KK wrote: I think that is because the parameter to set would be 'id' and not 'page_id'
<cms:pages masterpage=k_user_template page_id=k_user_id >

Please make the change and let us know if that works.


Perfect, now it works!!!

But one more question: I used the 'datetime' tag like this:

<cms:editable
type='datetime'
name='start_date'
label='Date of Birth'
months='januar, february, march, april, mai, june, july, august, september, october, november, december'
format='dmy'
show_labels='0'
default_time='dd-mm-yyyy'
fields_separator='.'
allow_time='0'
/>

But showing the time and the order of YMD wrong? 1970-03-10 00:00:00

Should be like this: 10.03.1970
Internally all dates are stored in Y-m-d h:i:s format so what you are seeing is normal behaviour.

For displaying the dates in whatever format you desire, you need to use the <cms:date /> tag.
Please see http://docs.couchcms.com/tags-reference/date.html
4 posts Page 1 of 1