Hi, I am having a bit of difficulty in keeping track of what is what, in terms of their relations.
1. In the pahe list I see templates being associated with pages. What are the .tpl files where these templates are stored? Where can this info obtained as needed in some smarty code filtering for the menu when using FEU, i.e.?
2. Where can the association of templates and menus be found?
Thanks in advance.
Template, menu, tpl-files
Re: Template, menu, tpl-files
.tpl files are inside the modules-folder and they are coming with the install. With newer versions they can be overwritten as they might have been improved. When you want to modify a template to suit your needs, you can import them and give it a name, than modify it. DONT MODIFY THE .TPL ITSELF.... in the template attached to your pages, you should then modify the {menu} call to call the new template. Keep in mind that the .tpl should NOT be put then, as it is a db-template now (NOT overwritten in upgrade....)
The stylesheets that are attached to a template can be seen, by pressing the CSS-button on the right side, in Layout-Templates, or when in the template-editing (also the CSS-button).
Ronny
The stylesheets that are attached to a template can be seen, by pressing the CSS-button on the right side, in Layout-Templates, or when in the template-editing (also the CSS-button).
Ronny
Re: Template, menu, tpl-files
Thanks you. Is this command correct then?
Again, I canno find any explicit association of the template as listed being assigned to a page and its .tpl file. In a command, like shown above, still the .tpl file is need to be identified.
I hope I am not too vague.
Thanks.
Code: Select all
{menu template="cssmenu.tpl"}
I hope I am not too vague.
Thanks.
Re: Template, menu, tpl-files
A pagetemplate is db-driven in cmsms, the call you show is correct, that calls the menutemplate cssmenu.tpl, which is the file-one...
When you edit a page, the options-tab shows the template attached....When you want that box on the main-page, just select it in global-settings, advanced tab 'basic properties' then the template will be showing on the main tab. Without specifying a specific template, the default template is taken.
Ronny
When you edit a page, the options-tab shows the template attached....When you want that box on the main-page, just select it in global-settings, advanced tab 'basic properties' then the template will be showing on the main tab. Without specifying a specific template, the default template is taken.
Ronny
Re: Template, menu, tpl-files
Thanks you. It was very helpful.