While I am at it, I might as well pop another question;
Is it possible to remove the flags of the languages of which the current is NOT available?
So for instance; when I'm on the "About us" page in English (my default_lang), and that page is NOT available in say.. Spanish, I don't want the Spanish flag to show up. Is this in any way possible ?
Additional MLE question
-
- Power Poster
- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Additional MLE question
Last edited by Anonymous on Thu Sep 04, 2008 9:33 am, edited 1 time in total.
Re: Additional MLE question
I don't like but works.chris-s wrote: While I am at it, I might as well pop another question;
Is it possible to remove the flags of the languages of which the current is NOT available?
So for instance; when I'm on the "About us" page in English (my default_lang), and that page is NOT available in say.. Spanish, I don't want the Spanish flag to show up. Is this in any way possible ?
Maybe I think something ....
Alby
-
- Power Poster
- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: Additional MLE question
Thanks, I'll try that out - when you think of a better solution, please let me know
.

-
- Power Poster
- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: Additional MLE question
Okay, so I just tried this, but the problem is, whenever you edit the page, it inserts the "content_(yourlang)" back in, in cms_content.prop_names. Since the pages are edited every now and then, this isn't good.
Is there a way to change this:
Into something like: "if menutext_(lang) == empty, break"?
I hope you can help me out.
Is there a way to change this:
Code: Select all
if(!in_array('content_'.$mle['block'],$contentobj->mProperties->mPropertyNames)){
break;
}
I hope you can help me out.
Re: Additional MLE question
Have you understand because I don't like this solutionchris-s wrote: Okay, so I just tried this, but the problem is, whenever you edit the page, it inserts the "content_(yourlang)" back in, in cms_content.prop_names. Since the pages are edited every now and then, this isn't good.

Quick and dirty way it's check for one of this:
- content_$block in content_props table
- menu_text_$block in content table
- title_$block in content table
NaN has post a similar check in content_props table (for other param) here
Alby
-
- Power Poster
- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: Additional MLE question
Haha yes, I totally understand now
.
Thanks, I'll go and fiddle around with it for a little bit.

Thanks, I'll go and fiddle around with it for a little bit.
-
- Power Poster
- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: Additional MLE question
I tried the following:alby wrote:Have you understand because I don't like this solutionchris-s wrote: Okay, so I just tried this, but the problem is, whenever you edit the page, it inserts the "content_(yourlang)" back in, in cms_content.prop_names. Since the pages are edited every now and then, this isn't good.?
Quick and dirty way it's check for one of this:
- content_$block in content_props table
- menu_text_$block in content table
- title_$block in content table
NaN has post a similar check in content_props table (for other param) here
Alby
Code: Select all
if(!isset($contentobj->mProperties->mMenuText)){
break;
