• I wonder if there’s a possibility in wp to have a context menu. Let’s say I have top categories (parents) like:
    – Authors
    – Books
    – Events
    They are in my main horizontal navigation. When I click e.g. "Authors" I want to get my second navigation in the right column of my site where I could see a list of Autors’ children categories.
    So it would be like:
    Authors

    • Author 1
    • About Author1
    • Publications of Author1
    • Author 2
    • Author 3

    I don’t want to have all categories in the second menu listed on every page but only those which are connected to the category I’m in.
    Additionaly when I click Authors, then in the part where my main content is I would like to have something like:
    Author1
    Short description of Author1
    Author2
    Short description of Author2
    etc
    and not all posts from category Authors and its children
    The aim of it is to group similar things and to have some kind of order in the structure.
    So in generall it is like a small CMS rather than a blog system but if anyone has an idea if and/or how it could be done I would be very gratefull. On the other hand it’s not a bad idea for a blog either.
    I hope you’ve understood what I meant.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can certainly do what you want. There are several ways to accomplish it.

    The Variable Sidebar Content is probably your best starting point,in terms of a working example. It’s not at all what you want to do, but it shows the general form for what you need.

    See also Customizing_Your_Sidebar and Template_Tags.

    Thread Starter asystentka

    (@asystentka)

     
    I tried both links. But the problem is that I can’t find something like "if I’m in THIS category then show me another menu connected to THIS category I’m in ??

    It’s not about: "if I’m in a category which ID is X" but it’s about: "if I browse my site and then when I click category "AUTHORS" then I got automatically another menu (children of AUTHORS)" ??
    And when I browse any of the children (e.g. AUTHORS/Author1/about) then I still can see children of AUTHORS in my second nav ??
    What I can do is still not flexible enough… I can have more and more ID’s and I never know what is gonna be under ID let’s say 152 ??
    If several people work on a site and they insert new categories and new content through the admin panel then every time I need to rewrite the code by adding e.g. another category ID??!
    I am only a designer not a programmer so unfortunately I can’t code what I want by myself but I thought "Maybe someone had this problem too"… ??
    Here is an example, One of my top categories is Authors, so:

      AUTHORS [ID1]
    • Author 1 [ID2]
    • About [ID3]
    • Publications [ID4]
    • Hobbies [ID5]
    • Author 2 [ID6]
    • About [ID7]
    • Publications [ID8]
    • Hobbies [ID9

    Now, I had a test with this:
    if (is_category('1')) {<br />
    echo &quot;<h3>Menu</h3>&quot;;<br />
    echo &quot;<ul>&quot;;<br />
    wp_list_cats('child_of=1');<br />
    echo &quot;</ul>&quot;;

    Then, yes when I clicked AUTHORS in my main nav I saw the other navigation but then when I clicked "Author1/About" in the new nav then my navigation dissapeared because it was no longer "child of 1" ?? So how many "if-s" should I have?
    I’d rather had:
    if (is_category('this')) {<br />
    echo &quot;<h3>Menu</h3>&quot;;<br />
    echo &quot;<ul>&quot;;<br />
    wp_list_cats('children_of=top_category_of_this');<br />
    echo &quot;</ul>&quot;;

    If you know what I mean ?? ?? ??

    Hey guys I was wondering if anybody new if there was a hack available for updating wordpress 1.5 via a PDA???

    Thread Starter asystentka

    (@asystentka)

    I think I have an idea how the context menu could be achieved. I tested b2evolution blog and it has a good feature to do so: multiple blogs. As far as I remember b2 ad wp had something in common some time ago, so… ?? If it was a wp feature as well I could solve my problem like this:

    Each new blog is a top category (my main navigation)

    So for instance I create 3 blogs (within one system) named: AUTHORS, BOOKS, EVENTS (these belong to my main horizontal navigation) and then if I create categories for AUTHORS, the categories are only visible when I browse AUTHORS because it is an independent blog with categories connected to this blog. The same about BOOKS, EVENTS…

    I know there are some projects on multiple blogs in wp but is it like in b2evolution blog? I want it to be easily administrated through the admin panel.

    I know, I could choose b2 blog, but I think wp is developing faster and generally it has more features and plugins.

    Any help and advice would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘a context menu (related to the content)’ is closed to new replies.