Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rename macro 'f' to 'mgnl-f'.

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
pages

 

Mgnl f
components

 

 

Table of Contents

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

 

Mgnl f
pages pages

 

Mgnl f
demo-features

 

stkHome

 

stkSection

 

stkArticle

 

...

Section
Column
width33%

模板原型

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

default

 

templates

 

prototype

 

areas

 

main

 

areas

 

intro

 

areas

 

infoBlock

 
Column
width33%

模板定义

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名
Mgnl f
pages
 

stkEvent

 

areas

 

main

 

areas

 

intro

 

areas

 

infoBlock

 

...

  • class节点里分配的STKPage定义基本模板定义。
  • modelClass节点里分配的STKPageModel是基本页面模型,提供页面级功能。它扩展了STKPage
  • renderType节点下值为stk时,分配的STK专用绘制器,STKRenderer。所有STK模板(页面和组件)都可以使用这个绘制器。
  • i18nBasename节点下分配的国际化关键字,info.magnolia.module.templatingkit.messages。这也是STK翻译的消息包关键字。
  • visible属性设置为true,使编辑者在页面应用里可以选择该模板。

    Advanced Tables - Table Plus
    heading0
    multiplefalse
    enableHeadingAttributesfalse
    enableSortingfalse
    classm5-configuration-tree
    enableHighlightingfalse
    节点名

     

    Mgnl f
    pages pages

     

    stkArticle

     

    areas

     

    Mgnl p
    bodyID

    article

    Mgnl p
    category

    content

    Mgnl p
    class

    info.magnolia.module.templatingkit.templates.pages.STKPage

    Mgnl p
    dialog

    standard-templating-kit:pages/article/stkArticleProperties

    Mgnl p
    i18nBasename

    info.magnolia.module.templatingkit.messages

    Mgnl p
    modelClass

    info.magnolia.module.templatingkit.templates.pages.STKPageModel

    Mgnl p
    renderType

    stk

    Mgnl p
    subcategory

    article

    Mgnl p
    title

    templates.stkArticle.title

    Mgnl p
    visible

    true

...

  • stkGlossary模板使用它自己的modelClass,即GlossaryTemplateModel,这个模型类通过扩展STKPageModel<STKPage>来完成按字母排序的词汇表。

    Advanced Tables - Table Plus
    heading0
    multiplefalse
    enableHeadingAttributesfalse
    enableSortingfalse
    classm5-configuration-tree
    enableHighlightingfalse
    节点名

     

    Mgnl f
    pages pages

     

    stkGlossary

     

    areas

     

    Mgnl p
    bodyID

    glossary

    Mgnl p
    category

    feature

    Mgnl p
    class

    info.magnolia.module.templatingkit.templates.pages.STKPage

    Mgnl p
    dialog

    standard-templating-kit:pages/glossary/stkGlossaryProperties

    Mgnl p
    i18nBasename

    info.magnolia.module.templatingkit.messages

    Mgnl p
    modelClass

    info.magnolia.module.templatingkit.templates.GlossaryTemplateModel

    Mgnl p
    renderType

    stk

    Mgnl p
    subcategory

    glossary

    Mgnl p
    title

    templates.stkGlossary.title

    Mgnl p
    visible

    true
  • stkRedirect模板使用它自己的:
    • modelClassRedirectTemplateModel,这个模型类扩展了STKPageModel,并提供3个可选的重定向模式。编辑者可以通过以下方式之一设置path值来选择模式:
      • 如果在对话框里输入了内部路径或外部URL,用户将会直接被重定向过去。为避免写入响应,绘制步骤会被跳过。
      • 如果没有输入路径,那么页面会重定向至找到的第一个子页面。这有利于直接显示一个在重定向树的二级或三级定义的页面。
      • templateScript:redirectMain.ftl,在页面上绘制合适的路径。您可以在STK 模板 /templating-kit/pages/functional/redirectMain.ftl里查看脚本。

        Advanced Tables - Table Plus
        heading0
        multiplefalse
        enableHeadingAttributesfalse
        enableSortingfalse
        classm5-configuration-tree
        enableHighlightingfalse
        节点名

         pages 

        Mgnl f
        pages

         

        stkRedirect

         

        areas

         

        Mgnl p
        bodyID

        redirect

        Mgnl p
        category

        functional

        Mgnl p
        class

        info.magnolia.module.templatingkit.templates.pages.STKPage

        Mgnl p
        dialog

        standard-templating-kit:functional/stkRedirect

        Mgnl p
        i18nBasename

        info.magnolia.module.templatingkit.messages

        Mgnl p
        modelClass

        info.magnolia.module.templatingkit.templates.RedirectTemplateModel

        Mgnl p
        renderType

        stk

        Mgnl p
        subcategory

        redirect

        Mgnl p
        templateScript

        /templating-kit/pages/functional/redirectMain.ftl

        Mgnl p
        title

        templates.stkRedirect.title

        Mgnl p
        visible

        true

...

  • bodyID:这是模板专有样式的CSS表所用的标签。参考Body类和ID以获得更多信息。bodyIDsubcategory值常常会一致,但它们彼此之间没有依赖关系。
  • categorysubcategory:每个模板都会分配到一个类别里,同时大多数模板也会分配到子类。很多场合都使用了类别,参考类别和子类
  • dialog:每个页面模板会连接到它自己的stk<Template name>Properties对话框,这个对话框在STK > 对话框定义 /pages里配置。页面顶部工具栏里的属性按钮可以打开此对话框,控制浏览器标题和导航标题及行为,页面元数据(关键字和描述),变异形式排除和页面依赖性。详细信息参看属性对话框
  • title:在页面应用的模板下拉菜单里显示的模板标题。

    Advanced Tables - Table Plus
    heading0
    multiplefalse
    enableHeadingAttributesfalse
    enableSortingfalse
    classm5-configuration-tree
    enableHighlightingfalse
    节点名

     pages 

    Mgnl f
    pages

     

    stkImageGallery

     

    areas

     

    Mgnl p
    bodyID

    image-gallery

    Mgnl p
    category

    feature

    Mgnl p
    class

    info.magnolia.module.templatingkit.templates.pages.STKPage

    Mgnl p
    dialog

    standard-templating-kit:pages/imageGallery/stkImageGalleryProperties

    Mgnl p
    i18nBasename

    info.magnolia.module.templatingkit.messages

    Mgnl p
    modelClass

    info.magnolia.module.templatingkit.templates.pages.STKPageModel

    Mgnl p
    renderType

    stk

    Mgnl p
    subcategory

    imageGallery

    Mgnl p
    title

    templates.stkImageGallery.title

    Mgnl p
    visible

    true

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

 

Mgnl f
pages pages

 

stkArticle

 

stkLargeArticle

 

stkNews

 

areas

 

Mgnl p
dialog

standard-templating-kit:pages/news/stkNewsProperties

Mgnl p
extends

/modules/standard-templating-kit/templates/pages/stkArticle

Mgnl p
subcategory

news

Mgnl p
title

templates.stkNews.title

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

 pages 

Mgnl f
pages

 

Mgnl f
demo-features

 

stkSectionNoExtras

 

areas

 

Mgnl p
extends

/modules/standard-templating-kit/templates/pages/stkSection

Mgnl p
title

Section no Extras

stkSectionNoHeader

 

stkSectionFloating

 

...

  • 决定整个区域是否绘制,无论区域包含的是组件,自动生成的内容,还是脚本绘制的内容。内容会保留在内容库中,并且在一个被禁用的区域重新使能后,将会再绘制。您可以在stkArticle模板上禁用extras,并在工具 > JCR里查看任意文章页来验证。

    Section
    Column
    width33%

    模板定义

    Advanced Tables - Table Plus
    heading0
    multiplefalse
    enableHeadingAttributesfalse
    enableSortingfalse
    classm5-configuration-tree
    enableHighlightingfalse
    节点名

    stkArticle

     

    areas

     

    extras

     

    Mgnl p
    enabled

    false

    Mgnl p
    bodyID

    article
    Column
    width33%

    JCR浏览器(网站)

    Advanced Tables - Table Plus
    heading0
    multiplefalse
    enableHeadingAttributesfalse
    enableSortingfalse
    classm5-configuration-tree
    enableHighlightingfalse
    节点名

    Mgnl f
    demo-project

     

    Mgnl f
    about

     

    subsection

    mgnl-f
    subsection-articles

     

    Mgnl f
    article

     

    extras

     

    extras1

     

    0

     

    00

     

...

  • stkSectionFloating/extends节点下扩展stkSection模板。通过扩展:
    • 需要的要点组件在/areas/main/content/availableComponents节点下可用。
    • SectionMainArea类得到使用。
  • /areas/main/floating节点,floating被使能且columns设置为2
  • /areas/main/areas节点,introopener区域被禁用。
  • /areas/extras节点,extras区域被禁用。

    Advanced Tables - Table Plus
    heading0
    multiplefalse
    enableHeadingAttributesfalse
    enableSortingfalse
    classm5-configuration-tree
    enableHighlightingfalse
    节点名
    Mgnl f
    pages
     

    Mgnl f
    demo-features

     

    stkSectionFloating

     

    areas

     

    main

     

    floating

     

    Mgnl p
    columns

    2

    Mgnl p
    enabled

    true

    areas

     

    intro

     

    Mgnl p
    enabled

    false

    opener

     

    Mgnl p
    enabled

    false

    extras

     

    inheritance

     

    Mgnl p
    class

    info.magnolia.module.templatingkit.templates.ExtrasArea

    Mgnl p
    enabled

    false

    base

     

    Mgnl p
    extends

    /modules/standard-templating-kit/templates/pages/stkSection

    Mgnl p
    title

    Section Floating

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名
Mgnl f
pages
 

stkSection

 

areas

 

variations

 

newsletter

 

areas

 

sectionHeader

 

Mgnl p
enabled

false

extras

 

Mgnl p
enabled

false

promos

 

Mgnl p
enabled

false

base

 

Mgnl p
enabled

false

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名
Mgnl f
pages
 

stkArticle

 

cssFiles

 

articleStyles

 

Mgnl p
farFutureCaching

true

Mgnl p
link

/resources/templating-kit/css/articleStyles.css

Mgnl p
media

screen

jsFiles

 

fireworks

 

Mgnl p
farFutureCaching

true

Mgnl p
link

/resources/templating-kit/js/fireworks.js

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
components

 

Mgnl f
content

 

Mgnl f
teasers

 

Mgnl f
extras

 

Mgnl f
promos

 

stkPromo

 

Mgnl f
features

 

Mgnl f
links

 

Mgnl f
stages

 

Mgnl f
footer

 

Mgnl f
pur

 

组件定义与页面定义相似,使用相同的模板定义对象。页面和组件使用相同路径语法引用它们的对话框。此外,页面和组件还使用相同的绘制工具绘制。

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
components

 

Mgnl f
content

 

stkQuotedText

 

Mgnl p
deletable

false

Mgnl p
description

paragraphs.content.stkQuotedText.description

Mgnl p
dialog

standard-templating-kit:components/content/stkQuotedText

Mgnl p
i18nBasename

info.magnolia.module.templatingkit.messages

Mgnl p
moveable

false

Mgnl p
renderType

stk

Mgnl p
templateScript

/templating-kit/components/content/quotedText.ftl

Mgnl p
title

paragraphs.content.stkQuotedText.title

Mgnl p
writable

true

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
components

 

Mgnl f
teasers

 

stkTeaser

 

parameters

 

areas

 

Mgnl p
description

paragraphs.teasers.stkTeaser.description

Mgnl p
dialog

standard-templating-kit:components/teasers/stkTeaser

Mgnl p
i18nBasename

info.magnolia.module.templatingkit.messages

Mgnl p
modelClass

info.magnolia.module.templatingkit.templates.components.InternalTeaserModel

Mgnl p
renderType

stk

Mgnl p
templateScript

/templating-kit/components/teasers/internalPage.ftl

Mgnl p
title

paragraphs.teasers.stkTeaser.title

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
components

 

Mgnl f
teasers

 

stkTeaserNewsList

 

parameters

 

Mgnl p
divClass

teaser latest

Mgnl p
divIDPrefix

teaser

Mgnl p
headingLevel

h2

Mgnl p
searchForSubcategory

news

Mgnl p
teaserLinkType

internal

Mgnl p
description

paragraphs.teasers.stkTeaserNewsList.description

Mgnl p
dialog

standard-templating-kit:components/teasers/stkTeaserNewsList

Mgnl p
i18nBasename

info.magnolia.module.templatingkit.messages

Mgnl p
modelClass

info.magnolia.module.templatingkit.templates.components.NewsListModel

Mgnl p
renderType

stk

Mgnl p
templateScript

/templating-kit/components/teasers/newsList.ftl

Mgnl p
title

paragraphs.teasers.stkTeaserNewsList.title

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
components

 

Mgnl f
teasers

 

stkPureLinkList

 

parameters

 

areas

 

linkList

 

availableComponents

 

stkInternalLink

 

Mgnl p
id

standard-templating-kit:components/links/stkInternalLink

stkExternalLink

 

stkDownloadLink

 

Mgnl p
description

areas.components.linkList.description

Mgnl p
enabled

true

Mgnl p
templateScript

/templating-kit/components/links/linkListArea.ftl

Mgnl p
title

areas.components.linkList.title

Mgnl p
type

list

Mgnl p
description

paragraphs.teasers.stkTeaserPureLinkList.description

Mgnl p
dialog

standard-templating-kit:components/teasers/stkTeaserPureLinkList

Mgnl p
i18nBasename

info.magnolia.module.templatingkit.messages

Mgnl p
renderType

stk

Mgnl p
templateScript

/templating-kit/components/teasers/pureLinkList.ftl

Mgnl p
title

paragraphs.teasers.stkTeaserPureLinkList.title

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
components

 

Mgnl f
teasers

 

stkTeaserContact

 

parameters

 

Mgnl p
divClass

box vcard

Mgnl p
divIDPrefix

teaser

Mgnl p
headingLevel

h2

Mgnl p
teaserLinkType

internal

Mgnl p
description

paragraphs.teasers.stkTeaserContact.description

Mgnl p
dialog

standard-templating-kit:components/teasers/stkTeaserContact

Mgnl p
i18nBasename

info.magnolia.module.templatingkit.messages

Mgnl p
modelClass

info.magnolia.module.templatingkit.templates.components.ContactModel

Mgnl p
renderType

stk

Mgnl p
templateScript

/templating-kit/components/teasers/contact.ftl

Mgnl p
title

paragraphs.teasers.stkTeaserContact.title

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
components

 

Mgnl f
extras

 

stkExtrasContact

 

parameters

 

Mgnl p
divIDPrefix

box

Mgnl p
dialog

standard-templating-kit:components/extras/stkExtrasContact

Mgnl p
extends

/modules/standard-templating-kit/templates/components/teasers/stkTeaserContact

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
pages

 

stkEvent

 

areas

 

extras

 

areas

 

extras1

 

autoGeneration

 

content

 

calendar

 

Mgnl p
nodeType

mgnl:component

Mgnl p
templateId

standard-templating-kit:components/extras/stkExtrasCalendar

Mgnl p
generatorClass

info.magnolia.rendering.generator.CopyGenerator

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
pages

 

stkArticle

 

areas

 

main

 

areas

 

content

 

availableComponents

 

autoGeneration

 

content

 

conference

 

Mgnl p
editHTML

<p><font color="#669900" size="+1">Sign up for the</font><font size="+1">....../strong></a>.</font> </p>

Mgnl p
nodeType

mgnl:component

Mgnl p
templateId

standard-templating-kit:components/content/stkHTML

Mgnl p
generatorClass

info.magnolia.rendering.generator.CopyGenerator

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
components

 

Mgnl f
features

 

stkSiteMap

 

Mgnl p
description

paragraphs.features.stkSiteMap.description

Mgnl p
dialog

standard-templating-kit:components/features/stkSiteMap

Mgnl p
i18nBasename

info.magnolia.module.templatingkit.messages

Mgnl p
modelClass

info.magnolia.module.templatingkit.templates.components.SiteMapParagraphModel

Mgnl p
renderType

stk

Mgnl p
templateScript

/templating-kit/components/features/siteMap.ftl

Mgnl p
title

paragraphs.features.stkSiteMap.title

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
pages

 

stkSiteMap

 

areas

 

main

 

areas

 

intro

 

content

 

autoGeneration

 

content

 

singleton

 

Mgnl p
maxLevels

3

Mgnl p
nodeType

mgnl:component

Mgnl p
showSiteMapRoot

true

Mgnl p
templateId

standard-templating-kit:components/features/stkSiteMap

Mgnl p
titleToUse

title

Mgnl p
generatorClass

info.magnolia.rendering.generator.CopyGenerator

Mgnl p
type

single

Mgnl p
class

info.magnolia.module.templatingkit.templates.MainArea

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

Mgnl f
demo-project

 

Mgnl f
service

 

Mgnl f
site-map

 

content

 

singleton

 

Mgnl p
maxLevels

4

Mgnl p
showSiteMapRoot

true

Mgnl p
titleToUse

title

...