| View previous topic :: View next topic |
| Author |
Message |
pengalor
Joined: 01 May 2010 Posts: 5
|
Posted: May 06, 2010 10:11 am Post subject: Custom <TMPL_IF> Tags? |
|
|
Hi,
My site layout contains a main frame and a sidebar. I was wondering if there is a custom <TMPL_IF> tag display content on specific sites only.
In example, I have figured out that <TMPL_IF user_total> hides content unless the user is on the main site.
Also, <TMPL_UNLESS my_login> in example, hides content when user is logged in.
What I am looking for is to show/hide content when a user is on a certain page. For example: Show X in sidebar when user is on registration.html.
Additionally I was wondering if its possible to automatically redirect a user after login to a certain page? I have noticed that the user gets redirected to whatever page he was before he logged in, but I´d like to redirect them to a spefic page every time they login.
Regards! |
|
| Back to top |
|
 |
admin Site Admin

Joined: 22 Mar 2006 Posts: 1281
|
Posted: May 06, 2010 1:25 pm Post subject: |
|
|
| Well, no. But you can stick to specific variable which is only on that page where you want to show your stuff. |
|
| Back to top |
|
 |
pengalor
Joined: 01 May 2010 Posts: 5
|
Posted: May 07, 2010 9:19 am Post subject: |
|
|
Got it working! Thanks. One last thing:
Is it possible to use English as default language for all users? (i noticed language automatically changes to browser language)
Regards |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: May 11, 2010 12:55 pm Post subject: |
|
|
Try to remove extra languages from this code from XFileConfig.pm:
| Code: | language_codes => {'en.*' => 'english',
'cs' => 'czech',
'da' => 'danish',
'fr.*' => 'french',
'de.*' => 'german',
'p' => 'polish',
'ru' => 'russian',
'es.*' => 'spanish',
}, |
|
|
| Back to top |
|
 |
|