0

We've created a lot of channels over the years some of which have been pruned back. This potentially leaves their channel field groups as useless clutter.

There doesn't seem to be a view within expression engine that succinctly displays which template groups are used with which channels -- or if any channel field groups are not being used at all.

How do I see which channel field groups are not associated with any channel?

1 Answer 1

0

This MySQL query will return a list of all the channel field groups that are not associated with a single channel:

SELECT 
    *
FROM
    exp_field_groups g
WHERE
    NOT EXISTS( SELECT 
            g.group_id
        FROM
            exp_channels c
        WHERE
            g.group_id = c.field_group)
2
  • Why did you ask and answer your own question so quickly?
    – jrothafer
    Commented May 29, 2015 at 14:58
  • @jchrono-battle stackoverflow.com/help/self-answer basically I wanted to treat this as a kbase entry. I already knew the answer before I posted the question.
    – AllInOne
    Commented May 29, 2015 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.