Oliver
February 22, 2018, 11:20am
#1
I did not get the localizer built into 5.0.3 to run.
What I do is creating a page (called Kontakt) with the following entry:
{{localizer:block:contact/adresse}}
After that, I created 2 blocks inside the folder contact
* adresse-de
* adresse-en
When I try to open the URL http://localhost/Kontakt?locale=de
I just get this:
(!!☠ block ☠!!)
Any ideas, what’s wrong?
Remove block: from the Localizer tag.
1 Like
Oliver
February 22, 2018, 1:49pm
#3
Thanks Jannis, now the block shows up.
Just for understanding, the navigation did not work with localizer right? I have to use superblocks?
Check sb_localizer with a sb_nav.txt
1 Like
Oliver
February 22, 2018, 2:24pm
#5
Like this: {{sb_localizer:sb_nav}}
?
Localizer Tag
{{localizer:block}}
Use links like <a href="?locale=de">Deutsch</a>
to change the language
as “blockname-ja”, “blockname-en”, “blockname-de” - depending on the
There is also a {{sb_localizer}} tag which works like {{sb_blocks}}
This is everything I can find inside the Pulse Manual
2 Likes
Oliver
February 23, 2018, 2:13pm
#6
Standard blocks are no problem anymore but I don’t get the navigation to run.
I have created 2 blocks called sb_nav-de
and sb_nav-en
Now I try to include them into my layout.php
with the following tag: {{sb_localizer:sb_nav}}
That did not work, what I am doing wrong, what is the right way for a multilanguage navigation?
First of all, in your constellation it should be sb_nav.txt
as fallback (=English) and sb_nav-de.txt
, not sb_nav-en.txt
only.
I tested sb_localizer
successfully inside normal content like a page. If it isn’t working in layout.php
, @pulsecms has to check.
1 Like
Oliver
February 23, 2018, 2:59pm
#8
You’re right, it looks like the tag doesn’t work in layout.php
.
I just added the tag to a page and it works here.
This is of course unfavorable for me, because navigation usually comes before the content loop.
1 Like
Michael will know hopefully…
1 Like
Oliver
February 23, 2018, 3:57pm
#10
Okay, I tested it again. Not only the sb_localizer tag does not work in the layout.php but also the normal localizer tag.
That would be good to implement.
What about normal {{block}} tags. Does these work in layout.php ?
Oliver
February 23, 2018, 6:19pm
#12
Yes, normal block tags works inside the layout.php.
Fixed for 5.1 by @instacks Great