A chunk may be used in many pages, different page may require different style.

We can use Placeholder to pass in the value.

[[+placeholder_name]]

For exmaple, now we want our home page has blue title and about page has green title.

First, we copy the interior template and create two new template call 'Home template' and 'About Template'.

in html_header chunk: we set up the placeholder

      <header class="group">
<div class="logo">
<h1 style="color: [[+html_header_color]]">
[[*longtitle]]
</h1>
</div>

In Home template: a '?' followed by '&' to pass in k-v pair

[[$html_header?&html_header_color=`lightblue`]]

In About template, we do nothing just like:

[[$html_header]]

What we want is use defulat value for the placeholder.

Defulat value:


First: click 'Unlock default properites', then create new property. We set color as lightgreen.

Save it.

Then the page should display as we want.

最新文章

  1. GUI基础学习
  2. ZOJ Problem Set - 1049 I Think I Need a Houseboat
  3. 面向侧面的程序设计AOP-------《一》概述
  4. js键盘事件全面控制详解【转】
  5. 蓝牙4.0LED灯控方案
  6. [codevs2170]悠闲的漫步
  7. RFC 2616
  8. 一个简单的倒计时js插件
  9. build path--use as source folder 应用
  10. java时间操作
  11. file.go
  12. Hadoop wordcount Demon
  13. 关键字提取算法TF-IDF
  14. fail2ban 防爆破,防止CC 攻击
  15. Python机器学习笔记:深入学习Keras中Sequential模型及方法
  16. 关于使用spring mvc前后端上传数据日期格式
  17. 【IP代理】国内省市域名代理
  18. 2018.07.25 bzoj3878: [Ahoi2014&Jsoi2014]奇怪的计算器(线段树)
  19. 利用Pillow给图片添加重点框(适用UI自动化测试)
  20. asyncio标准库1 Hello World

热门文章

  1. hdu 2845(dp基础题)
  2. ubuntu下安装selenium2.0 环境
  3. (原创)LAMP教程4-用VirtualBox安装64位的centos6.4
  4. ASP.NET常用加密解密方法
  5. Away 3D 之 交互和渐变----Interactivity and Tweening
  6. const 常量数据,只读
  7. 在xcode上搭建OpenGL3.x运行环境
  8. Motan学习开篇
  9. [LeetCode] Add Digits (a New question added)
  10. poj2396 Budget(有源汇上下界可行流)