--- myst: html_meta: "description": "" "property=og:description": "" "property=og:title": "" "keywords": "" --- # Configuring And Customizing ````{warning} > This chapter has not yet been updated for Plone 5! ```{eval-rst} .. sectionauthor:: Philip Bauer ``` ```` (customizing-controlpanel-label-ttw)= ## The Control Panel The most important parts of Plone can be configured in the control panel. - Click on the portrait/username in the toolbar - Click {guilabel}`Site Setup` We'll explain every page and mention some of the actions you can perform here. ### General 01. Date and Time 02. Language 03. Mail 04. Navigation 05. Site 06. Add-ons 07. Search 08. Discussion 09. Theming 10. Social Media 11. Syndication 12. TinyMCE ### Content 1. Content Rules 2. Editing 3. Image Handling 4. Markup 5. Content Settings 6. Dexterity Content Types ### Users 1. Users and Groups ### Security 1. HTML Filtering 2. Security 3. Errors ### Advanced 1. Maintenance 2. Management Interface 3. Caching 4. Configuration Registry 5. Resource Registries Below the links you will find information on your Plone, Zope and Python versions and an indicator as to whether you're running in production or development mode. ### Change The Logo Let's change the logo. - Download a Plone Conference logo: - Go to - Upload the Logo. ```{seealso} ``` (customizing-portlets-label-ttw)= ### Portlets In the toolbar under {guilabel}`More options` you can open the configuration for the different places where you can have portlets. - UI (User Interface) fit for smart content editors - Various types - Portlet configuration is inherited - Managing - Ordering/weighting - The future: may be replaced by tiles - `@@manage-portlets` Example: - Go to - Add a static portlet "Sponsors" on the right side. - Remove the news portlet and add a new one on the left side. - Go to the training folder: and click {guilabel}`Manage portlets` - Add a static portlet. "Featured training: Become a Plone-Rockstar at Mastering Plone!" - Use the toolbar to configure the portlets of the footer: - Hide the portlets "Footer" and "Colophon". - Add a {guilabel}`Static text portlet` and enter "Copyright 2015 by Plone Community". - Use {menuselection}`Insert --> Special Character` to add a real © sign. - You could turn that into a link to a copyright page later. (customizing-viewlets-label-ttw)= ### Viewlets Portlets save data, Viewlets usually don't. Viewlets are often used for UI-Elements and have no nice UI to customize them. - `@@manage-viewlets` - Viewlets have no nice UI - Not aimed at content editors - Not locally addable, no configurable inheritance. - Usually global (depends on code) - Will be replaced by tiles? - The code is much simpler (we'll create one tomorrow). - Live in viewlet managers, can be nested (by adding a viewlet that contains a viewlet manager). - TTW (Trough-The-Web) reordering only within the same viewlet manager. - The code decides when it is shown and what it shows. (customizing-zmi-label-ttw)= ### ZMI (Zope Management Interface) Go to Zope is the foundation of Plone. Here you can access the inner workings of Zope and Plone alike. ```{warning} Here you can break your site so you should know what you are doing! ``` ```{only} not presentation We only cover three parts of customization in the ZMI now. Later on when we added our own code we'll come back to the ZMI and will look for it. At some point you'll have to learn what all those objects are about. But not today. ``` #### Actions ({guilabel}`portal_actions`) - Actions are mostly links. But **really flexible** links. - Actions are configurable TTW (Through-The-Web) and through code. - These actions are usually iterated over in viewlets and displayed. Examples: - Links in the Footer ({guilabel}`site_actions`) - Actions Dropdown ({guilabel}`folder_buttons`) Actions have properties like: - description - url - i18n-domain - condition - permissions ##### {guilabel}`site_actions` These are the links at the bottom of the page: - {guilabel}`Site Map` - {guilabel}`Accessibility` - {guilabel}`Contact` - {guilabel}`Site Setup` We want a new link to legal information, called "Imprint". - Go to {guilabel}`site_actions` (we know that because we checked in `@@manage-viewlets`) - Add a CMF Action `imprint` - Set the *Title* to `Imprint` (this will be the link text) - Set URL to `string:${portal_url}/imprint` - Leave *condition* empty - Set permission to `View` - Save ```{only} not presentation explain ``` - Check if the link is on the page - Create new Document "Imprint" and publish ```{seealso} ``` #### Global Navigation - The horizontal navigation is called {guilabel}`portal_tabs` - Go to {menuselection}`portal_actions --> portal_tabs` ([link](http://localhost:8080/Plone/portal_actions/portal_tabs/manage_main)) - Edit `index_html` Where is the navigation? The navigation shows content-objects, which are in Plone's root. Plus all actions in {guilabel}`portal_tabs`. Explain & edit `index_html`. Configuring the navigation itself is done elsewhere: If time explain: - user > undo - user > login/logout ##### Skins (`portal_skins`) In {guilabel}`portal_skins` we can change certain images, CSS-files and templates. - {guilabel}`portal_skins` is deprecated technology - Plone 5 got rid of most files that lived in {guilabel}`portal_skins`. #### Change Some CSS - Go to ZMI - Go to {guilabel}`portal_skins` - Go to {guilabel}`plone_styles` - Go to {file}`ploneCustom.css` - Click {guilabel}`customize` The CSS you add to this file is instantly active on the site. #### Portal View Customizations ##### Change the footer - Go to {guilabel}`portal_view_customizations` - Search `plone.footer`, and click {guilabel}`Customize` - Replace the content with the following ```html ``` ```{seealso} ``` #### Further Tools In The ZMI There are many more notable items in the ZMI. We'll visit some of them later. - {guilabel}`acl_users` - {guilabel}`error_log` - {guilabel}`portal_properties` (deprecated) - {guilabel}`portal_setup` - {guilabel}`portal_workflow` - {guilabel}`portal_catalog` (customizing-summary-label-ttw)= ### Summary You can configure and customize a lot in Plone through the web. The most important options are accessible in the [Plone control panel](http://localhost:8080/Plone/@@overview-controlpanel) but some are hidden away in the [ZMI](http://localhost:8080/Plone/manage). The amount and presentation of information is overwhelming but you'll get the hang of it through a lot of practice.