lithium知识点

${text.format("custom.workshop.xxxxx.title")?js_string}
custom.workshop.xxxxx.title = Featured
custom.workshop.xxxxx.title@page:yyyy = Popular ....

设计website:https://market.envato.com/?_ga=2.73161939.1734835281.1531185387-1399657528.1531185387

在哪个board点击start a discussion就会跳转到那个board的postpage

Start A Discussion

获取board,比如forum、idea、blog

<#if page.interactionStyle == "idea">
    <#assign search_link = "/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&filter=location&inactive=false&location=idea-board:${coreNode.id}" />

获取board里面的页面

<#if coreNode.id != "getting_started">
    

custom content传入两个参数

custom.agl.idea-intro

<#import "custom.agl.lib.ftl" as lib>

<#assign cc = lib.getCustomContent("5")/>
<#if cc != "">
<@cc?interpret />


<#assign search_link = "/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&filter=location&inactive=false&location=category:ideas" />
<#if page.interactionStyle == "idea">
    <#assign search_link = "/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&filter=location&inactive=false&location=idea-board:${coreNode.id}" />


<#assign post_link = "/t5/forums/postpage/choose-node/true/interaction-style/idea/override-styles/true">
<#if page.interactionStyle == "idea">
    <#assign post_link = "/t5/forums/postpage/board-id/${coreNode.id}">


${title}
${content?replace("[search_link]", search_link)?replace("[post_link]", post_link)}

create_project -v v17.2 lithium/bunnings

如何创建custom category

1、在studio->page new一个quit


lithium知识点_第1张图片
image.png

2、然后把CategoryPage.Froum的xml拷到这里来


lithium知识点_第2张图片
image.png

3、左上角先选一下Group的节点,然后到admin->content->custom pages,把节点和quilt,map一下
lithium知识点_第3张图片
image.png

docker

run:docker-compose up -d
remove:docker-compose down -v
清除端口:docker rm -f $(docker ps -qa)

你可能感兴趣的:(lithium知识点)