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

Begginer questions


Go to End


4 Posts   1998 Views

Avatar
rabrol

Community Member, 6 Posts

16 January 2008 at 6:13am

Hi Everyone.

I am building my first site with Silverstripe and have a number of questions that don't appear to be answered in the User Guide.

1) How do I change the colours & insert a banner graphic instead of seeing "Your site name here"? I haven't even found out where to enter text to change "Your site name here" to my site name.

2) Is it possible to get the Navigation to be permanently displayed on the left of every page? Is that a complex process? How?

3) Am I able to choose which headings go to the top Navigation bar if I also have a Nav bar on the left (I wouldn't want to repeat all the Nav on the top as well as at the side)?

Thanks in advance!
Rob

Avatar
dio5

Community Member, 501 Posts

16 January 2008 at 6:46am

Edited: 16/01/2008 6:48am

The user guide is more for users of the cms, once the site is finished.

I suggest you go through the tutorials to get a basic grasp of how Silverstripe works.

The questions you've asked are easy to answer, but you'll need to go into the html/php/css files to change them.

http://doc.silverstripe.com/doku.php?id=tutorials

Avatar
Willr

Forum Moderator, 5523 Posts

16 January 2008 at 6:26pm

go read the tutorials and they will help. But to answer your questions directly -

1) I haven't even found out where to enter text to change "Your site name here" to my site name.

open the file themes/blackcandy/templates/page.ss. (assuming you are using the blackcandy theme - the default one). Your site name is between the h1 tags.

2) Is it possible to get the Navigation to be permanently displayed on the left of every page? Is that a complex process? How?

Open themes/blackcandy/templates/Layout/page.ss and you will see at the top
<% if Menu(2) %>
<% include SideBar %>
<div id="Content">
<% end_if %>

Remove the Ifs statements and you will get a sidebar on every page. You will also need to remove the <% if %> statements down the bottom of that same file -
<% if Menu(2) %>
</div>
<% end_if %>

So your themes/blackcandy/templates/Layout/page.ss file should be

-- Page.ss --
<div class="typography">
<% include SideBar %>
<div id="Content">

<% if Level(2) %>
<% include BreadCrumbs %>
<% end_if %>

<h2>$Title</h2>

$Content
$Form
$PageComments

</div>
</div>
--

3) Am I able to choose which headings go to the top Navigation bar if I also have a Nav bar on the left (I wouldn't want to repeat all the Nav on the top as well as at the side)?

The links in the top navigation are the top level pages and the sub pages on the left. To change this you really need to understand how SS works but it invovles opening the themes/blackcandy/templates/Includes/Sidebar.ss file and changing <% control Menu(2) %> to <% control Menu(1) %>.

But thats just a start, you might encounter a few bugs.

Avatar
rabrol

Community Member, 6 Posts

24 January 2008 at 11:40am

Great tips.

I started working through the tutorials, and things are slowly beginning to fall into place in my mind!

Site modifications, colour changes, addition of banners going well.
Thanks for the replies!