Page 1 of 1

[Solved] Breadcrumbs problem.

Posted: Thu Mar 14, 2013 5:35 pm
by Delagardi
good day

I am a beginner and decided to work with CMS Made Simple.

Faced with a problem that I can not solve and ask for your help.

I would like to change the label to the bread crumbs (Breadcrumbs). Now it is a "You are here:"

I found the following in the template:

Code: Select all

{* Start Breadcrumbs, a bit of letting you know where your at *}
<div class="breadcrumbs core-float-right">
{cms_breadcrumbs root = 'Home'}
</ div>
{* End Breadcrumbs *}
As it is written in the documentation insert there starttext parameter to its value, as a result I have the following code:

Code: Select all

{* Start Breadcrumbs, a bit of letting you know where your at *}
<div class="breadcrumbs core-float-right">
{cms_breadcrumbs root = 'Home' starttext = 'StartText'}
</ div>
{* End Breadcrumbs *}
but nothing happend. "You are here" has not changed. The documentation for the breadcrumbs tag says that the function is deprecated, but the documentation for the cms_breadcrumbs does not say anything as to change this startText

tell me where is my mistake, please?

I have a new version of the CMS, downloaded and installed yesterday.

Re: Breadcrumbs problem.

Posted: Thu Mar 14, 2013 6:00 pm
by manuel
Dear Delagardi,

The text is contained in the language files located here: \modules\MenuManager\lang
$lang['youarehere'] = 'You are here';

You can use http://docs.cmsmadesimple.org/customizi ... ge-strings to overwrite the language string.
If you just change it in the original file, it will become overwritten the next time you update cmsms.

Greetings,
Manuel

Re: Breadcrumbs problem.

Posted: Thu Mar 14, 2013 6:39 pm
by Delagardi
Thanks for the quick response, manuel

thought about it, but decided that this is a dirty hack.

I installed Russian version of the CMS, but these words are written in English anyway. Please tell me where I can read about the change of language.

Replacing en_US.php ru_RU.php make an error.

Re: Breadcrumbs problem.

Posted: Thu Mar 14, 2013 8:00 pm
by manuel
Dear Delagardi,

This certainly isn't a dirty hack!! :D
Editing the original files would be a dirty hack...
Using module_custom to overwrite language strings is actually the proper way of changing language strings. This makes sure you can upgrade your cmsms without losing your customizations.

If you change the default language for the frontend to "Русский (Russian)" in "Global settings > General settings", the ru_RU.php file should get used.

You can then overwrite $lang['youarehere'] = 'Вы здесь'; inside the ru_RU.php file to contain anything you want using the *recommended* method.

replacing en_US.php by ru_RU.php would be a dirty hack as you are changing core files and your changes will get overwritten when you upgrade cmsms. ;)

Greetings,
Manuel

Re: Breadcrumbs problem.

Posted: Thu Mar 14, 2013 8:11 pm
by Delagardi
Thank you very much, manuel

two problems in the world less :)

Re: Breadcrumbs problem.

Posted: Thu Mar 14, 2013 8:24 pm
by manuel
Dear Delagardi,

Glad i could help out! :)
Feel free to edit your first post and add [solved] in front of the subject.

Greetings,
Manuel

Re: [Solved] Breadcrumbs problem.

Posted: Wed May 22, 2013 5:36 am
by Rolf
Isnt there a Menu Manager template for breadcrumbs you can change in the Admin?