July 2018
Intermediate to advanced
336 pages
9h 23m
English
Let's have a look at the article/create.ftl page, which implements the Create Article page and makes use of the common template shown in the preceding section's code:
<#import "../common/standardPage.ftl" as p><@p.page title="${(article.title)!'New Post'}"><script type="text/javascript" src="/webjars/ckeditor/4.7.0/standard/ckeditor.js"></script>
The preceding code imports the CKEditor JavaScript library to enable rich text writing for the content section:
<!-- Post Content Column --><div class="col-lg-8"><form action="/article" method="post">
The preceding code creates a form that can be submitted to a URL/article as a POST request to create or update a blog article:
<#if article?? > <input type="hidden" ...
Read now
Unlock full access