Keyword

Duplcate group of field with field inside

  • Com3elles
  • Com3elles's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 3 days ago #176621 by Com3elles
Hello
for now i have a big group of field with more than 50 fields i need to create a new one with 80% of same field
somebody how i can "copy" the master group with all fields ? (mabe via sql)
regards

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 1 day ago #176625 by Fotis
Replied by Fotis on topic Duplcate group of field with field inside
I guess K2 needs a batch actions button in the extra fields list... Noted down.

As for copying existing fields, the fastest route is to first create the new Extra Fields Group and then use phpMyAdmin to mark the fields you wish to copy in batches of 10 entries and then simply change the group ID and append or prepend something to each alias.

Even if you run an SQL statement to copy the fields, you'd still have to define which fields to copy, so it still remains a manual process.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Com3elles
  • Com3elles's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 1 day ago #176629 by Com3elles
Replied by Com3elles on topic Duplcate group of field with field inside
hi thanks for explain but can you explain more ? (table name etc)

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 6 days ago #176634 by Fotis
Replied by Fotis on topic Duplcate group of field with field inside
It's not really hard as they are all prefix with k2_ (after the database tables prefix). The one you're interested in is #__k2_extra_fields and when you select the fields you wish to clone in phpMyAdmin, all the fields will open up for you to easily edit the alias and group ID.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum