0

I'm using Publisher for translations and also use the URL translation. Now I want to show a menu item "active" based on the URL. But when I get {segment_1} it will return the translated template. So the make an if else statement for showing a active class, I need a lot of OR function to check all different languages. That's not how it should work!

So I wont to know, can I get the default untranslated template name? I thought of something like:

{publisher:segment_1}

But this echo's nothing at all..

Is it possible what I want? And how to?

1

I think you emailed me about this, and it might be a bug when that variable is inside of a snippet as it appears to work when its in a template file directly.

2
  • True, same person ;) Used it in a template and now it works fine! – Timo002 Feb 26 '14 at 16:33
  • Brian also send me a pre release of Publisher where the issue is fixed and this {publisher:segment_1} tag can also be used in snippets! Great support! – Timo002 Feb 28 '14 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.