A CMS for this site? (8 posts)

  1. markbrown4
    Posted 8 years ago #

    Hi all, I love WordPress!

    I have developed a site and am needing to incorporate a CMS and have heard that WordPress can handle the task for my simple layout.
    There's two main templates that would be used:
    (1 column)
    (2 column)

    So each main menu item at the top would have it's own sub menu items (or none)..
    I really have not much of an idea of how to go about getting this set up, Just browsing through the WP Theme Editor I have uploaded my CSS and am trying to figure out how to make the templates work and integrate the menus.
    100percentcare.com.au/wordpress/ is my shonky start - The menus are all static because I don't know how to manage them dynamically yet.

    Should the top level menus be categories and then the sidebar would be pages of the same category?

    Kind Regards,

  2. moshu
    Posted 8 years ago #

    Let me start from the bottom :)
    Pages (as in Pages described in the Codex) do NOT have categories.

    The Codex has plenty of good info:
    (this is not a finished article but has some ideas) http://codex.wordpress.org/User:Lastnode/Wordpress_CMS

    Your stylesheet alone is not really enough - you need to build a theme: http://codex.wordpress.org/Theme_Development

  3. markbrown4
    Posted 8 years ago #

    Thanks moshu,

    So will I not need categories at all for my design?

    Should all the top menu pages and sidemenu pages be "Pages", how do I link them? Each top level menu would have different submenu items.

    Thanks so much,

  4. moshu
    Posted 8 years ago #

    There is no "theoretical" answer to questions like that. It always depends on the structure, character and organization of your content. Since I have no idea what you are planning - I can't really answer the question.

    Categories can have:
    a) sub-categories and sub-sub-categories etc.
    b) posts in any category

    Pages can have sub-Pages and sub-sub-Pages... you got the idea.

    WP can serve as the platform for very different structures. When you have a clear picture (and I mean it literally: a chart or your future site on a paper) about how your content will be organized - the answer will be a piece of cake :)

  5. markbrown4
    Posted 8 years ago #


    "When you have a clear picture (and I mean it literally: a chart or your future site on a paper) about how your content will be organized - the answer will be a piece of cake :)"

    I do :)
    And I think that the pages, subpages, sub-sub-pages will work for me. Can you have sub-sub-sub-pages ? :)

    When dynamically highlighting the menu items how do you check if the page is a child(distant or close) of one the top level pages?

    Also how can I manage the sidemenu - displaying links to all subpages of selected top level item.


  6. markbrown4
    Posted 8 years ago #

    Hi again,

    It's been a great learning experience seeing how the themes are put together, but i'm not sure whether I can get the desired effect using only pages..

    I'm wanting the top menu to stay the same on every page, at the moment my menu looks like
    <ul id="menu">
    <li<?php if (is_home()) { echo " class=\"selected\""; } ?>><a href="#">Home</a></li>
    <li<?php if (is_page('Introduction to 100% CARE')) { echo " class=\"selected\""; } ?>><a href="#">Telecare</a></li>
    <li<?php if (is_page('Services')) { echo " class=\"selected\""; } ?>><a href="#">Services</a></li>
    <li<?php if (is_page('About')) { echo " class=\"selected\""; } ?>><a href="#">About Us</a></li>
    <li<?php if (is_page('Training')) { echo " class=\"selected\""; } ?>><a href="#">Training</a></li>
    <li<?php if (is_page('Contact')) { echo " class=\"selected\""; } ?>><a href="#">Contact Us</a></li>

    But I'm really wanting any sub-page of one of those to also be selected.

    I'm also wanting all children and/or siblings to be displayed in the sidemenu and the current one to be highlighted.

    Can these sorts of conditional statement work with 'Pages' or do I need to work with posts within comments. Or do I need a more complex CMS?


  7. markbrown4
    Posted 8 years ago #

    Ok, well I got the sub page menu displaying for the top menu with
    <li<?php if (is_page('Introduction to 100% CARE') || (get_the_title($post->post_parent) != the_title(' ' , ' ',false))) echo " class=\"selected\""; ?>><a href="#">Telecare</a></li>

    Hmmm.. the sidemenu displaying a list of all sub-pages. Any ideas?

  8. markbrown4
    Posted 8 years ago #

    What do you know, I got this working!

    <div id="main_content_right">
    <ul id="right_nav">
    if(wp_list_pages("child_of=".$post->ID."&echo=0")) {
    else {
    wp_list_pages("title_li=&child_of=".$post->post_parent."&sort_column=menu_order&show_date=modified&date_format=$date_format"); }


    Thanks for the help moshu!

Topic Closed

This topic has been closed to new replies.

About this Topic