#1 2010-10-29 18:13:24

Ishiro
Member
Registered: 2010-10-29
Posts: 7

Problem with <ion:base_url lang="true" />

Hello,

I'm actually testing Ionize to build a website. Nice work and good ideas in your CMS, but I hope you will write more doc as soon as possible. wink

So, I'm using Ionize 0.9.5 rev.7.

The <ion:base_url lang="true" /> tag that doesn't return the lang when the default language is used.

If my default language is "fr", when I visit the page http://mywebsite.com/fr/mypage the tag displays http://mywebsite.com (Expected : http://mywebsite.com/fr/). No problem with alternative languages.

Last edited by Ishiro (2010-10-29 18:14:09)

Offline

#2 2010-11-02 15:49:06

Michel-Ange
Ionize Core Team
From: Paris, France
Registered: 2010-03-22
Posts: 713
Website

Re: Problem with <ion:base_url lang="true" />

Normally, this tag returns the base URL with the lang code, except for the homepage, wich is normal.

Is your problem coming from an internal page ?

Do you have 2 languages defined and available on the website ?


Inspiration & Innovation : Websites by Partikule, Agence Web Paris

Offline

#3 2010-11-02 16:09:29

Ishiro
Member
Registered: 2010-10-29
Posts: 7

Re: Problem with <ion:base_url lang="true" />

Yes, I have 2 languages defined and available, the default language is "fr".

- When I visit http://mydomain.com/mywebsite/en/contact, the tag returns http://mydomain.com/mywebsite/en/
- When I visit http://mydomain.com/mywebsite/fr/contact, the tag returns http://mydomain.com/mywebsite/

smile

Offline

#4 2010-11-02 19:12:58

Michel-Ange
Ionize Core Team
From: Paris, France
Registered: 2010-03-22
Posts: 713
Website

Re: Problem with <ion:base_url lang="true" />

If you have the 2 languages online, remove the lang=true attribute.
Anyway, I will check!


Inspiration & Innovation : Websites by Partikule, Agence Web Paris

Offline

#5 2010-11-02 19:19:00

Ishiro
Member
Registered: 2010-10-29
Posts: 7

Re: Problem with <ion:base_url lang="true" />

Yep, thanks !

Actually I use this code that works well :

<ion:base_url /><ion:current_lang />/

Offline

#6 2010-11-02 22:19:21

Michel-Ange
Ionize Core Team
From: Paris, France
Registered: 2010-03-22
Posts: 713
Website

Re: Problem with <ion:base_url lang="true" />

Hmmm.. So I really need to check, because this is the very "old" syntax...


Inspiration & Innovation : Websites by Partikule, Agence Web Paris

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel , Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : www.ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Translations on GitHub