F2C Smarty code (snippets)
![]()
![]()
Changing the layout or content of your Joomla article depending on user selections can be accomplished using Smarty templating. An easy example to show what we mean: If a checkbox in your submission form specifies if an article is on sale is checked, you can load an extra image in your article showing SALE .... if the checkbox isn't selected this won't show. Please read on for the more interesting stuff ;)!
Note: This article is for those who understand the fundamentals of Form2Content and would like to create more dynamic templates or html using Smarty templating.