Hi Roland,

I see two other solutions which both seem less clunky to me:

1) (and this requires no coding or changes) Assuming that hiding/showing pages 
is something you don't do all the time, you can just explicitly set the 
property to either true or false for each language of the page.

2) Write a custom save handler for the control which explicitly saves a value 
for each language defined in I18nContentSupport, rather than just saving the 
current language value...

Regards from Vienna,

Richard

> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:user-list-owner@magnolia-
> cms.com] Im Auftrag von Roland Polzer (via Magnolia Forums)
> Gesendet: Donnerstag, 21. November 2013 09:18
> An: Magnolia User List
> Betreff: [magnolia-user] Setting i18n=true in dialog of hideInNav
> 
> We are using one website tree for all languages as described in
> http://documentation.magnolia-
> cms.com/display/DOCS45/Language#Language-Onehierarchyormany
> 
> In order to language-specifically hide a document in the navigation it seemed
> logical to set the property i18n=true in /modules/standard-templating-
> kit/dialogs/generic/controls/hideInNav
> 
> But it does not work. The problems:
> 1. The checkboxSwitch property really has three states A) true B) false C) not
> there. Initially it is in state C, after the dialog has been saved it is in A 
> or B 2.
> When the property is not there, the value of the fallback language (en in our
> case) is used. This works well for string properties but is really confusing 
> for
> boolean properties
> 
> Possible solutions:
> I) Change the implementation of checkboxSwitch to allow three states: true,
> false, inherit. Inherit removes the property and the fallback languages are
> used
> II) Use two properties. One with i18n=true, one with i18n=false. Since the
> intention of the property is to HIDE, the document should be hidden if either
> of the properties is true. The fallback language somehow should be disabled
> for this property
> III) Multiple checkboxes. One per language. An additional checkbox for all
> languages or a button which sets/clears all checkboxes using Javascript.
> 
> What do you think?
> 
> Cheers,
> Roland
> 
> --
> Context is everything: http://forum.magnolia-
> cms.com/forum/thread.html?threadId=4de5c2c2-93cc-4e47-bf97-
> 0f46944c40fa
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-
> lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 




----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to