Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Site name and tagline


Go to End


11 Posts   9163 Views

Avatar
albill

7 Posts

17 September 2007 at 6:38pm

I'm just full of questions.

For the life of me, I can't figure out where you set the site's name and tagline. Do I have to edit a file outside of the CMS to do it or can I do it internally? I've gone through all of the options and don't see anywhere to enter it so my site is called "Your Site Name".

Avatar
trevor

53 Posts

17 September 2007 at 8:03pm

Hi,

Have a look in mysite/templates under the directory where you have installed SS, you will find a template/view file called page.ss in this file you should find a div line <div id="Header"> in this section you should see the text for the site name and tag line. If you have installed the tutorial then there will be no site name but you should find the <div>.

I suggest you read through the tutorial http://doc.silverstripe.com/doku.php?id=tutorial:1-building-a-basic-site this will help you understand the role of the templates.

If you change the template you have to flush the cache that SS keeps by adding ?flush=1 onto the end of your url of your installation ie localhost/silverstripe?flush=1.

HTH

Trevor

Avatar
albill

7 Posts

17 September 2007 at 8:29pm

In /mysite/templates, there are two directories:
Includes
Layout

Both of these are empty.

Avatar
albill

7 Posts

17 September 2007 at 8:32pm

Looking under /themes/blackcandy/templates, I find a Page.ss file though.

You'd think that you'd be able to configure the site name and tagline WITHIN the actual CMS software though.

Avatar
trevor

53 Posts

18 September 2007 at 1:39am

There isn't a site name and tag line within the cms as this depends how you want to design your layout as you may have this info within an image.

Which installation option did you use? If you choose the Black candy option when you install then the file you mention is put into the mysite/template/page.ss file and from here you can tailor to your requirements.

Read through the tutorial this is all explained and will help improve your understanding of how the information is presented.

Regards

trevor

Avatar
thm

5 Posts

24 September 2007 at 11:34pm

I noticed the same thing as albill.

I chose to install blackcandy during installation, but there is not page.ss file under /mysite/templates. In fact there are only the two empty folders in /mysite/templates. ie includes and layout.

The only instance of page.ss is in /themes/templates. I installed 2.1.0 rc1 if that helps.

Avatar
Starman

Community Member, 2 Posts

24 December 2007 at 9:14am

Edited: 24/12/2007 9:16am

Albill,

I presume that you are still in the blue coloured default theme - I had the same "problem" and eventually found the heading as part of the BlackCandy theme.

Edit themes/blackcandy/templates/Page.ss

At the top of the BODY is

<div id="Header">
	<h1>Your Site Name</h1>
	<p>your site&#39;s tagline here</p>
</div>

Change it, save it, and reload the site with ?flush=1 on the end of the URL.

Avatar
guru.cat

6 Posts

3 February 2008 at 10:41am

So, is it possible to change the "Your Site Name" and "your site's tagline here" or should I do it by editing the files directly?

Difficult start!

Go to Top