Shift site title and page title

webactor

Avatar: webactor

2011-03-30 17:29

Hi there.

I noticed that a lot of quick.cms webpages have the website title at the end
of the title string - when see on ex. google index.

ex. http://www.snefrid.no/

Visit the page an you will see that the page title is before the
website title .. Is there a way to change that ?
So that the webpages title comes before the page title ?

Hope you can help me

» Quick.Cms v2.x

Kimo

cgan

Avatar: cgan

2011-03-30 17:40

webactor - in templates/container.tpl find this:
<title>$sTitle$config[title]</title>
You can shift order of the two variables $sTitle and $config[title].

cgan

webactor

Avatar: webactor

2011-03-31 08:28

Cgan

You are the best - Thanks.
Have a good one

kimo

webactor

Avatar: webactor

2011-03-31 09:41

Ha ha ha - Cgan ..

I have just one small question, i hope you couldt help me with also.

Now that i changed my title tag to:

<title>$config[title]$sTitle</title>

I have af small (-) at the end of my string

You know the vertical line there is between the webpage title
and site page title.

But this line is now at the end of my title string..

Ex.
Webpagetitle | Welcome to my webpage (- -)

Do you have any idear where i can dele this ?

Cgan - once again
Thanks for your help so far.

kimo

cgan

Avatar: cgan

2011-03-31 10:06

Find file actions_client/p.php
On line 48 you find this:
$sTitle = strip_tags( ( !empty( $aData['sNameTitle'] ) ? $aData['sNameTitle'] : $aData['sName'] ).' - ' );

Delete this - at the end of the line.

cgan

webactor

Avatar: webactor

2011-03-31 21:24

Danm Cgan

- You are sharp :)

Thanks Champ

Kimo

webactor

Avatar: webactor

2011-05-24 14:09

Hi cgan.

I was wondering about one more small thing :)

The " - " i have now between my $sTitle and $config in my browser header.
Is it possible to make it to at "|" instead of a "-"

And where do i change this tag ?
Cant seem to find it in actions_client/p.php

Really hope you can help me.

Webactor

webactor

Avatar: webactor

2011-05-24 15:37

Ahhhh ... Found it..

Do it like this in the container.tpl file
<title>$config[title] | $sTitle</title>

C yaaa - Cheers

Kimo

Back to top
about us | contact