Making the style dynamic
In our example, we made the title and description dynamic. Now let’s think about the style. In our example, there are only 2 elements defined. So let’s replace the whole “<style>” section with<?php LCSInsertExternalStyle(“MAIN_STYLE”); ?>. Like the title, you can now edit your page style in the backoffice.
CSSMate is included in the backoffice, so you can also preview the style you will be using. LCSInsertExternalStyle will insert a link to a stylesheet, however if you want to keep your style embedded within the page, you can use LCSInsertStyle instead.
Content and structures
Our page has now dynamic variables, and dynamic style. The last thing we need to insert is the content.
In a similar way, there are several API function that will allow you to retrieve an item’s content, or the site structure itself. Check the API documentation for more info.
Downloads and more info available on this page.