Redactor formatting* 3. Add fields to images 4. Router page template 5. The best of Twig 6. Handy General settings 7. Add custom table attributes to element listings* 8. Add custom sources to element listings* 9. Move home out of a single and into a structure 10. Field organization
config selector • Check out the redactor docs to see everything you can do https://imperavi.com/ redactor/docs/settings/ buttons/ Standard & Simple options
HTML view • Adds custom formatting options to wrap the selected text with a span that has a class of orange- text or green-text Add custom formatting options
just the base plugin file and a resources directory with a css file • Include the css file in the init function if the request is a CP request and if a user is logged in Add CSS to reflect front-end styles
to see what the class is on the redactor dropdown item and text edit box, then target it in CSS • Updates to Redactor can break this functionality (sometimes they change class names), so keep an eye out Add CSS to reflect front-end styles
use a completely different image for different contexts • Transforms won’t always make your designer happy • It saves you from adding extra fields on your entry that won’t necessarily be used Why do it?
use the same router template • It’s easier to add, remove and consolidate page templates without modifying the CP • Can create more complex routes What does this mean?
favorite setting • Enabling fuzzy search will allow you to find images and entries in a search bar by only providing a partial match of the keyword Fuzzy Search
to manually update the CMS and some plugins • This option allows us to remove the ability to do so, saving us from click-happy clients • It does not remove the badge letting us know there are updates available Disable auto updates
of methods to the plugin file we made earlier defineAdditionalEntryTableAttributes() getEntryTableAttributeHtml(EntryModel $entry, $attribute) How do we do this?
$asset, $attribute) defineAdditionalCategoryTableAttributes() getAssetTableAttributeHtml(CategoryModel $cat, $attribute) defineAdditionalCategoryTableAttributes() getCategoryTableAttributeHtml(UserModel $user, $attribute) You can do this for entries, assets, users and categories
Sections • Delete the Homepage Single • Navigate to Entries and create a Home entry in the desired structure • Change the slug to __home__ • Save the entry and that’s it! Instructions
Redactor formatting 3. Add fields to images 4. Router page template 5. The best of Twig 6. Handy General settings 7. Add custom table attributes to element listings 8. Add custom sources to element listings 9. Move home out of a single and into a structure 10. Field organization