Jahia DX > jnt:languageSwitcher...

0 (0 Good)
0 (0 Bad)

jnt:languageSwitcher in studioOnly??

by  rvt »  2011/06/07 18:04

Hello!,

this might not be a biggy, but I recently wanted to add a languageSwitcher in editMode, and it seems that this is now prevented. i think it should be possible to add a jnt:languageSwitcher in editMode aswell.

When you create a template, it's not always known yet if a site is going to be multi-langual. So it's best to create a placeholder in the template, and then during editMode add it to the (read) Area or not.

Is there a good reason to have jnt:languageSwitcher in studioOnly only? May be I missed something?

Ries
  • jnt:languageSwitcher in studioOnly??
    2011/06/07 18:04

    rvt Hello!,<br/><br/>this might not be a biggy, but I recently wanted to add a languageSwitcher in editMode, and it seems that this is now prevented. i think it should be possible to add a jnt:languageSwitcher in editMode aswell.<br/><br/>When you create a template, it's not always known yet if a site is going to be multi-langual. So it's best to create a placeholder in the template, and then during editMode add it to the (read) Area or not.<br/><br/>Is there a good reason to have jnt:languageSwitcher in studioOnly only? May be I missed something?<br/><br/>Ries

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: jnt:languageSwitcher in studioOnly??

    by  faissah »  2011/06/07 18:04

    Hello Ries,

    We put the jnt:languageSwitcher in studioOnly only because we believe that this component is not very useful for contributors. This is more a component that will be used in the integration process therefore trough the Studio.

    Regards,

    Fabrice

    Fabrice  (faissah)

    Number of messages  264
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: jnt:languageSwitcher in studioOnly??

    by  rvt »  2011/06/07 18:04

    Fabrice,

    thank you for responding.

    I understand the reasoning, but this also implies that you cannot have a template that needs to function both in single language module and multi language module. Because the language switchers would therefor be always visible even in single language.

    I do understand that you want to restrict some access to contributors, but would it then not be nice that you can set on the template a global option what content can and cannot be added? or may be through some sort of permissions system?

    If you do it what you suggest you always need to make two templates available in case a template can be used in single and multi-language. I do believe this restricts freedom for integrators at various levels.

    Just my 2 cents...

    Ries

    PS: The way this is solved in TYPO3 for example is that you can give permissions to use and/or groups to what content they may add. This is configured through a GUI where you can select the content types ad user is allowed to use.
  • Re: jnt:languageSwitcher in studioOnly??
    2011/06/07 18:04

    rvt Fabrice,<br/><br/>thank you for responding.<br/><br/>I understand the reasoning, but this also implies that you cannot have a template that needs to function both in single language module and multi language module. Because the language switchers would therefor be always visible even in single language.<br/><br/>I do understand that you want to restrict some access to contributors, but would it then not be nice that you can set on the template a global option what content can and cannot be added? or may be through some sort of permissions system?<br/><br/>If you do it what you suggest you always need to make two templates available in case a template can be used in single and multi-language. I do believe this restricts freedom for integrators at various levels.<br/><br/>Just my 2 cents...<br/><br/>Ries<br/><br/>PS: The way this is solved in TYPO3 for example is that you can give permissions to use and/or groups to what content they may add. This is configured through a GUI where you can select the content types ad user is allowed to use.

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: jnt:languageSwitcher in studioOnly??

    by  faissah »  2011/06/07 18:04

    Hello Ries,

    Thank you for the feedback. I will definitely forward this suggestion to the team. This could be a nice feature for the upcoming releases.

    Fabrice

    Fabrice  (faissah)

    Number of messages  264
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Re: jnt:languageSwitcher in studioOnly??

    by  filip »  2011/11/23 18:08

    Hi Ries and Fabrice,

    I was just wondering about the language switcher, when I found this post.

    I am still using r38205 of Jahia - and I would like to know if in the Service Pack the language switcher is available in edit mode.

     

    Furthermore - I would like to resolve a mystery:

    In the demo ACME site - there is a language switcher. However, this language switcher is nowhere to be found in the Sutido - I mean - there is no such module in the base or home templates. The repository explorer finds only one instance of the language switcher and it is under: /sites/ACME/home/Header-right/languageSwitcher

     

    Could someboyd unravell this mystery and say how the languageSwitcher ended on the ACME site, if it is not available in edit mode, but is not found on the base or home templates in templates-web-vlue

     

    Thanks,

    Filip

     

     

  • Re: Re: jnt:languageSwitcher in studioOnly??
    2011/11/23 18:08

    filip <p> Hi Ries and Fabrice,</p> <p> I was just wondering about the language switcher, when I found this post.</p> <p> I am still using r38205 of Jahia - and I would like to know if in the Service Pack the language switcher is available in edit mode.</p> <p> &nbsp;</p> <p> Furthermore - I would like to resolve a mystery:</p> <p> In the demo ACME site - there is a language switcher. However, this language switcher is nowhere to be found in the Sutido - I mean - there is no such module in the base or home templates. The repository explorer finds only one instance of the language switcher and it is under: /sites/ACME/home/Header-right/languageSwitcher</p> <p> &nbsp;</p> <p> Could someboyd unravell this mystery and say how the languageSwitcher ended on the ACME site, if it is not available in edit mode, but is not found on the base or home templates in templates-web-vlue</p> <p> &nbsp;</p> <p> Thanks,</p> <p> Filip</p> <p> &nbsp;</p> <p> &nbsp;</p>

  • Number of messages  23
    Registration date Nov 23, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: jnt:languageSwitcher in studioOnly??

    by  rvt »  2011/11/24 14:27

    Filip,

    All I can imagine is that the language switcher was added before the removed it from edit mode and thus still is visible on the ACME site.

    It's been a while since I worked with a multi-language site, but if you created your own template that was based on default, then try adding this to your definitions.cnd file:

     

    [jnt:languageSwitcher] > jnt:content, jmix:siteComponent
     - typeOfDisplay (string,choicelist[resourceBundle]) = isoLocaleCountryCode mandatory indexed=no < isoLocaleCountryCode,languageCode,doubleLetter,letter,nameInLocale,nameCurrentLocale,flag,flagPlain,flagShadow

    Essentially it's a copy of the lines from the definitions.cnd file from default, but with jmix:studioOnly removed. When I tested this (at the time..) it worked without issues.

    Up till today I have no idea why a language switcher should be studio only because I have seen many cases where a template can be used in single language and multi langguage....

    Ries

     

  • Re: Re: Re: jnt:languageSwitcher in studioOnly??
    2011/11/24 14:27

    rvt <p> Filip,</p> <p> All I can imagine is that the language switcher was added before the removed it from edit mode and thus still is visible on the ACME site.</p> <p> It&#39;s been a while since I worked with a multi-language site, but if you created your own template that was based on default, then try adding this to your definitions.cnd file:</p> <p> &nbsp;</p> <blockquote> <div> [jnt:languageSwitcher] &gt; jnt:content, jmix:siteComponent</div> <div> &nbsp;- typeOfDisplay (string,choicelist[resourceBundle]) = isoLocaleCountryCode mandatory indexed=no &lt; isoLocaleCountryCode,languageCode,doubleLetter,letter,nameInLocale,nameCurrentLocale,flag,flagPlain,flagShadow</div> </blockquote> <p> Essentially it&#39;s a copy of the lines from the definitions.cnd file from default, but with&nbsp;jmix:studioOnly removed. When I tested this (at the time..) it worked without issues.</p> <p> Up till today I have no idea why a language switcher should be studio only because I have seen many cases where a template can be used in single language and multi langguage....</p> <p> Ries</p> <p> &nbsp;</p>

  • Number of messages  185
    Registration date Nov 24, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Re: jnt:languageSwitcher in studioOnly??

    by  rvt »  2011/11/24 14:31

    We put the jnt:languageSwitcher in studioOnly only because we believe that this component is not very useful for contributors. This is more a component that will be used in the integration process therefore trough the Studio.

    Fabrice,

    Specially in contribution mode a web-admin can specify what components can and cannot be added to specific areas within a website thus it's already easy to only allow components on areas that are applicable. What we currently talk here is Edit mode, user sin Edit mode should know what they are doing, right?

    I think a really usefull feature would be that we can assign to groups, individual users, pages/sites what components they can work on, this would for me specially appeling for users in Edit mode (since with contribute it can be specified per area already). This way also the component list will be reduced to only the components that are applicable.

    For example, let's say you have in one Jahia installation two websites, and you make a component for one specific website only, it's currently ( as I can see it so far) impossible to hide that component in a specific site.

  • Re: Re: jnt:languageSwitcher in studioOnly??
    2011/11/24 14:34

    rvt <blockquote> <p> We put the jnt:languageSwitcher in studioOnly only because we believe that this component is not very useful for contributors. This is more a component that will be used in the integration process therefore trough the Studio.</p> </blockquote> <p> Fabrice,</p> <p> Specially in contribution mode a web-admin can specify what components can and cannot be added to specific areas within a website thus it&#39;s already easy to only allow components on areas that are applicable. What we currently talk here is Edit mode, user sin Edit mode should know what they are doing, right?</p> <p> I think a really usefull feature would be that we can assign to groups,&nbsp;individual users, pages/sites what components they can work on, this would for me specially appeling for users in Edit mode (since with contribute it can be specified per area already). This way also the component list will be reduced to only the components that are applicable.</p> <p> For example, let&#39;s say you have in one Jahia installation two websites, and you make a component for one specific website only, it&#39;s currently ( as I can see it so far) impossible to hide that component in a specific site.</p>

  • Number of messages  185
    Registration date Nov 24, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: jnt:languageSwitcher in studioOnly??

    by  shuber »  2011/11/25 07:23

     

    I think a really usefull feature would be that we can assign to groups, individual users, pages/sites what components they can work on, this would for me specially appeling for users in Edit mode (since with contribute it can be specified per area already). This way also the component list will be reduced to only the components that are applicable.

    For example, let's say you have in one Jahia installation two websites, and you make a component for one specific website only, it's currently ( as I can see it so far) impossible to hide that component in a specific site.

    Ries, I am happy to say that we have worked on this and it should be coming in a future version of Jahia :)

    Regards,

      Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Re: jnt:languageSwitcher in studioOnly??

    by  filip »  2011/11/25 11:13

    Hi,

     

    thanks for the info.

    I am almost finishing with my project and I may say, that though I have some issues with Jahia, it is a great platform to work with.

    I feel sorry only that the Workflow features are not present in the communityedition... but hey there is a price to pay ....

     

    Thanks,

    Filip

     

  • Re: Re: Re: Re: jnt:languageSwitcher in studioOnly??
    2011/11/25 11:13

    filip <p> Hi,</p> <p> &nbsp;</p> <p> thanks for the info.</p> <p> I am almost finishing with my project and I may say, that though I have some issues with Jahia, it is a great platform to work with.</p> <p> I feel sorry only that the Workflow features are not present in the communityedition... but hey there is a price to pay ....</p> <p> &nbsp;</p> <p> Thanks,</p> <p> Filip</p> <p> &nbsp;</p>

  • Number of messages  23
    Registration date Nov 25, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page