WordPress.org

Ready to get started?Download WordPress

Ideas

Sections

  1. driz
    Member

    12345

    The one thing WordPress is really weak at is structuring its content, by default it wants to shove everything into one big list of posts and allow the user to organize it using categories and queries etc. This works fine if your site is just a blog type site. But if you have multiple areas for example say a Blog and Portfolio and need two areas, things become more complicated and very un-elegant.

    For example to create a blog and portfolio I would need to create two categories and then style up the category page to look like sections but then these would still only be categories of the main site (domain.com/category/blog/) which isn't ideal. Yes you can remove the category prefix but what about archives? They will still be relative to the main site (domain.com/2010/) and what if you wanted a page within your section for example (domain.com/portfolio/hireme) you would either have to create a page called portfolio and add in the query into the template but this means you'd have two pages acting as portfolio, or you could fake the permalink but both are hacks no matter how you swing it.

    The proposal? Sections!

    So you'd have your default section which you can't delete this is essentially what we have now and would be adequate for most sites. But for those that say want a Blog and Portfolio they could create new sections called that. Then they could assign there categories to those sections and that would be all. No templates would be needed as the sections would be purely structure based and not change anything about the way WordPress currently works.

    Using this new system you could for example have the following structures:

    domain.com/portfolio/2010/
    domain.com/portfolio/category/web/
    domain.com/portfolio/author/johndoe/

    domain.com/blog/2010/
    domain.com/blog/category/family/
    domain.com/blog/2010/01/01/sample-blog-post/

    domain.com/about
    domain.com/2010/01/01/hello-world

    As you can see everything works pretty much the same except by using Sections we get these nice prefixes to structure our content better. But this is much more than just pretty urls. This would be useful backend as you could assign pages and categories to sections thus more efficient.

    Hopefully this is something that can be developed into 3.5?

    Would love to hear some thoughts...

    Posted: 4 years ago #
  2. driz
    Member

    12345

    Was hoping there would be more interest in this...

    Posted: 4 years ago #
  3. syncbox
    Member

    You can easily create sections using Pages and subpages... a Page can display posts from a category. I've been using WP as a CMS for ages... it seems like you are asking for a way to organize categories - which, imo, would be a wrong approach.

    Just create custom page templates and use multiple loops to call the various posts from one or more category for display. You can create a page for the main section describing what content is in the section, then build subpages for each category or put everything into the single section page using multiple queries and loops.

    Posted: 4 years ago #
  4. driz
    Member

    12345

    @syncbox

    That isn't the same as sections. By having a page as your "fake" section you would end up with duplicate pages e.g. domain.com/blog/ and domain.com/category/blog/ if you removed the category prefix the page would override the category making feeds break as well as other problems.

    More importantly your archives (/2010/) and author links (/author/admin/), as well as tags (/tag/wordpress/) will all still be relative to the main root and not to your section.

    Posted: 4 years ago #
  5. Jen Mylo
    Key Master

    12345

    You should look into the custom taxonomy feature that was introduced in the last version. You can use a plugin with custom taxonomies.

    Posted: 4 years ago #
  6. driz
    Member

    12345

    Custom taxonomies wouldn't solve the problem. It's not the same as sections.

    Posted: 4 years ago #
  7. Michael Fields
    Themer

    12345

    @driz have you looked into the custom post types slated for release in 3.0? I think this may be what you are looking for.

    Posted: 4 years ago #
  8. variaas
    Member

    driz - I figure you're the same driz from the Textpattern community.

    I like sections in Textpattern too and have been looking into custom post types in WordPress 3.0. While it can go above and beyond the concept of sections, it looks like you could use it for basic sections.

    I would test out 3.0 and then install this plugin - http://wordpress.org/extend/plugins/custom-post-type-ui/

    Posted: 4 years ago #
  9. Paul Gregory
    Member

    12345

    Custom post types are probably the answer to the OP's problem, as they could be used for the portfolio side easily, keeping normal posts for your blog.

    However, what driz is essentially advocating is the division of a site into multiple blogs, which would easily retain all the usual posts functionality but in separate sections. Restated that way, it sounds to me that another approach to the sections issue would be to use the WordPress MU functionality!

    So in short, it sounds like there is a need for some documentation on how one can mimic sections with the various new features ... but as there are already (or will be post 3.0) multiple ways of dividing a website into sections, there's no need for this as a distinct new feature.

    Posted: 4 years ago #
  10. Jen Mylo
    Key Master

    12345

    Since the category method works fine for most people and custom post types will address most of the rest, I think you're looking at plugin territory if you want it to work exactly as you describe, at least for now.

    Posted: 4 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    15 Votes
  • Status

    This is plugin territory