Using the user preferences system ?

Using the user preferences system ?

Thursday 17 June 2010 5:29:12 am - 3 replies

Author Message

Bruce Morrison

Thursday 17 June 2010 7:12:12 pm

Hi Martin

Have you seen these?

The following methods can be used to retrieve user preferences

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

André R.

Friday 18 June 2010 1:58:35 am

The value can not be an array, it must be a string, but you can of course use a string to represent an array as long as it is legal to put into an url.

Alternatively it also supports values by post, if you want to post value as json or some other format. But I suspect that was added in 4.3 together with 'set_and_exit' which is to be able to use it in ajax calls without regenerating a full page in the background.

Note: value & name has a limit of 100 chars each, I suspect this is because preferences are cached to session, and thus can't be of unlimited size.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

H-Works Agency

Friday 18 June 2010 4:35:30 am

Thanks for your answers, i got it now.

It seems that variables stored with this system are recorded in session too.

I didn't knew there were an API documentation website...will be very useful for me.

EZP is Great

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.