Articles with more help about "SMARTY"


Next-page button for the Gbook moduleNext-page button for the Gbook module
Show guestbook replies from the Gbook module for CMSMS with "endless scrolling" instead of a paginated view.
Read more
Smarty Templating BasicsSmarty Templating Basics
In this tutorial you get an oversight of the most useful Smarty templating codes, including practical examples.
Read more
Use module template output in multiple content blocksUse module template output in multiple content blocks
How to use generated module content at different spots in your page lay-out. Gotta love Smarty.
Read more
CGBlog Admin article list usability improvementsCGBlog Admin article list usability improvements
As a frequent user of the CGBlog module, I sometimes miss the overview of planned blog articles. Using the core module_custom feature you can simply adapt Admin templates to your likings.
Read more
The power of Template Inheritance and the CMSMS Design ManagerThe power of Template Inheritance and the CMSMS Design Manager
Template Inheritance is an approach to managing Smarty templates in CMS Made Simple™ that resembles object-oriented programming techniques.
Read more
Getting the image dimensions in SmartyGetting the image dimensions in Smarty
Using the height and width of the images and thumbnails in your Gallery templates should be pretty straightforward, not? Well I guess it wasn't... Until now!
Read more
Adding previous and next links to the modules detail pagesAdding previous and next links to the modules detail pages
This tutorial demonstrates the power and simplicity of Smarty template code by using it to add previous and next buttons to the CMS Made Simple News module without any UDT.
Read more
Smarty scope examplesSmarty scope examples
CMSMS 1.12 introduces the concept of 'scopes' in Smarty templates. This version of Smarty does not treat each and every variable as a global. This will solve problems with...
Read more
Printer-friendly pages without a modulePrinter-friendly pages without a module
There is really no need for a module to create printer-friendly pages at your CMS Made Simple™ website. In this tutorial I will show you how you can do this!
Read more
Website style switcherWebsite style switcher
To make a website accessible for visitors with visual impairments I needed a style switcher to change the output of the template. Not only for text and background colors, but also for (layout) images.
Read more
Breadcrumbs for the Products moduleBreadcrumbs for the Products module
There isn't one method for adding a breadcrumb trail to the Products module for CMS Made Simple™.
Climbing down the 'hierarchy ladder' to the product, you pass three templates and each template has its own method.
Read more
Group Company Directory items in alphabetical order and add shortcutsGroup Company Directory items in alphabetical order and add shortcuts
The Company Directory module is great to show a survey of companies and contacts at your CMS Made Simple™ website.
With a little adjustment to the summary template you can group the output in alphabetical order and add shortcuts to the entries.
Read more
Create a progress bar with Smarty and CSSCreate a progress bar with Smarty and CSS
If you want show your visitors i.e. the received money vs. the goal for a charity collection or show the still available tickets to a concert, it is nice to show a progress bar. You can do this with a few lines of Smarty and a bit of CSS.
Read more
A XML or RSS-feed reader with plain SmartyA XML or RSS-feed reader with plain Smarty
Create your own XML or RSS-feed reader with plain Smarty, there are no external modules or plug-ins needed!
Read more
Easy way to combine and minify JavaScript files and codeEasy way to combine and minify JavaScript files and code
Loading separate JavaScript files delays the rendering of a web page. Having a large CMS Made Simple website with multiple JS files, it can have a serious effect on your total page load time.
Combine the files into one JS file - just like the {cms_stylesheet} tag does for stylesheets - is a solution for this. I was looking for a simple method to achieve this, but...
Read more
Using strip tags in templates and stylesheetsUsing strip tags in templates and stylesheets
Strip white space in templates and stylesheets can improve your website in different ways. But what are the best spots to put the strip tags? I always forget it, so will post some examples here to help myself, uhh you :)
Read more
Create your own slider for news articles or imagesCreate your own slider for news articles or images
I will describe the basics of how to create a slider, you can use it yourself in your CMS Made Simple module templates. Think of rotating summary views of the News or CGBlog modules or rotating company logos in the CMSMS Banners module.
Read more
Call a Smarty tag from a UDTCall a Smarty tag from a UDT
For my pneumatic tube website I am using the Products module for CMS Made Simple as an image library. The module is great for this purpose, I can add images and can store additional information in custom fields. But for adding a single image to a page I needed a large moduletag with parameters. If at some point I want to change something here I need to change all tags in the pages...
I searched and found a methode to make this easier for me...
Read more
Change website lay-out depending on page contentChange website lay-out depending on page content
With this sample template you have three content blocks, the frontend of the website will change depending on the presence of content in these blocks. There is no need for multiple templates.
Read more
Set, read and debug cookiesSet, read and debug cookies
A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is usually a small piece of data sent from a website and stored in a user's web browser while a user is browsing a website. You can use cookies to store user settings for i.e. website styling, language preferences, etc.
I will show you how to set, read and debug cookies at your CMS Made Simple website.
Read more
Count days, is this page recent?Count days, is this page recent?
With this User Defined Tag you can calculate the age of a content page and use it in your page/template to show a notice or style some text.
Read more
Hide forms for certain IP addressesHide forms for certain IP addresses
Hide website forms for certain IP addresses (partial banning)
Read more
Make a link to a fileMake a link to a file
User Defined Tag to create a link to open a file, followed by the filesize.
Read more
Count itemsCount items
Small User Defined Tag that count items in an array, useful for several modules like News, CGBlog, Products, etc.
Read more
Add a class to all page(groups)Add a class to all page(groups)
You can use this small tag to get yourself a class name for the current page. This is very useful when you want to apply particular CSS style only to a certain page, or a subset of pages.
Read more
Test templates without breaking the frontendTest templates without breaking the frontend
You need to do some tests at your website. But you don't want to break the frontend for your visitors. A simple solution using Smarty.
Read more
Sort array modifierSort array modifier
Sorting the output of an array with this simple Smarty modifier.
Read more

A2 Webhosting CMS Made Simple

A2 Webhosting CMS Made Simple