1

First, which template does the actionGetElements use to generate a response?

Second, how can I customize the template for a single entry section?

  • What kind of customization do you want to do, specifically? – Mats Mikkel Rummelhoff Jul 11 '16 at 8:13
  • I want to add a filter and change headers. – user2997606 Jul 12 '16 at 0:47
2

First, there isn't a single specific template that ElementIndexController's actionGetElements uses to return data.

It implements IElementType's getIndexHtml method which BaseElementType provides a default implementation of, but any ElementType (Entry, User, Asset, custom plugin ElementType, etc.) is free to implement that method with their own logic.

Second, it sounds like you want to hack core files in the craft/app folder, which I definitely wouldn't recommend.

You might be able to make the modifications you're looking for with something like the CP CSS and CP JS plugins.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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