Skip to main content

Overwrite #global.language?

Comments

5 comments

  • Zendesk API User
    Author: Peter_Jodeleit - 7/21/2023 11:16

    #global is a variable in the scope of the FirstSpirit generation process. There is no relation to the SiteArchitect. So, to be honest, I don't understand which problem you have. Can you elaborate a bit what you mean with the following sentence?

    > In one of our projects we are using the wrong language and it
    > is not possible to change it without major effort.

    0
  • Zendesk API User
    Author: rmx - 7/21/2023 11:48

    Hi Peter, 

    we do have a project which has a language e.g. ru_ac

    After all content has been edited the client figured, that the url needs to only ru and not ru_ac

    In order to not check all templates where we are using #global.language I figured it would be the easiest way to set #global.lang to ru before or while generating.

    Do you have any clue?

    Best regards, 

    Roman 

    0
  • Zendesk API User
    Author: Peter_Jodeleit - 7/21/2023 13:25

    So you intend to modify the language object in the template code? And you do it to get other URLs?

    May I ask which URL Factory the project is using? Because it's the URL Factory which constructs the URL, and maybe there is a simpler solution for your problem.

    0
  • Zendesk API User
    Author: rmx - 7/24/2023 9:44

    Hi Peter, 

    we are using some enhancement of advanced url creator.

    Best regards, 

    Roman 

    0
  • Zendesk API User
    Author: Peter_Jodeleit - 7/24/2023 10:55

    So I assume you use persistent URLs. Then you can use the URLProperties API to change the URL path for the root folder (SiteStoreRoot) to your desired format. E.g. to '/ru' inestad of '/ru_ac'.

    0

Please sign in to leave a comment.