Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello Admin,
Hope you're doing good. I am using subfolders to create a multi country website. The folder structure is this:
Code: Select all
root
site_root
  |_couch (folder)
  |_en (folder)
  |   |_index.php
  |   |_about.php
  |   |_news.php
  |_es (folder)
  |   |_index.php
  |   |_nosotros.php
  |   |_novedades.php
  |_index.php


Let's say a user is at site_root/en/news, and wants to click on the company logo in an embeded page navigation to go back to site_root/en. Which tag do I use to let that happen. I tried using the code below but checking the anchor link shows blank and clicking on the anchor link keeps me on the same page.

Code: Select all
<cms:link 'index.php' />


NB: I can't hardcode the links because the root folder and all the subfolders share the same navigation file through embed.
Hi,

to go back to site_root/en

You'd actually want to go to 'site_root/en/index.php'.
For that the correct masterpage in cms:link tag is as follows -
Code: Select all
<cms:link 'en/index.php' />

Hope this helps.
Thanks Admin for the quick reply. However I will be using the link (<cms:link 'en/index.php' />) in a snippet which is supposed to appear in all the files in their respective subfolders. So it's supposed to be dynamically generated instead of me hardcoding it.

NB: there are other subfolders too for the different countries:
site_root/en/
site_root/fr/
site_root/dn/
3 posts Page 1 of 1