Intro
the template contains the layout and design for your webpage.
the template makes use of the Liquid templating language.
the template is regular HTML and javascript but you can include some special codes to insert the content of your page.
include a link to your stylesheet that you maintain via the Parkaa site.
Codes
templates can include the special codes
- {{ content }} – insert the main content of the page at this point
- {{ content_1 }} – insert content of block 1 here
- {{ content_2 }} – insert content of block 2 here
- {{ content_3 }} – insert content of block 3 here
- {{ content_title }} – insert the title of your page
- {{ content_name }} – insert the name of your page
- {{ content_prefix }} – insert the name prefix ( up to first underbar) of your page
- {{ group_name }} – insert the name of the group of this page
- {{ meta_keywords }} – page keywords
- {{ meta_description }} – page description
- {{ meta_1 }} – user defined meta content 1
- {{meta_2 }} – user defined meta content 2
- {{now}} -the current time when the page is generated
- {% include foo %} – include the content of template foo at this point in your template. ( do not nest includes !!)
- {% menu %} – insert a top level menu at this point
- {% menu holiday %} – display a menu for pages and sub-groups under the holiday group.
You can also include macros as shown under content
Filters
in addition to the regular Liquid filters you can use
json
convert data to json format
idate
convert a date to another language ( currently only nl)
{{ sometime | idate : ‘%A %B’,‘nl’ }}
sprintf
format numbers
{{ amount | sprintf : ‘%0.2fl’ }}
Favicon
upload an icon in ico or png format under resources and include in your head section ..
<link rel=“shortcut icon” href=“/upload/myicon.ico” />
or
<link rel=“icon” type=“image/png” href=“/upload/myicon.png” />
Single Page Website
embed a complete page into your template with {@ page pagename @}
step through a menu with
{% getmenu %} {% for item in menu %} {{ item.name }} {{ item.title }} {% endfor %}