博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

django cms toolbar 管理页面

Posted on 2018-02-24 14:07  bw_0927  阅读(222)  评论(0)    收藏  举报

http://docs.django-cms.org/en/develop/how_to/install.html

 

All content in django CMS is managed via plugins. 

 

所有的插件/app被列在了INSTALLED_APPS中

 

Page-->Page Settings

  • Slug: The page’s slug is used to form its URL. For example, a page Lenses that is a sub-page of Photography might have a URL that ends photography/lenses. You can change the automatically-generated slug of a page if you wish to. Keep slugs short and meaningful, as they are useful to human beings and search engines alike.  当前页面对应的url地址
  • Menu Title: If you have a page called Photography: theory and practice, you might not want the whole title to appear in menus - shortening it to Photography would make more sense.
  • Page Title: By default, a page’s <title> element is taken from the Title, but you can override this here.

     The <title> element isn’t displayed on the page, but is used by search engines and web browsers - as far as they are concerned, it’s the page’s real title.

  • Description meta tag: A short piece of text that will be used by search engines (and displayed in lists of search results) and other indexing systems.

 

Structure and content modes

In Structure mode, you can manage the placement of content within the page structure.

Switch to Structure mode. This reveals the structure board containing the placeholders available on the page, and the plugins in them。 

Content mode:当前页面的编辑模式,双击可进行编辑

Structure模式下可以看到当前页面中的所有占位符,以及插件

 

 例如下图,Struct模式下当前页面包含了两个Text插件

 

 Content模式下:

 

 ===================

http://docs.django-cms.org/en/develop/user/reference/page_admin.html

   返回主页

   网站管理;   

  • User settings … allows you to switch the language of the admin interface and toolbar。  

 

 

 

Title:  显示在浏览器的标题栏上,如果没有设置‘page title’ 

Slug:  显示在浏览器的地址栏上,标识当前页面的url

Menu title:  used to override what is displayed in navigation menus,usually when the full Title is too long to be used there. 用来覆盖导航栏的菜单。  {% show_menu 0 100 100 100 %}

Page title : 覆盖浏览器的标题栏     {% block title %}{% page_attribute "page_title" %}{% endblock title %}   用它来获取设置的titile

Description meta tag is expected to be used to populate a <meta> tag in the document <head>

 

 

Advanced settings

../../_images/page-advanced-settings.png
  • Overwrite URL   覆盖默认的slug,用来标识当前页面的url
  • Redirect  重定向allows you to redirect users to a different page. This is useful if you have moved content to another page but don’t want to break URLs your users may have bookmarked or affect the rank of the page in search engine results.
  • Template 使用的模版
  • Id is an advanced field that should only be used in consultation with your site’s developers. Changing this without consulting developers may result in a broken site.
  • Soft root allows you to shorten the navigation hierarchy to something manageable on sites that have deeply nested pages. When selected, this page will act as the top-level page in the navigation.
  • Attached menu allows you to add a custom menu to the page. This is typically used by developers to add custom menu logic to the current page. Changing this requires a server restart so it should only be changed in consultation with developers.
  • Application allows you to add custom applications (e.g. a weblog app) to the current page. This also is typically used by developers and requires a server restart to take effect.
  • X Frame Options allows you to control whether the current page can be embedded in an iframe on another web page.