How to setup load_template_filter for new component with a directory page
Am trying to figure out how to setup a component to use the new template hierarchy for it’s Directory page.
I have a template (part) at /mycomponent/includes/templates/mycomponent/index.php
And want that to be injected into a surrounding page (similarly to the way directory pages are handled for the default components.
@r-a-y gives a good write covering use of the template hierarchy in relation to profile tabs: http://codex.buddypress.org/theme-compatibility/upgrading-older-plugins-that-bundle-custom-templates-for-bp-1-7/
But, I’m struggling to see how to adapt this to component that has a Directory page (as well as other high level pages and new profile tabs).
Any pointers to documentation / examples appreciated!
You must be logged in to reply to this topic.