• Hi there,

    Well. I want to build a static page based site for a client with 2/3 levels of navigation ie Home > About > Team > UK or Asia or Africa…. and I want to use a simple CMS so that my client can make basic text changes, post a news item etc. I want to have one level of permenant navigation; when an item is chosen from the main nav that item will show as active and the ‘page’ that appears will show a sub-level navigation list according to whichever item was chosen (that also can show active items etc).

    Here’s my question. I am useful with html/css and a small bit of php (includes n stuff)…how easy would you say it would be for me to set this thing up? I have had a crack at it with Textpattern but am getting nowhere fast. Has anyone had experience of trying to do this sort of this with WP or TXP and can advise me if you think WP might be an easier bet?

    If you think WP could suit my needs, I’d really appreciate a few pointers on the best way to start setting up the navigational structure for this kind of site (best practice etc)

    Many many thanks,

    A.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You have a lot of requirements… some of them can be done easily, others – well, not so easily 🙂
    First level Page highlighting is built-in but with children it gets more complicated.
    There are all kind of plugins (search the Codex: http://codex.wordpress.org/Plugins) and this forum for different menu options (folded page menu, folded whatever).

    Of course, if the site is really “static” you can use a third party script and handcode the links, what I said above is about using the WP template tags to generate menu list items.

    Generally, it is not very easy (is there anything that is?) but with a fair understanding of the WP mechanism it can be done. The task itself to use WP as a CMS is not that complicated. However, when you want to add all kind of “fancy” stuff for navigation, menu highlighting… then it gets painful sometimes.

    Thread Starter dimfish

    (@dimfish)

    Thanks Moshu. I guess I could hand code it as there isn’t really a need for the menus to be dynamic, so that could solve that. I guess I should get it installed and have a play.

    Any other tips gratefully received…

    Thanks.
    A.

    You can use pages and child pages to set this up (assuming I’m reading it right). For your page navigation you can use this to only display the first set of parent pages:

    <?php wp_list_pages(‘title_li=&depth=1’ ); ?>

    Then in your page template, you can list child pages for that page like so:

    <?php if ($subpages = wp_list_pages(‘title_li=&depth=1&echo=0&child_of=’.$post->ID)) : ?>
    <h1>Subpages</h1>

      <?php echo $subpages; ?>

    <?php endif; ?>

    I managed to do a little bit of CMS on my blog at http://www.vincentrich.com but I cannot get my WP pages to be .html like my blog entries at the moment.

    My pages end up like /articles/article-1/.

    vincentrich, your question is totally un-related to the OP, and no, you cannot do anything about it: have to learn to live without .html extension for Pages.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How easy to setup WP as CMS?’ is closed to new replies.