[SOLVED] Changing words in Simplex theme

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Kristian
Forum Members
Forum Members
Posts: 12
Joined: Wed Sep 08, 2010 4:46 pm

[SOLVED] Changing words in Simplex theme

Post by Kristian »

Hi,

I am running cmsms 2.0 "Australia".

I am trying to translate some of the words in the Simplex theme, for example the "You are here:" and "Next page:", however I cannot seem to find where in the code this is written.

I found the slogan and some other bits, but not these.

The website can be seen on www.jordemoderhænder.dk (It's in Danish)

Can anyone help me?
Last edited by Kristian on Wed Oct 07, 2015 5:41 pm, edited 1 time in total.
geepers
Dev Team Member
Dev Team Member
Posts: 84
Joined: Thu Nov 22, 2007 10:41 pm
Location: Canada

Re: Changing words in Simplex theme

Post by geepers »

Hi Kristian,

Within CMSMS 2+ you'll need to check a couple of things, or elaborate a little more as to what module may be triggering things.

Design Manager will get you into the templates themselves.

Navigator Module may be what you're needing for 'You are here'. Next page, I can't say for certain, but it may just be within the page template itself. Possibly part of a {cms_selflink} call.
Kristian
Forum Members
Forum Members
Posts: 12
Joined: Wed Sep 08, 2010 4:46 pm

Re: Changing words in Simplex theme

Post by Kristian »

Hi geepers,

Thanks. I am not sure which modules I am running - i just installed it on the server and decided to use the Simplex theme.
I already played around in the Design manager where i changed a few things in the templates and in the stylesheets. In these I can find where the color and the font of the text is decided, but the text itself must be generated somewhere else.

Where do I find the navigator module? I can see that it is installed but I cannot "open" anything.

It is not just the next page thing i want to change - also the text in the news section and so.
geepers
Dev Team Member
Dev Team Member
Posts: 84
Joined: Thu Nov 22, 2007 10:41 pm
Location: Canada

Re: Changing words in Simplex theme

Post by geepers »

Should be able to get to theme via Design Manager, Templates tab.

'Options > Filter' - try selecting from under the 'Design' heading (Simplex) to get a list of the templates you can edit (there's a navigation one in there), and for the sake of exploring, check under the 'Originators' heading as well.
Kristian
Forum Members
Forum Members
Posts: 12
Joined: Wed Sep 08, 2010 4:46 pm

Re: Changing words in Simplex theme

Post by Kristian »

Ah, I see.

I tried filtering the templates and I have been through all of them already.
Including the 'Simplex Main Navigation' and 'Simplex Footer Navigation'. However, I cannot find the text there.

Is text only generated from templates?
geepers
Dev Team Member
Dev Team Member
Posts: 84
Joined: Thu Nov 22, 2007 10:41 pm
Location: Canada

Re: Changing words in Simplex theme

Post by geepers »

Okay, here's my best 'guess'. Simplex template contains

Code: Select all

{cms_selflink dir='next' assign='next_page'}
towards the top of the document.

Near the bottom of the document, you will notice the following:

Code: Select all

{if !empty($next_page)}<span class='next'>{$next_page nocache}</span>{/if}
This is basically where it spits out the full link. Two ways to approach it, and first, I'd add a symbol/character to the part that is writing to the page, just to confirm this is the snippet you're looking for.

You can try (i think it should do the trick), adding urlonly=1 to the

Code: Select all

{cms_selflink}
call in the head. So, you'd have

Code: Select all

{cms_selflink dir='next' urlonly=1 assign='next_page'}
And update the code that writes it out to:

Code: Select all

{if !empty($next_page)}<span class='next'><a href="{$next_page nocache}">næste side ></a></span>{/if}
Now, this is grabbing the name of the page itself. But you can explore other options for

Code: Select all

{cms_selflink}[code] under 'Extensions > Tags' to experiment further. You could also add & use CGExtensions module as it provides various methods for accessing other page information when you only have one parameter.
Kristian
Forum Members
Forum Members
Posts: 12
Joined: Wed Sep 08, 2010 4:46 pm

Re: Changing words in Simplex theme

Post by Kristian »

Thanks. That worked! However, it does not write the name of the next page after 'Næste side'. Although, that doesn't matter!

Now, a lot of questions :-(
Although I understand most of what happens, I cannot seem to change what I want to do.

I have played around with the following as well, to change the wording there:

Search
I changed the text to be in Danish, however the resultpage does not show anything. How do I assign the resultpage template to a content-page?

News
Newssummary: I found out where the different words are being created, however I can't seem to change them. For example, the 'More' link is called by 'morelink' and I cannot change the wording of it. I am able to write 'Mere', but it will just stand there without being a link.

The same goes for 'Category' and 'Posted by'

And again, how is the News Detail template assigned to my 'search' content-page?

Breadcrumps
I cannot change the 'You are here' text to 'Du er her'. It seems to be a standard wording made in the breadcrump tag, however this was apparently discontinued and thus I cannot read in the help file to change what I want to.

Sorry for all the questions. I have of course googled around, but without much help other than understanding what the tags and modules do.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Changing words in Simplex theme

Post by Rolf »

Go to Global Settings and set "Default language for the frontend" to your language
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Kristian
Forum Members
Forum Members
Posts: 12
Joined: Wed Sep 08, 2010 4:46 pm

Re: Changing words in Simplex theme

Post by Kristian »

Thanks Rolf, that changed it for the news section.
However, not for the breadcrumbs?
Post Reply

Return to “CMSMS Core”