We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24854
    • 10 Posts
    Hi everybody !

    I have a multisite Modx and it’s working.

    But i have a very funny pb, i need an escape char, when, i concat a chunk, or modx tpl var to a slash. I get nothing !

    Look with that example.:
    I have 2 directory
    /assets/images/domain1/ and /assets/images/domain2/

    domain1 and domain2 are in tplvar host_url

    If i Put
    <img src='/assets/images/[*host_url*]/logo.gif'>

    print
    <img src='/assets/images//logo.gif'>

    the tpl var is not displayed because of the following slash .. /logo.gif
    if i just try to display the [*host_url*] it’s working.

    I try too with a chunk but same result
    <img src='/assets/images/{{host_url}}/logo.gif'>

    print
    <img src='/assets/images//logo.gif'>

    (The chunk is working without the slash after.


    So i’m looking for an escape char to make something like
    <img src='/assets/images/[*host_url*]\/logo.gif'>

    or
    <img src='/assets/images/[*host_url*]///logo.gif'>

    or
    <img src='/assets/images/[*host_url*]]/logo.gif'>


    just to be able to concat a tplvar and a slash !

    If you can explain that’s will be nice !

    Have a nice day.

    Represent7.0
      • 24854
      • 10 Posts
      Sorry for that, i’m a moron !

      domaine1 and domaine2 were rename besauce of urlrewriting fur multisite !