星期日, 27 12月 2020 14:03

Template Manager

 Create and insert snippets of HTML content
About the Template Manager
Template Manager Interface
Creating a Template
Template Manager Configuration
 


About the Template Manager

Category: Template Manager

The Template Manager creates and inserts templates - custom html files that contain content for inserting into articles, often text or html that you use frequantly like disclaimers, copyright notices or structured html content to build articles on like layouts, tables etc.
Templates can be created either by saving an articles html content to a file, or by creating the template (an html file) in an HTML editor. For more information on creating templates see Creating a Template.
The Template Manager is not a plugin to create or edit Joomla! Templates

Template Manager Interface


The Template Manager, like the other Manager plugins, uses the familiar Manager Interface, but unlike the other Manager plugins, does not have an Attributes section - templates don't have attributes!
The Template Manager has one unique button, the  New Template button, used to create new templates from the current article content. See Creating a Template


Creating a Template


The Template Manager is able to create new templates from existing content, that is, the contents of the article you are editing/creating when the Template Manager is open. A template can be created from a selection or from the whole article. When just a selection is required, you must select the desired content before opening the Template Manager. This is not necessary if you are using the whole article.Creating a Template
Once the Template Manager plugin dialog is open, click the New Template icon. The Create Template dialog will open.


Name - The name of the template
Type - The type of 'template' to create, either a Template or a Snippet

A Template wraps your content in a div with a unique id, which allows it to be identified.Templates can be replaced by other Templates or Snippets using the Template Manager.
Templates can have predefined variables in its content replaced by values defined in the Template Manager configuration - see Template Manager Configuration.
Unlike Snippets, which can only be inserted into the article content at the current cursor position, Templates can affect selected content. The selected article content will be altered by whatever html is contained in the Template that has a class included in the Content Classes' list in the Template Manager Configuration....

继续阅读完整内容

请查看下方广告以解锁文章剩余内容

广告加载中...
查看 20292 最后修改日期 星期日, 27 12月 2020 14:11