New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the Template API #218
Comments
Disabling CSS Detail
NOTES: The Chosen and qTip styles should not be enqueued by default. The template's should enqueue them as needed. I'm stuck with loading the Chosen CSS for now, but I should update all templates that use it to enqueue the CSS. As for the CSS for qTip, leave it registered, but their is no reason to enqueue it.
|
Overriding Template CSS Detail User would create a folder named
|
Overriding Template Layout Files User would create a folder named
|
Loading template files based on context. Currently using the template API a list result card and a single entry card can be registered for use. Using this method required that the user know just a little more than just basic PHP. This should be changed to load based on if the file exists or not. This will allow for the user to easily override a template file in an upgrade safe manner and add support for other views if the template does not come with one.
Template should load in the following order:
NOTE: This really isn't a true hierarchy, the template that will be loaded will be based on context of what the requested results are. Only if the template file for that context is not available will it fall back to the |
Important Note to self: Keep qT in mind when making these changes because templates created with qT will not have actual files, but if the files exist, they should override what was added when making the qT. |
Do not enqueue the qTip CSS in core, just register it. Enqueue the CSS in the template. gh-218
This class can very likely be modded for my use. ref: |
This is to allow the use of template override files. gh-218
Required for compatibility for the cnTemplate refactor. gh-218
Incorrectly using self to call a method. Add missing phpDoc. gh-218
The firth gen API is great for me, however, it makes it far more difficult for users who just want to tweak their templates a little. So let improve that a little by:
The text was updated successfully, but these errors were encountered: