On Wed, Feb 25, 2009 at 2:10 PM, Hans <[email protected]> wrote:
>
> I am just looking over the code of ShowHide once more and wonder about
>  a couple of adjustments:
>
> 1. What shall be the default toggle state? Shall a div or object by
> default be hidden or shown initially, if no init= parameter is set?
> There can be reasons for both....

Doesn't matter much, so long as you can toggle with a parameter in the
function markup.

> 2. Cookie naming: I added a cookie prefix string, which is useful to
> keep for instance cookies from one field separate from cookies from
> another field. But now i think this cookie prefix should be a root
> BOLTconfig variable, to be set if wanted in site.config with
>
> cookieprefix: string

Possible. There is a cookie plugin but no prefix settings to my
recollection. Should add some comparable code there to keep all cookie
things together. Then again maybe not. Another option, probably
simpler, is to just use the global $fieldName variable. Makes a nice
value.

> This can be used by other plugins setting cookies.
>
> I also included a skinname component for the cookie name, because in
> the past i used Showhide in skins, and i did want to have unique
> cookie names for each skin.
>
> so what do you think?

Not sure I get this one, but you can do what you want with your skin.
Esp if the plugin is being tightly integrated into the skin. Should be
optionally though, if snippet not found, of course.

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to