Having a little trouble with extra fields

Discussion in 'Customizations' started by TheTechGuru, Apr 14, 2011.

  1. TheTechGuru Customer

    Im trying to display extra fields in columns.


    Does anyone know of a way to display extra fields in columns of 2?

    Example:

    Extra Field 1: Value Extra Field 2: Value

    Extra Field 3: Value Extra Field 4: Value

    Extra Field 5: Value Extra Field 6: Value
  2. Mike-N-Tosh Developer & Moderator

    I haven't done it exactly like that, but just about every other way. I just made my own extra_fields plugin based on the default one. Added the extra SQL query to get the actual extra field name. In my version, I added an extra parameter $type and in my code after getting the field and the value used a switch statement on the type variable, so that I could change the output based on the type parameter (type values can be list, tablerow, group).
  3. TheTechGuru Customer

    Mike-N-Tosh, you wouldnt have anything I could start with would you?

    Thanks for that info too, I was originally trying to use the same code the index categories use, but kept on running into trouble.

    I guess I will def have to use a plugin, do you have any of that code, something I can visually look at? Id be more than happy to purchase it, it would save me a lot of time, and Im pretty sure your way would prob be better than anything I end up with on my own.
  4. TheTechGuru Customer

    Which default plugin are you referring to?
  5. seymourjames All Hands On Deck

    I told you that in an email LOL - (quote) its in the plugins directory (get extra field) but I think Mike is working on something more general. It is best to do the output within the plugiin itself as you can't test on it afterwards which is typically what many would wish to do. There have been forum posts about that. Just copy the existing one - rename it and do what you need to do inside of it.
  6. TheTechGuru Customer

    I think I get what you mean.

    Not sure why I have a mental block about this, but I will try to create something tonight. I finally have some time to sit down and mess around.

    Im going to try and create another plugin out of getextrafields and another plugin that will allow columns to be called.
  7. Mike-N-Tosh Developer & Moderator

    I emailed you the plugin the day you posted this!

    I also replied a week later to see if it worked out for you too.
  8. TheTechGuru Customer

    Sorry Mike-N-Tosh, I havent checked my email in a bit. I had no clue.

    Just checked it out, and it looks awesome, gave me some ideas. Thanks again!

Share This Page