Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dominic Brown 91 posts 111 karma points
    Sep 11, 2011 @ 16:06
    Dominic Brown
    0

    Noob Help Please!!

    Hi,

    i'm pretty new to Umbraco, i'm making a couple of sites atm but i need to make a company blog page. I've installed uBlogsy and the default page looks great but i wish to be able to put that into a blog page i've already created (that has my header/footer/Nav etc), but i am struggling.

    I've noticed its installed the default page in the Content section but i need it in under my homepage section or i am guessing, i can use it like the umedia slider and just stick a macro reference in the pages template?? I've tried a few macro but i just get an empty box, i'd have thought it woulkd have loaded the default data from the default page right?

    Hope i am making sense and any help would be great.

    Thanks in advance

    Dom

  • skiltz 501 posts 701 karma points
    Sep 12, 2011 @ 03:05
    skiltz
    0

    You can edit templates by going to the Settings Section (bottom left hand corner) and then templates.

  • Dominic Brown 91 posts 111 karma points
    Sep 12, 2011 @ 09:11
    Dominic Brown
    0

    Thanks for your reply but that does not really help me. I know how to edit a template, i spoke about putting the macro in a template in my post.

     

    I've tried putting different macro uBlogsy macro's in my pages template but i just get blank boxes. Should this not take its data from the MyBlog folder set up in the Content section like uMedia Slider does?

     

    thanks

  • Stephen 204 posts 246 karma points
    Sep 12, 2011 @ 10:04
    Stephen
    1

    Hey Dominic,

    This is an easy enough job, i done it only last week for the first time, basic process is this...

    1. Make changes to the uBlogsy Master pages starting from uBlogsyBaseSite down in the tree, no need to touch base...
    2. In fact thats the only master page you really need to change unless you want to make bigger changes to the layout.
    3. Rest of the work is done in the CSS.

    for me i did not want the blog to have its own menu or head so i took out the header section code and reaplced it with mine, i think in short i replaced the header (including references to stylesheets etc) and footer areas with my code and then made subtle changes to the CSS.

    You then have some really cool ways to display content from the blog on your home page etc...

    http://davidorrgolfcoaching.com/blog.aspx

    Hope this helps.

    S

  • Dominic Brown 91 posts 111 karma points
    Sep 12, 2011 @ 11:43
    Dominic Brown
    0

    Hi Stephen,

    thanks very much for your reply.

    I'm pretty new to Umbraco and this will be the first time i've seen a master page :oS  It appears to be a master template (forgive my noobness lol), going to fire some questions at you now, no laughing lol

     

    Can you advise what i need to change on the master template?

    Did you change the header and footer in the master page? if so, can you not do that in the normal templates and then its reflected in the master page?

    Also, when i've installed uBlogsy it has added a MyBlog section in the content area, i cannot seem to be able to get that on my website. As stated before i've tried adding macros to page templates that i've created but no joy, i've also tried recreating the MyBlog section under my Homepage folder with the rest of the web pages but no joy. Here is how the content menu looks if it help

    Content

    -- Business Site (Homepage)
    -- -- Our Programs
    -- -- Risk Based Appraoch

    -- Frontpage Sliders

    -- MyBlog

     

    thanks in advance for you help and understanding lol

  • Stephen 204 posts 246 karma points
    Sep 12, 2011 @ 12:25
    Stephen
    1

    just right cllick the MyBlog folder and "move" it to your business site so it looks like this..

    Content

    -- Business Site (Homepage)
    -- -- Our Programs
    -- -- Risk Based Appraoch
    -- -- MyBlog

     

    Asfor the master template you can change anything you want, to test it why not copy code (div tag for example) from your Business site master page into the MyBlog master page.  Does your business site have design code?

    S

  • Dominic Brown 91 posts 111 karma points
    Sep 12, 2011 @ 12:36
    Dominic Brown
    0

    ah you know i tried that and it didn't work but i've just tried again and it did. I did think that is what i needed to do!! Thanks alot Stephen!

    I've managed to get it to work now, i moved the MyBlog, then in the template i made the master template my master so it had the header/footer that i created. I then had an issue with the ContentPlaceHolderId being default, so i changed that to cp_content and it works.

    thanks alot, really grateful for your help

  • Stephen 204 posts 246 karma points
    Sep 12, 2011 @ 12:41
    Stephen
    0

    Just be carerfull you still refer to the uBlogsyBase master template in the uBlogsyBaseSite template as i'm pretty sure this still needs to happen.

    S

  • Dominic Brown 91 posts 111 karma points
    Sep 12, 2011 @ 12:57
    Dominic Brown
    0

    Yeah everything under uBlogsyBase refers to my master template, everything under that (uBlogsyBaseSite etc) refers to the uBlogsyBase

    Thanks again :o)

     

  • Dominic Brown 91 posts 111 karma points
    Sep 12, 2011 @ 12:58
    Dominic Brown
    0

    that was typed so badly haha

     

    uBlogsyBase refers to my master template, everything under that (uBlogsyBaseSite etc) refers to the uBlogsyBase

    Thanks again :o)

     

  • Dominic Brown 91 posts 111 karma points
    Sep 12, 2011 @ 12:59
    Dominic Brown
    0

    i like the look of the blog in your link, is that the one you created?

     

  • Stephen 204 posts 246 karma points
    Sep 12, 2011 @ 13:06
    Stephen
    0

    Yes based on uBlogsy of course! When i slotted in into my site and added my site CSS stylesheet all the h1, h2's etc etc looked like the rest of my site.

    Cheers,

    S

  • Dominic Brown 91 posts 111 karma points
    Sep 12, 2011 @ 13:14
    Dominic Brown
    0

    looks really good mate, like the whole site :o)

  • Tim Pugh 3 posts 23 karma points
    Sep 27, 2011 @ 14:40
    Tim Pugh
    0

    Hi,

    I also  am very new to umbraco and in a very similar situation. I want the blog to appear as another page in my site so moved the content pages. When I change the ublogsybase template to use my master template, the web page comes up with a parser error. Dominic mentions a problem with ContentPlaceHolderId being default, which I think must be the same problem. It says:  "Cannot find ContentPlaceHolder 'ContentPlaceHolderDefault' in the master page". Dominic mentions that he fixed this by changing the contentholder, but I'm not sure where this needs chaning. I'm a bit unfamiliar with asp & master templates, so am going to try and read up on it this evening, but andy advice would be very appreciated.
    Thanks

    Tim 

  • Dominic Brown 91 posts 111 karma points
    Sep 27, 2011 @ 15:41
    Dominic Brown
    0

    Hi Tim,

    If i remember correctly, i moved the Blog in the Content section so it was under my homepage with all the other pages. Then i went to the uBlogsyBase template and set it to use my master template (which is called Starterkit Master on mine), if you stay in that template and look along the top line you should see this:

    <%@ Master Language="C#" MasterPageFile="~/masterpages/umbMaster.master" AutoEventWireup="true" %><asp:Content ContentPlaceHolderID="cp_content"

    There is the ContentPlaceHolderID that i changed to cp_content

     

    That should do it mate

  • Tim Pugh 3 posts 23 karma points
    Sep 27, 2011 @ 21:07
    Tim Pugh
    0

    Hi,

    Thanks for the quick response, I'm still having problems though.I've moved the blog content so it's under the home page, and it works if the ublogsy template is set to no master. This effectively opens the blog without the main site navigation, css etc (separate site effectively).  As soon as I change it to the site master, it stops working and I get an error:

    "Cannot find ContentPlaceHolder 'ContentPlaceHolderDefault' in the master page '/masterpages/umbmaster.master', verify content control's ContentPlaceHolderID attribute in the content page"

    I changed the tag above and I get a different error: "A page can have only one server-side Form tag." Tried a couple of other things, but I'm just guessing really. 
    Not sure if it's related, but my ublogsybase template has an extra line in. It's full code is: 
    <%@ Master Language="C#" MasterPageFile="~/masterpages/umbmaster.master" AutoEventWireup="true" %><asp:Content ContentPlaceHolderID="cp_content" runat="server"><asp:ContentPlaceHolder ID="ContentPlaceHolderDefault" runat="server" /></asp:Content>
    Thanks for the help anyway, I'm going to go back to the how umbraco works videos to get a better idea of templates and the like.
  • Dominic Brown 91 posts 111 karma points
    Sep 27, 2011 @ 21:21
    Dominic Brown
    0

    hi mate,

     

    whats in your masterpage? you might be using a different template and not have cp_content in there? I am guessing though. Double check by opening your master page, it is located in the master pages of your site, example: C:\Users\dombrown\Documents\My Web Sites\Umbraco CMS Test\masterpages. Can you locate that and paste the contents in here and we can compare

     

    thanks

Please Sign in or register to post replies

Write your reply to:

Draft