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.

Help, having difficulty showing certain types of classifieds

November 23, 2011 5:59am

Subscribe [1]
  • #1 / Nov 23, 2011 5:59am

    GDmac - expocom

    350 posts

    I have two channels “organisation-info” and “classifieds” and two member groups “users” and “members”. All users can post classifieds and on the classifieds page i can easily get the classifieds for members or for users by getting them with the member-group id {exp:channel:entries group_id="not 6"} That was the easy part.

    Now the site-owner wants to distinguish between commercial and non-profit type organisations.
    The organisation-info channel has a category group assigned for the type of organisation.

    - Commercial
    —- Fashion
    —- Food
    - Non-profit
    —- Hobby club
    —- etc.

    I have thought about some options but can’t seem to find an “easy” solution.
    It is very difficult to get all classifieds for all organisations with a non-profit category, ordered by the classifieds edit_date.
    - Duplicating the “members” group to a “non-profits” group.
    While easy to distinguish with group_id on the classifieds page, this makes it difficult for a member to only login once, and then have classifieds for both his commercial “fishing-shop” and for his non-profit “bikers-club”.
    - Related entries
    This is an easy way to show the classifieds on the organisation-info page, when you relate them to the organisation.
    However, i can’t seem to get all non-profit classifieds in an easy way with only related entries.
    - Storing extra (hidden) info in the classifieds
    Since the users are going to add classifieds thru safecracker on the front-end, i thought about storing the extra needed info inside a hidden field for the classifieds. Depending on some form-questions on the “New classified” page, they will be redirected to the form with the hidden settings added. This way to display the classifieds i only need a single channel:entries for the classifieds, ordered by the hidden org_type and edit_date.

    I probably will end up with a combination of relating the classified to the organisation and using a hidden field for easy display.

    What are your thoughts?
    How would you display the classifieds depending on the category of the parent-organisation-entry?

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

ExpressionEngine News!

#eecms, #events, #releases