team section

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Fike 2 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #163571

    hi

    i want to build a team section for a website. there are depatments dividing the team. by default the first department should be shown. at the top there will be a tabbed navigation for selecting the department.

    what i’ve done so far: set up a pod called "team", added a pick column for taxonomies to select the department.

    how can i create a navigation for this?

    thanks

    lukas

    #163572

    Fike
    Participant
    Post count: 2

    You can do a pod page template that will show each department (depending on the current received slug). If this option is applicable (it requires page reloading, but anyway i don’t know javascript), it would be something like this:

    Your output will be a string like

    so you’ll be able to control it over CSS. If you’ll put this on some page, other from deps pages, all menu tabs should just be one inactive style, i guess.

    #163573

    hi fike

    thanks! this looks good, gonna give it a try.

    isn’t there a nicer way to render pods links? i am thinking of somethin like wp_list_pods().

    regards

    lukas

    #163574

    Fike
    Participant
    Post count: 2

    There is not such function yet afaik (this template will work on pages with any slug – for the function there is unlimited amount of pages, and we are not checking availible pages – we are building menu for pages that contain data). I think that you can render it as theme function – but i am not sure how Pod should be initalized then (i’m afraid of double initialization on the page and don’t know what will happen), someone more experienced should tell that.

    Two more things i need to say: first, i lost the link itself in the code:

    the code tag is not working with a href tag properly, so there shouldn’t be any spans and a class

    The second one is about navigation – i actually do now how you can use javascript for only one page. You can render all data in divs with default CSS style as "display:none" and than change it to "display:block", using onClick – this is sure possible and won’t take tens of code lines. The all above code won’t be useful in that way, but there wouldn’t be more complicated construction, i think.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting