Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » A couple of beginner questions

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

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

Page: 1 2
Go to End
Author Topic: 3499 Views
  • MrSquirrel
    Avatar
    8 Posts

    A couple of beginner questions Link to this post

    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/Page.ss 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,
    Doug

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: A couple of beginner questions Link to this post

    MrSquirrel (wicked name man ) 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.

  • MrSquirrel
    Avatar
    8 Posts

    Re: A couple of beginner questions Link to this post

    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/Page.ss, it showed up.

    The gallery still has me a bit confused, though. If I add the <% include GalleryPageContent %> directive into themes/blackcandy/templates/Layout/GalleryPage.ss (which I created by copying Page.ss), 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>
       
          $Content
    <% include GalleryPageContent %>
          $Form
          $PageComments
       
       <% if Menu(2) %>
          </div>
       <% end_if %>
    </div>

    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?

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: A couple of beginner questions Link to this post

    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.

  • MrSquirrel
    Avatar
    8 Posts

    Re: A couple of beginner questions Link to this post

    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 GalleryPageContent.ss to the theme's Includes folder, just in case it wasn't seeing that. I even tried moving into the Layout folder where GalleryPage.ss is. I also changed the title of themes/blackcandy/templates/layout/GalleryPage.ss 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
    Avatar
    Core Development Team
    40 Posts

    Re: A couple of beginner questions Link to this post

    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

  • MrSquirrel
    Avatar
    8 Posts

    Re: A couple of beginner questions Link to this post

    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!

  • Balajee
    Avatar
    2 Posts

    Re: A couple of beginner questions Link to this post

    Hi I did exactly the same way how Mrsquirrel described,

    I built the dbs, i added the new file , GalleryPage.ss 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.

    Thanks,Balajee

    3499 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.