Copied to clipboard

Flag this post as spam?

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


  • Gabriel Baciu 2 posts 22 karma points
    Feb 16, 2012 @ 19:12
    Gabriel Baciu
    0

    Landing Page for Each Category

    We are trying to implement a landing page for each blog category and basically  have http://www.domain.com/MyCategory.aspx where MyCategory.aspx is the index page of all post in the category MyCategory.

    Right now, by default ublogsy lets us to have category pages via the querystring like http://www.domain.com/?category=MyCategory but this solution is not optimal for us because it's not highly SEO optimised and is doesnt provide us with the flexibility to accomodate diferent title, intro paragraph or other macros/modules for each category index page.

    When I create a new category I see that we get this type of url http://www.domain.com/MyCategory.aspx wich I would expect to act like the index page for that category but when I click it it redirects to the latest post page in that category.

    At this point we are wondering if there is something that we are doing wrong so the redirect happens or this is the natural behaviour, and if this is natural behaviour how can we extend that behaviour to achieve category index pages with this kind of url http://www.domain.com/MyCategory.aspx.

    Could you give us your advice in this matter ?

    Thanks,

    Gabriel

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 17, 2012 @ 10:59
    Anthony Dang
    0

    It sounds like you've used a Date folder as a category. The template redirects to the first post.

     

    I think what you really want to do is create a new doctype (with matching template) called uBlogsyCategory

    You would have the landing node allow it as a child.

    You would have uBlogsyCategory allow uBlogsyFolderYear and post as a child.

    Now you have the ability to create a cateogry node with datefolders and posts under it.

    So just take the landing template and copy everything to the new category template.

    You need to make modifications to functionality of the scripts to list CHILDREN of the current node so I suggest creating new macro scripts based on the original uBlogsyListPosts.cshtml.

    Note: if you do this you may have to turn off auto-datefolders. I'm not sure I haven't tried this configuration.

  • Arslan 5 posts 25 karma points
    Apr 18, 2013 @ 14:18
    Arslan
    0

    Anthony! I need to add a new .aspx page to uBlogsy but when I add a page, It looks like this in browser. Can you please suggest what I am doing wrong?? Thanks

  • Arslan 5 posts 25 karma points
    Apr 18, 2013 @ 18:22
    Arslan
    0

    [Solved]

    Umbraco has 2 configuration properties which you can use to solve this problem:

     

    • umbracoReservedUrls
    • umbracoReservedPaths
    You can either specify a single file (eg: /Test.aspx) to be ignored by Umbraco, or an entire folder structure (eg: /MyApp).
    When excluding a folder all pages and sub folders at automatically excluded. In fact, that's how the /umbraco folder works ;)
Please Sign in or register to post replies

Write your reply to:

Draft