Hi
I created a site in two languages, default is Czech and secondary is English.
Everything works fine except custom permalink structure (never mind, I'll try to fix that later again) and also sidebar translation.
I was trying to find some information how to make it work and I didn't find the answer.
What my sidebar does is that...
1) it shows a short and simple contact page with a phone number and a company name (editable in GetSimple pages tab) in the upper part of the sidebar
2) and it shows 3 recent News Manager posts with time and 250 characters of the text.
You can see how it looks and is supposed look here:
However, after switching to English, the sidebar stays in the Czech lang (the rest of the page is translated correctly).
This is my sidebar code:
I read some information that I should use components. As long as the components are PHP themselves, I can't put the php News Manager functions into the components. I tried to put them there without the <?php ?> tags, without succes. I also tried to put it there directly in the .xml file, also without succes.
About the upper part of the sidebar, I could use components for that easily but it wouldn't be editable in the administration's Page tab.
What I would love to know is how to let the whole sidebar be translated when switching the site language?
If it has to be using components, I don't mind, better some solution than none.
Thanks, Tom.
I created a site in two languages, default is Czech and secondary is English.
Everything works fine except custom permalink structure (never mind, I'll try to fix that later again) and also sidebar translation.
I was trying to find some information how to make it work and I didn't find the answer.
What my sidebar does is that...
1) it shows a short and simple contact page with a phone number and a company name (editable in GetSimple pages tab) in the upper part of the sidebar
2) and it shows 3 recent News Manager posts with time and 250 characters of the text.
You can see how it looks and is supposed look here:
However, after switching to English, the sidebar stays in the Czech lang (the rest of the page is translated correctly).
This is my sidebar code:
Code:
<div class="panel">
<?php getPageContent('rychly-kontakt'); ?>
</div>
<div class="panelVypisClanku">
<p><strong>NejnovějšàÄÂlánky</strong></p>
<?php nm_set_custom_maxposts(3) ?>
<?php nm_set_custom_excerpt(250) ?>
<?php nm_custom_display_recent('
<div class="my_recent_post">
<h4><a href="{{ post_link }}">{{ post_title }}</a></h4>
<span class="my_excerpt_date">{{ post_date }}</span>
<span class="my_excerpt">{{ post_excerpt }}</span>
</div>
'); ?>
</div>
I read some information that I should use components. As long as the components are PHP themselves, I can't put the php News Manager functions into the components. I tried to put them there without the <?php ?> tags, without succes. I also tried to put it there directly in the .xml file, also without succes.
About the upper part of the sidebar, I could use components for that easily but it wouldn't be editable in the administration's Page tab.
What I would love to know is how to let the whole sidebar be translated when switching the site language?
If it has to be using components, I don't mind, better some solution than none.
Thanks, Tom.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple