July 2018
Intermediate to advanced
336 pages
9h 23m
English
Let's have a look at the article/index.ftl page, which implements the List Articles page and makes use of the common template shown in the preceding section:
<#import "../common/standardPage.ftl" as p><@p.page title="Posts"> <!-- Post Content Column --> <div class="col-lg-8"> <#if message??> <div id="success-alert" class="alert alert-success"> ${message} </div> <script type="text/javascript"> $( document ).ready(function() { $("#success-alert").fadeTo(2000, 500).slideUp(500, function(){ $("#success-alert").slideUp(500); }); }); </script> </#if>
The preceding section is responsible for showing any message to the user for up to two seconds. The message can be anything from information, to a warning, or an ...
Read now
Unlock full access