Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Blog Installation problem

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: 2269 Views
  • sherman
    Avatar
    Community Member
    48 Posts

    Blog Installation problem Link to this post

    2. Blog installation

    I downloaded the blog module and installed it fine to the root of tutorial. The problem I'm having is the admin section doesn't seem to recognize the files. On the admin side > create Blog Entry page > creates a page but it has no blog functionality included in. Please see screenshots. The page is acting more like a standard page rather then a blog post. There is no tags, date, author ect.

    - how do I add the appropriate blog tags to my theme? do I need to create a new page specific to the blog?
    - I copy and pasted the code from BlogEntry.ss and BlogHolder.ss into my theme and that seemed to work fine.
    - how do I create a custom blog page using my theme with the blog tags and get the admin section to recognize it? Is this possible?

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Blog Installation problem Link to this post

    Blog Holder

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Blog Installation problem Link to this post

    So in the backend your Blog Page doesnt have fields for date, author, tags?

    What version of the blog module did you use

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Blog Installation problem Link to this post

    Everything is recent, downloaded yesterday.

    The backend does have author, tags, content and so on but because im using a custom Page.ss the blog on the public side only displays the title and the content as per the first image in my post.

    Basically I need to know how to make a custom blog page (template) and have it be recognized by the behaviors dropdown on the admin side.

    Does this make sense?

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Blog Installation problem Link to this post

    Basically each page type can have its own template and if it doesnt it defaults to Page.ss. So for the BlogHolder class and the BlogEntry class you can create a BlogHolder.ss file which has the custom fields etc and a BlogEntry.ss file.

    See how the default theme does it but I think you can drop those 2 files straight into themes/yourtheme/templates/Layout otherwise with the blog module you have to create a subtheme to yourtheme and drop the files in there so you would have themes/yourtheme_blog/templates/Layout/BlogHolder.ss etc. Where yourtheme = the name of your theme

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Blog Installation problem Link to this post

    - It worked with BlogHolder.ss but not with BlogEntry.ss for some reason?

    - The BlogHolder page is using "include BlogSummary" and the summary is displaying html tags in the output. Do you know why?

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Blog Installation problem Link to this post

    BlogEntry.ss is now working but it too is showing html tags in the output:

  • sherman
    Avatar
    Community Member
    48 Posts

    Re: Blog Installation problem Link to this post

    What is the folder structure hierarchy? In terms how SS drills down through the folder structure?

    2269 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.