Extra Field Example

Discussion in 'Technical Support' started by waywayway, Jul 16, 2011.

  1. waywayway New Member

    What version of 68 Classifieds are you running?
    Example: V4.1.6 Designer

    What template are you using?


    Please describe in detail the issue you are having:
    I am trying to work out how to use the EXTRA FIELD to capture deep categories.
    For example, I have the following hierachy and the child field will appear appropriately from selection:
    Currently, the listing view shows 3 extra fields, namely: SPECIES, INSECT, ANIMAL.
    Instead, I would like the field "SPECIES" to show first, then a drop down list "6 Legged" appears after selecting "INSECT".

    SPECIES: insect, animal

    INSECT has 2 types of body: 6 legged, 8 legged

    ANIMAL lives in: land, fresh water, salt water

    6 LEGGED are found in: ants, beatles

    8 LEGGED are found in: spiders, giant mantis



    Is this deep hierachy possible with Extra field?
  2. Mike-N-Tosh Developer & Moderator

    Not quite sure I'm following your example at all. The order that extra fields are shown within the viewlisting template is defined by the order set for each field in your admin/categories/extra fields.

    The left column of the list of extra fields (order) is what is used to order the extra fields when displayed.
  3. John Snyder Staff

  4. waywayway New Member

    Extra field

    Hi,

    I apologise for the complicated requirement.
    I will re-define what is required below:

    I have a specific requirement around listing to be posted to a particular location.
    This will require hierarchy approach, for example,

    The website is available for students in Australia, when a selling student choose to sell his laptop, he must choose what university/campus it is. So, the buying students can 1) search it and select a university to look under. 2) browse all categories by university/campus from a drop down list.

    I can only speculate the extra field here to use, however, I do not have enough depth in the hierachy to define all the universities in Australia. Extra field has parent and child.

    I will need deeper hierarchy functionality to grouping campus, for my reason to explain what the hierarchy will look like in a tree form.

    Institution
    ---University
    ------University of Orlando
    ------University of Maryland
    ----Polytech
    ------Arizona Polytech
    --------Aquinas polytech
    ----------tamaki campus
    ----------jervis bay campus


    Any other method/suggestion if this is implementable?

    Furthermore, I have enabled the extra field to be searchable, and conducted some search without satisfying result on this.
  5. John Snyder Staff

    I see what you mean, the extra field system wasn't designed for more than 1 level of parent child and making it work deeper I think would be a lot of work, this is something that will need to be addressed in later versions of 68C.

    This doesn't mean its not possible, its just not possible with the existing extra fields system. What you can do is make a module that ties into the search, listing view/add/edit and put these fields within the listings table. The hooks are in place to do this, but you'd need to be comfortable with PHP, have the developer version and be willing to write the module. You could also contact 1 of the 3rd party module makers and see if they can quote you for a custom module.

    You could probably overcome this with some advanced javascript to show/hide fields as well.
  6. seymourjames All Hands On Deck

    A couple of things. Why do you need Institution. It is part of what class as such. Secondly, in practical terms you could flatten out the structure - Aquinas polytech (tamaki campus), Aquinas polytech (jervis bay campus), etc. In real terms you are not going to lose a lot by doing that. Perhaps some aesthetics but that is all.

Share This Page