How it works...

As usual, the base.html template is the main template that is extended by all of the other templates. In this template, Django CMS uses the {% render_block %} template tag from the django-sekizai module to inject CSS and JavaScript into the templates that create a toolbar and other administration widgets in the frontend. We will insert the {% cms_toolbar %} template tag at the beginning of the <body> section; that's where the toolbar will be placed. We will use the {% show_menu_below_id %} template tag to render the header and footer menus from the specific page menu trees. Also, we will use the {% language_chooser %} template tag to render the language chooser that switches to the same page in different languages. All of the navigation is enhanced with Bootstrap 4 classes, for the navbar and other styling.

The default.html and start.html templates that are defined in the CMS_TEMPLATES setting will be available as a choice when creating a CMS page. In these templates, for each area that needs to have dynamically entered content, add a {% placeholder %} template tag (when you need page-specific content) or {% static_placeholder %} (when you need the content that is shared among different pages). Logged in administrators can add content plugins to the placeholders when they switch from the Live mode to the Draft mode in the CMS toolbar and switch to the Structure section.

Once the settings are correctly configured, the templates are in place, and all CMS-related static files have been collected, the default page content should look something like the following:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.193.172