Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Theme in cms/templates rendered rather than template file in my theme folder


Reply

6 Posts   1169 Views

Avatar
pali

13 May 2009 at 11:32pm Community Member, 33 Posts

hello,

i copied cms/templates/PageCommentInterface.ss to themes/mytheme/templates/Includes but the site is still using cms's one :(
If i remove cms/templates/PageCommentInterface.ss everything is OK. It looks like mytheme ss file has not higher priority :(

other templates working fine from mytheme folder.

regards

pali

Avatar
Willr

15 May 2009 at 12:11pm Forum Moderator, 5511 Posts

You should keep your paths the same

Eg cms/templates/PageCommentInterface.ss -> Should go to themes/yourtheme/templates/PageCommentInterface.ss not in the Includes folder

Avatar
pali

15 May 2009 at 8:07pm Community Member, 33 Posts

thanks will,

helped.

i would like to have structure of themes like this: themes/travelpoint/templates/Modules/cms/ and here same files as in cms/templates... With this construction arent working "root" teplates, only these included in folders (layout, includes...)... if i place content of cms/templates/ folder into themes/travelpoint/templates/Modules/cms/templates/ everything is OK.

is this bug or behaviour?

regards

pali

Avatar
Willr

15 May 2009 at 8:54pm Forum Moderator, 5511 Posts

I have never tried this but normally when you want to theme modules you create a 'yourtheme_modulename' folder in themes. SSViewer looks for this folder first for the file, if it doesn't exist then it defaults to the modulename/ folder so I believe you *could* possibly create a yourtheme_cms/ folder then inside that have css/ images/ templates (just like the root theme) and then inside templates have the templates you wish to override.

Most of the time however people just keep the cms templates they wish to override in the root theme.

Avatar
pali

15 May 2009 at 9:09pm Community Member, 33 Posts

hmm, so i should create themes/mytheme_cms/... and here place custom stuff?

sounds good too.

thanks

Avatar
pali

15 May 2009 at 9:14pm Community Member, 33 Posts

working - great, and makes much more sense... thanks will