dehnert
Posts: 13
|
| Posted: 03/22/2010, 1:29 AM |
|
Hello, for a multilanguage-site I would like to change the title to the corresp. language.
like <title>{res:any_vari8able}</title>.
Unfortunatelly, I don't get it to work.
Any hint is highly welcomed
Achim
_________________
Achim Dehnert |
 |
 |
quasimidi
Posts: 151
|
| Posted: 03/22/2010, 2:28 AM |
|
Hi,
What you should do is this (with PHP):
1. Add a label between the <title>{yourtitle}</title>
2. Add a custom Before Show event to your page, and enter this:
$Component->yourtitle->SetValue("Your Page Title");
Regards,
_________________
RS |
 |
 |
damian
Posts: 838
|
| Posted: 03/22/2010, 2:50 AM |
|
your title tag is outside your grid so it wont pick up the value.
create a grid elsewhere in your body (or modify an existing grid) and add a hidden field
{res:any_vari8able}
your php is processed beore the html and it should populate the title variable even though its not strictly associated with a grid or with code....
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
datadoit
|
| Posted: 03/22/2010, 7:41 AM |
|
Your method is absolutely correct.
1. Check your spelling.
2. Check to make sure you actually have a translation for the specified
resource.
|
|
|
 |
paulmason411
Posts: 127
|
| Posted: 03/22/2010, 6:04 PM |
|
dehnert as datadoit said your method is correct, I use this method myself.
Is your problem more to do with changing between languages dynamically?
_________________
http://paulmason.name - Web Development Blog
|
 |
 |
dehnert
Posts: 13
|
| Posted: 03/23/2010, 12:49 AM |
|
[SOLVED]
Thanxs to all of You. I wasn't using a label, but edited the html directly. It works perfect via "add label".
Thanxs again for the FANTASTIC Support -> You are great!!
_________________
Achim Dehnert |
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 03/25/2010, 2:59 PM |
|
dehnert,
Can you add [SOLVED] to the thread title. Thanks.
|
 |
 |