In a CMS you strive to separate content from presentation. ![]() There is pretty good documentation of this on the joomla documentation site.Īlso this may be a point of confusion. You can look at the included templates to see how this works. To override the core layouts you use the template override system by placing same named files in the html folder of your template. The html for these documents is found in the components/com_componentname/view/viewname/tmpl folders. These are the places that actually include the layouts that provide detailed html for specific blocks on the page, typically there will be one component jdoc (there cannot be more than one) and many modules and module ones as well as some others. Within the index file you will see places that say jdoc:inlcude. This gives your site a common look and feel and ensures a good user experience.įor your css for the individual pages you would normally just include that in the template.css file or similar. ![]() But that is very skeletal usually, is just defines some locations on a page, includes your css and javascript that is common to all of your pages. In joomla templates there is a base layout called index.php as you know. ![]() You need to change your mindset from that for a static template to that for a dynamic template.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |