Support » Plugin: Pods - Custom Content Types and Fields » How to display results from relationship field in a grid

  • Hi again,

    So I use relationship field to select related items for a product. In my pods template, I can access those related items via magic tags.

    I’m struggling to find out what would be the best approach to display those related items as a grid (or a slide show)? Should i keep using Pods templates or should i modify my theme files and access this pods object via PHP and and then somehow use theme’s styles to display them (I use customizr theme)?

    Or perhaps there is a plugin that will take these pods objects and return an html grid?

    Thanks in advance for any pointers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jim True

    (@jimtrue)

    Most Grids, Slideshows and Carousels are all just unordered lists with some CSS and (sometimes) some jQuery for the controls. That’s the preferred method for handling grids, etc. because with CSS you have a lot more control over how your unordered lists are displayed. Look at Grids using Nth element positioning where you control the handling of the floats based on how many elements have been displayed.

    That’s the preferred method when you’re dealing with content that you won’t know how many items will be displayed. Wrap them in a containing div or other semantic element, do your markup semantically correct and let the CSS do the work of display.

    You can do those with Pods Templates or PHP Theme Templates or with Beaver Themer. You’re just outputting content.

    Thank you Jim, that’s helpful.

    Plugin Author Jim True

    (@jimtrue)

    Glad to hear it 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.