Cmsadesimple multilingual with installer
Re: Cmsadesimple multilingual with installer
No, it still works, however I checked the site now with different browsers.
It seems this problem is IE7 specific.
IE6 and Firefox display the site with the 'DEFAULT_LANG' setting correctly, regardless whether pretty_urls or mod_rewrite are enabled or not.
IE7 only displays the correct page if pretty_urls are enabled.
One more thing:
If "assume_mod_rewrite" is enabled, the links behind the flags are wrong. Instead of
"domain.com/de/home" they are converted to "domain.com/de/home.html". The link won't work with the html extension and mod_rewrite enabled.
It seems this problem is IE7 specific.
IE6 and Firefox display the site with the 'DEFAULT_LANG' setting correctly, regardless whether pretty_urls or mod_rewrite are enabled or not.
IE7 only displays the correct page if pretty_urls are enabled.
One more thing:
If "assume_mod_rewrite" is enabled, the links behind the flags are wrong. Instead of
"domain.com/de/home" they are converted to "domain.com/de/home.html". The link won't work with the html extension and mod_rewrite enabled.
Re: Cmsadesimple multilingual with installer
Hi Everyone,
I'm having a problem installing MLE:
I'm trying to do a clean installation, i.e. in a new folder in my htdocs localhost. I copied everything as with the normal cmsmadesimple installation and when I run the installer nothing happens, except I get the following PHP parse error:
PHP Parse error: syntax error, unexpected $end in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\cmsmle\\install\\install.php on line 1370
The original cmsmadesimple installed without any problems. Am I doing something wrong here?
Thanks in advance,
Chris
I'm having a problem installing MLE:
I'm trying to do a clean installation, i.e. in a new folder in my htdocs localhost. I copied everything as with the normal cmsmadesimple installation and when I run the installer nothing happens, except I get the following PHP parse error:
PHP Parse error: syntax error, unexpected $end in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\cmsmle\\install\\install.php on line 1370
The original cmsmadesimple installed without any problems. Am I doing something wrong here?
Thanks in advance,
Chris
Re: Cmsadesimple multilingual with installer
I figured it out! You have to have in the php.ini file. Seems that there's some short tags in the code...
Cheers,
Chris
Code: Select all
short_open_tag = On
Cheers,
Chris
Re: Cmsadesimple multilingual with installer
Hello everybody.
I'm just telling my experiences with setting up CMS Made Simple Multilingual version in case someone else faces the same problem. Actually, installation itself was smooth. Setting the correct write permissions for the directories/files is important, so make sure you do them properly before running the installation script. The installation script was able to modify the database tables accordingly and config_lang.php was modified as well. However, only default language option was added to the config_lang.php.
After installation was finished, I faced the 404 error on the main page of the CMS. I was able to access the admin area though, but I noticed that I was not able to add/modify pages. From the installation FAQ (http://dev.cmsmadesimple.org/docman/vie ... 53/faq.txt) I read that the problem could occur if the database tables were not modified properly by the installation script. I checked the tables, but they seemed to be alright. I finally opened up the source files and started to trace the source of the 404 error. As a result, I discovered that the $hls was not set at all. Later I learnt that the $hls is supposed to be set in config_lang.php, but it was not added there by the installer. Therefore I had to add it manually, resulting to following contents of the config_lang.php:
You may have something else there instead of Finnish language. I hope this information helps someone
I have attached a flag of Finland as it was not present in the install bundle by default.
Teemu
[gelöscht durch Administrator]
I'm just telling my experiences with setting up CMS Made Simple Multilingual version in case someone else faces the same problem. Actually, installation itself was smooth. Setting the correct write permissions for the directories/files is important, so make sure you do them properly before running the installation script. The installation script was able to modify the database tables accordingly and config_lang.php was modified as well. However, only default language option was added to the config_lang.php.
After installation was finished, I faced the 404 error on the main page of the CMS. I was able to access the admin area though, but I noticed that I was not able to add/modify pages. From the installation FAQ (http://dev.cmsmadesimple.org/docman/vie ... 53/faq.txt) I read that the problem could occur if the database tables were not modified properly by the installation script. I checked the tables, but they seemed to be alright. I finally opened up the source files and started to trace the source of the 404 error. As a result, I discovered that the $hls was not set at all. Later I learnt that the $hls is supposed to be set in config_lang.php, but it was not added there by the installer. Therefore I had to add it manually, resulting to following contents of the config_lang.php:
Code: Select all
$hls = array(
'en' => 'En',
'fi' => 'Fi',
);
define('DEFAULT_LANG', 'en');
I have attached a flag of Finland as it was not present in the install bundle by default.
Teemu
[gelöscht durch Administrator]
Re: Cmsadesimple multilingual with installer
How do I do if I want more content blocks?
Right now I have two but this block shows the same in both languages.
/Jenny
Right now I have two but this block shows the same in both languages.
/Jenny
Re: Cmsadesimple multilingual with installer
This mle is just what I needed. Great!
I have a question.
The pages are all the same for 1 thing. The header or logo differs.
Is there a tag or so to define the right headerimmage in the css-sheet.
eg. header_en.jpg or header_de.jpg
Kind regard,
Kees
I have a question.
The pages are all the same for 1 thing. The header or logo differs.
Is there a tag or so to define the right headerimmage in the css-sheet.
eg. header_en.jpg or header_de.jpg
Kind regard,
Kees
Re: Cmsadesimple multilingual with installer
you can do this yourself. just create one user defined tag and make it display different stylesheet for the specified div.
a little example
html
plugin named {style_this_div}
global $hl;
switch $hl{
case 'en':
echo "background: #fff url('header_en.gif');";
break;
case 'de':
echo "background: #fff url('header_de.gif');";
break;
}
a little example
html
plugin named {style_this_div}
global $hl;
switch $hl{
case 'en':
echo "background: #fff url('header_en.gif');";
break;
case 'de':
echo "background: #fff url('header_de.gif');";
break;
}
Re: Cmsadesimple multilingual with installer
Thanks!
Got it to work...
only switch $hl{ offcourse has to be switch ($hl){
You not only helped me to solve the problem, but I did not know about the user defined tags also.
Kind regards,
Kees
Got it to work...
only switch $hl{ offcourse has to be switch ($hl){
You not only helped me to solve the problem, but I did not know about the user defined tags also.
Kind regards,
Kees
Re: Cmsadesimple multilingual with installer
When one of the menupages is not filled (eg local route info is not interesting for residents in other countries) I want to leave the page, menutext and pagetitle blank.
When I do that, the menu-item appears with no content.
Can I alter the menutemplate that this menuoption is not shown for the language I leave the specific menuoption blank?
The menutemplate I use is:
Help would again be greatly appreciated!
Regards,
Kees
Although the site needs more tweaking, it begins to get the look and feel I want: http://geest-nurseries.flowerxs.nl/
Solved (getting more and more familiair with cmsms ): added an if $node->menutext!= "leeg" statment to the menu-template (leeg == empty in Dutch) and named the empty pages "leeg"
When I do that, the menu-item appears with no content.
Can I alter the menutemplate that this menuoption is not shown for the language I leave the specific menuoption blank?
The menutemplate I use is:
Code: Select all
{* CSS classes used in this template:
.active - The active page in the horizontal menu (first level).
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *}
{if $count > 0}
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->current == true or $node->parent == true}
<li id="current"><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}><span>{$node->menutext}</span></a>
{elseif $node->type == 'sectionheader'}
<li><a href="{$node->url}"><span>{$node->menutext}</span></a>
{elseif $node->type == 'separator'}
<li style="list-style-type: none;"><hr class="separator" />
{else}
<li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}><span>{$node->menutext}</span></a>{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-2}</li>
</ul>
{/if}
Regards,
Kees
Although the site needs more tweaking, it begins to get the look and feel I want: http://geest-nurseries.flowerxs.nl/
Solved (getting more and more familiair with cmsms ): added an if $node->menutext!= "leeg" statment to the menu-template (leeg == empty in Dutch) and named the empty pages "leeg"
Last edited by KC on Wed Feb 07, 2007 10:37 pm, edited 1 time in total.
Re: Cmsadesimple multilingual with installer
Hello
I've succesfully installed CMS 1.02MLE, but when I click to 'view site' I get nothing. Navigating to the pages menu I see two flags, but when I try to add content, despite getting no errors my new pages do not appear in the list.
Please see the attached screenshot of my pages page.
Also, here's the Welsh flag (attached) - could you add it to the next download please. I have 2 english/welsh sites to build.
thanks in advance,
rhys
[gelöscht durch Administrator]
I've succesfully installed CMS 1.02MLE, but when I click to 'view site' I get nothing. Navigating to the pages menu I see two flags, but when I try to add content, despite getting no errors my new pages do not appear in the list.
Please see the attached screenshot of my pages page.
Also, here's the Welsh flag (attached) - could you add it to the next download please. I have 2 english/welsh sites to build.
thanks in advance,
rhys
[gelöscht durch Administrator]
Re: Cmsadesimple multilingual with installer
Hi,
here is the picture for the Dutch language. Please add it Thanks...
[gelöscht durch Administrator]
here is the picture for the Dutch language. Please add it Thanks...
[gelöscht durch Administrator]