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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

A couple of beginner questions

Go to End

9 Posts   4020 Views


8 Posts

5 October 2007 at 2:05am

I just got it installed, and so far it looks great!

But now I'm already stuck just trying to follow the simple tutorial. When I make the changes to add $MetaTags and $Title to tutorial/templates/ exactly as shown in the tutorial, and publish it, I still see the old title "Your Site Name" at the top of the page. I made sure to add the ?flush=1 to my Url, and I added a note in the content, to make sure it was updating. The new content showed up, but the title didn't change. What am I doing wrong?

Also, I am still a bit confused about how to find and use the .ss files. I added the gallery module, and it seems to be installed just fine, but I don't know where to put the <% include GalleryPageContent %> so that I can try it out.

Thanks for your help,


Forum Moderator, 5523 Posts

5 October 2007 at 9:32am

MrSquirrel (wicked name man :D) check out this post for explaining how to add a gallery template.

One thing to check are you using the tutorial theme while you are following the tutorial? At the installer you have the option of a ) BlackCandy a completely finished theme that works out of the box or b ) a empty theme that you can use to play around with the tutorials with.

Once you are sure that you are running the tutorial theme attach you code to your post and we can have a look and see if any oddities.


8 Posts

5 October 2007 at 10:34am

Thanks! Apparently I did choose BlackCandy (not sure I get the name...the site is blue and white?)... so once I changed the title in themes/blackcandy/templates/, it showed up.

The gallery still has me a bit confused, though. If I add the <% include GalleryPageContent %> directive into themes/blackcandy/templates/Layout/ (which I created by copying, immediately following the $Content line, as shown here:

<div class="typography">
<% if Menu(2) %>
<% include SideBar %>
<div id="Content">
<% end_if %>

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

<h2>My Photos</h2>

<% include GalleryPageContent %>

<% if Menu(2) %>
<% end_if %>

It shows my gallery page just fine, and shows the title I've changed...which tells me it IS seeing the updated file... but no gallery appears. I'm sure I'm doing something stupidly wrong here. Any ideas?


Forum Moderator, 5523 Posts

5 October 2007 at 10:59am

Edited: 05/10/2007 11:46am

maybe you are :) hehe well have you got any photos uploaded and is the GalleryPage pointing to the right folder in the assets?

Don't worry about the name.. I don't remember how it picked that up.


8 Posts

5 October 2007 at 1:01pm

Thanks for your attention to my n00bie problems figuring this out, willr.

Yeah, the images are in assets/galleries/photos, a folder I created. I pointed my browser directly to an image there, and it shows fine.

When editing the gallery page I added, under the Content...Files tab, it offers me the galleries/photos subfolder, and I chose it. Published, checked with ?flush=1, got the page (including a new text change I made, just to be sure I was seeing the latest)... and it shows, but no gallery.

I also moved to the theme's Includes folder, just in case it wasn't seeing that. I even tried moving into the Layout folder where is. I also changed the title of themes/blackcandy/templates/layout/ again, just to double-check that it was the file being used. It showed my new title change, again.

So you're saying the code as shown in my previous post should theoretically work, right?

The Frenchy

Core Development Team, 40 Posts

5 October 2007 at 3:31pm

Edited: 05/10/2007 3:33pm

Hi man, I am the developer of the gallery module, so I think I can help you.

I guess it's the version 0.2.1 that you talk about.

Have you checked that you have selected the good group of extensions in the Extensions tab panel in the CMS ?

If it's still not the solution of your problem, I just give you the link of the gallery module documentation

Hope, I am right and you will solve your problem


8 Posts

5 October 2007 at 5:06pm

Well what do you know? I had checked that box earlier, but while trying to figure the whole thing out, I had deleted and created the Gallery page, and I hadn't gone back in and checked the Extensions box again afterward.

Now it works! Very slick indeed. I am impressed with the possibilities of SilverStripe.

I must also say, Frenchy, that from what I've seen so far, the gallery module is very cool. I'm anxious to go play around with it some more right now.

I am also greatly impressed, and grateful, for the kind and prompt and patient help from you, willr, and Sean in helping me with these beginner questions. I think I am starting to understand the framework a little, but your help really saved me a lot of the initial frustrations. Now I feel I know enough to learn further on my own (I am never happy until I have something concrete working to start with).

Thanks much again!


2 Posts

12 October 2007 at 7:52pm

Hi I did exactly the same way how Mrsquirrel described,

I built the dbs, i added the new file , and included the the <% include GalleryPageContent %>
For some reason the gallery tab is not showing up .

Is there any way how can i verify that the gallery module is loaded correctly , I verified the tables , i can see Gallery related tables being created.

Can anyone please help us out.I tired all the possibilities , like reinstalled several times , but still nothing works out.


Go to Top