ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

List Category Links of Reverse Related Items

June 19, 2012 4:34pm

Subscribe [1]
  • #1 / Jun 19, 2012 4:34pm

    wireframe

    24 posts

    I have a site that has been coded previously by a developer who has used alot of custom PHP rather than EE code which I am trying to work my way through.

    What I am trying to achieve is the category filter at top of page.

    http://cyclingresourcecentre.org.au.tmp.anchor.net.au/page/bicycle_and_public_transport

    Looks great but it has been built with a huge amount of custom php located here.

    http://www.thosedigitalthoughts.com/code-old.txt

    Here is what I have tried to put together but it isnt working :(

    http://www.thosedigitalthoughts.com/code-new.txt

    I am trying to get categories from a group with an id of 4. It seems it is just listing all categories multiple times that have been assigned to each post.

    Basically there is a relationship between page channel and post channel.

    The post channel has categories assigned to it from a category group with an id of 4.

    The page retrieves is a filter/holder of posts that have been assigned to it. I need to list the categories used in posts as as filter as is the case in link above.

    Help greatly appreciated. I am using EE 2.1.0

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases