Jump to content

Common fields


Gazley
 Share

Recommended Posts

Hi there,

I'm starting to see groups of fields that might be optional in a template but may well make sense being included in other templates. So, re-usable field groups, if you like.

After having made great use of repeaters so far, I know that as a concept, I could achieve this reusability with a repeater. However, semantically, this is wrong because the data doesn't repeat in a single template.

Is there a recommended way to achieve this?

Many thanks!

  • Like 1
Link to comment
Share on other sites

I like the idea of field groups, but perhaps in another approach: Grouping them in the fields overview. On more complex sites I have 30-40 fields which I group by adding prefixes to them like contact_address, contact_person and so on. But it would be nice to define a field group "contact" and sort the field there (collapsible and tabbable perhaps?). Then the possibility to clone whole groups would be ... wait for it ... legendary ;-)

  • Like 3
Link to comment
Share on other sites

Perhaps a more simple solution is modifying the repeater code to make the 'repeating' functionality switchable. By this I mean it would become a more general 'field group' module with the option that the fields can be repeatable (even if this is set by default). It would also be nice to have a way to hide the fields inside from the general field list to keep things tidy.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...