vituskung
Posts: 3
|
| Posted: 02/04/2010, 6:01 PM |
|
I'm trying to set up a database driven menu with menu builder for a multilingual site. I tried adding a field called menu_locale and insert code "before build select" as below but it doesn't work:
$header_menu1->DataSource->Where = 'menu_locale = CCSGetSession("locale")';
I wonder if there is anything wrong.
|
 |
 |
datadoit
|
| Posted: 02/04/2010, 7:42 PM |
|
$header_menu1->DataSource->Where = "menu_locale = " .
CCToSQL(CCGetSession("locale","en"), ccsText);
|
|
|
 |
vituskung
Posts: 3
|
| Posted: 02/04/2010, 11:29 PM |
|
Tks, I shall give it a try again.
|
 |
 |
vituskung
Posts: 3
|
| Posted: 02/05/2010, 7:50 AM |
|
it works great . Tks, Datadoit!
|
 |
 |
|