This object is in archive! 

bug on a new theme creation

Archived Jan L. 12 years ago

I want to make my own theme, but the application searches for the template in the next arrangement

[0] => .\public\themes\mytheme\layouts/

[1] => .\application\modules\ideas\templates/

[2] => .\application\modules\thanks\templates/

[3] => .\application\modules\questions\templates/

[4] => .\application\modules\problems\templates/

[5] => .\public/themes\mytheme\templates/

[6] => .\application/layouts/

[7] => .\application/modules\system\templates/

[8] => .\application/templates/

because the template name coincides in the module and in the theme it is loading that one from the module.

Best Answer
photo

Problem fixed, fix will be included in 1.1 release.

Replies (9)

photo
1

Please specify template name, and path (including filename) from UseResponse directory you've used to save this template.

photo
1

Problem fixed. Please unpack archive attached to "/library/Singular/Controller/Plugin/" directory, overwriting existing Themes.php file.

photo
1

Problem fixed, fix will be included in 1.1 release.

photo
1

Oleg Maximoff wrote:

Problem fixed. Please unpack archive attached to "/library/Singular/Controller/Plugin/" directory, overwriting existing Themes.php file.

I replaced this file, but the problem is not resolved

photo
1

Ok, lets take a closer look. Could you specify template file name and directory you stored it under, that are ignored (and rendered from module instead)?

photo
1

my theme file D:\Sites\helpsystem\branche\HelpSystem\public\themes\paymo\layouts\header.phtml

but system includes

D:\Sites\helpsystem\branche\HelpSystem\application\templates\layout\header.phtml

and the second example

my theme file

D:\Sites\helpsystem\branche\HelpSystem\public\themes\paymo\templates\_homepage-ideas.phtml

file included

D:\Sites\helpsystem\branche\HelpSystem\application\modules\ideas\templates\_homepage-ideas.phtml

photo
1

For _homepage-ideas.phml - we are working on fix, will attach it shortly.

For header.phtml - it seems you've chosen wrong directory for it.


It should be stored under:


\public\themes\paymo\templates\layout\


instead of:


\public\themes\paymo\layouts\

photo
1

are some pictures of my theme

photo
1

I've emailed you (email address specified in your user profile) with zip archive attached that contains changed files required to fix this template paths problem. Please let me know if it helps.

Replies have been locked on this page!