In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1162 [In-Portal CMS] Front End feature request N/A 2011-11-09 10:49 2012-07-25 05:32
alex  
alex  
normal  
closed 5.1.3  
fixed  
 
none 5.2.0-B1  
https://groups.google.com/d/topic/in-portal-dev/zDguLYxkpBo/discussion
Allows to specify "module" attribute within "theme.xml" file
1
0001162: Ability to specify module in theme.xml file
Starting with In-Portal 5.0.0 there is ability to create "theme.xml" file under "_install" folder in theme. This file holds meta-information that is used to interact with theme templates.
You can even create "_install" folder under each module sub folder in one theme, e.g.

/themes/theme_folder/_install/theme.xml - in-portal file
/themes/theme_folder/in-commerce/_install/theme.xml - in-commerce module file

Right now I'm integrating (infusing pure HTML slice-up with In-Portal tags) new In-Commerce theme and I don't have any "in-commerce" module sub-folder to place it's theme.xml into it.
So I've decided, that you can specify alternative module directly in theme.xml file to place all module-specific theme information into single theme.xml file.

Here the sample:

<theme>
    <default_design>designs/general</default_design>
    <section_design module="in-commerce">designs/section</section_design>
    <item_design module="in-commerce">products/details</item_design>
    <form_design>designs/form</form_design>
    <form_thankyou>thankyou</form_thankyou>
</theme>

In the above example is the contents of /themes/theme_folder/_install/theme.xml file and you can see how "section_design" and "item_design" have "module" attribute specified.
patch module_in_theme_xml_feat.patch (11,679) 2011-11-09 10:51
http://tracker.in-portal.org/file_download.php?file_id=1310&type=bug
Issue History
2012-07-25 05:32 alex Note Added: 0005058
2012-07-25 05:32 alex Status resolved => closed
2011-11-09 10:52 alex Note Added: 0004150
2011-11-09 10:51 alex File Added: module_in_theme_xml_feat.patch
2011-11-09 10:51 alex Note Added: 0004149
2011-11-09 10:51 alex Status reviewed and tested => resolved
2011-11-09 10:51 alex Fixed in Version => 5.2.0-B1
2011-11-09 10:51 alex Resolution open => fixed
2011-11-09 10:51 alex Assigned To !COMMUNITY => alex
2011-11-09 10:51 alex Changeset attached 5.2.x r14753
2011-11-09 10:51 alex Note Added: 0004148
2011-11-09 10:51 alex Status needs testing => reviewed and tested
2011-11-09 10:51 alex Assigned To => !COMMUNITY
2011-11-09 10:51 alex Developer => alex
2011-11-09 10:51 alex Status active => needs testing
2011-11-09 10:51 alex Reference => https://groups.google.com/d/topic/in-portal-dev/zDguLYxkpBo/discussion
2011-11-09 10:49 alex New Issue
2011-11-09 10:49 alex Change Log Message => Allows to specify "module" attribute within "theme.xml" file
2011-11-09 10:49 alex Estimate Points => 1

Notes
(0004148)
alex   
2011-11-09 10:51   
Will test all together later.
(0004149)
alex   
2011-11-09 10:51   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001162: Ability to specify module in theme.xml file
(0004150)
alex   
2011-11-09 10:52   
Main changes are in kThemesHelper class and other file changes are just a refactoring.
(0005058)
alex   
2012-07-25 05:32   
Since 5.2.0 version was released.