In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
382 [In-Portal CMS] Install / Upgrages feature request always 2009-10-12 17:58 2010-01-11 22:01
Dmitry  
alex  
critical  
closed 5.0.1  
fixed  
 
none 5.0.2-B1  
0
0000382: Theme Depended Files and Demo Installation
There are 2 Theme related tasks here:

1. Moving all theme and module depended data, such as:

- default_design
- section_design
- item_design
- english.lang (Front End language pack) - need to break main language pack on parts.
- install_data.sql (for Demo data, see below)

from the Core In-Portal (including installation) into the actual theme.



2. Create the ability to have Theme related demo data (ie. sections, forms) to be installed along with the actual theme when In-Portal is installed for the first time (clean install).

For now the only way to deliver images for demo data is to copy them directly into "/system/user_files" folder.

NOTES:

a. we assume that Demo installation will be done only for 1 theme at a time and user will need to reinstall if he wants to have "install_data.sql" ti be executed again.

b. Language data should be imported when user install the system first time or Enables the theme.


Both tasks as interconnected and been filed together.
Notes from previous discussion on this issue:
=========================


a) theme_info.xml (in theme root)

<theme_info>

      <default_design>platform/designs/default_design.des</default_design>

</theme_info>

 

b) Have "install" subfolder under each theme and in each it's modules subfolder. In each "install" subfolder,

there could be "install_data.sql" (theme/module dependent demo data), "english.lang" (theme/module dependent phrases),

"module_info.xml" (module dependent settings in this theme) files.

 

Format of module_info.xml:

<module_info>

      <section_design>in-link/index</section_design>

      <item_design>in-link/links/link_detail</item_design>

</module_info>

 

Other files (install_data.sql/english.lang) are in same format as files, located in "core/install" folder.


Important note that In-Portal will have it's Demo data too, not modules only. I think it's a good idea to have "install/" folder for In-Portal theme as well.
parent of 0001245closed  (5.2.0)alex Template aliases (#....#) don't work in "Design Mode" 
patch theme_demo_installation.patch (351,117) 2009-10-27 12:04
http://tracker.in-portal.org/file_download.php?file_id=122&type=bug
Issue History
2012-04-03 05:39 alex Relationship added parent of 0001245
2010-01-11 22:01 Dmitry Note Added: 0001321
2010-01-11 22:01 Dmitry Status resolved => closed
2009-11-13 13:39 alex Note Added: 0001131
2009-11-13 13:39 alex Fixed in Version => 5.0.2-B1
2009-11-13 13:06 alex Changeset attached 5.0.x r12808
2009-11-13 13:06 Dmitry Changeset attached 5.0.x r12847
2009-11-13 13:06 Dmitry Changeset attached 5.0.x r12864
2009-11-13 13:06 alex Note Added: 0001122
2009-11-13 12:59 Dmitry Changeset attached 5.0.x r12879
2009-11-13 12:59 Dmitry Changeset attached 5.0.x r12880
2009-11-13 12:57 alex Changeset attached 5.0.x r12808
2009-11-13 12:57 Dmitry Changeset attached 5.0.x r12865
2009-11-13 12:57 alex Note Added: 0001109
2009-11-13 12:57 alex Fixed in Version 5.0.2-B1 =>
2009-11-13 12:57 alex Assigned To Dmitry => alex
2009-11-09 20:32 Dmitry Note Added: 0001059
2009-11-09 20:32 Dmitry Status reviewed and tested => resolved
2009-11-09 20:32 Dmitry Status needs testing => reviewed and tested
2009-11-09 20:31 Dmitry Assigned To alex => Dmitry
2009-11-09 20:31 Dmitry Status needs work => needs testing
2009-11-09 20:31 Dmitry Note Deleted: 0001055
2009-11-09 20:00 Dmitry Changeset attached 5.0.x r12883
2009-11-09 19:29 Dmitry Note Added: 0001055
2009-11-09 19:16 Dmitry Assigned To Dmitry => alex
2009-11-09 19:16 Dmitry Note Added: 0001054
2009-11-09 18:38 Dmitry Changeset attached 5.0.x r12880
2009-11-09 14:27 Dmitry Changeset attached 5.0.x r12879
2009-11-03 01:59 alex Changeset attached 5.0.x r12867
2009-11-03 00:36 Dmitry Changeset attached 5.0.x r12866
2009-11-03 00:33 Dmitry Changeset attached 5.0.x r12865
2009-11-03 00:31 Dmitry Changeset attached 5.0.x r12864
2009-11-01 14:45 Dmitry Note Added: 0001031
2009-10-30 17:11 Dmitry Changeset attached 5.0.x r12847
2009-10-30 16:49 Dmitry Changeset attached 5.0.x r12846
2009-10-28 01:31 Dmitry Status needs feedback => needs work
2009-10-28 01:30 Dmitry Note Added: 0001015
2009-10-28 01:30 Dmitry Assigned To alex => Dmitry
2009-10-28 01:30 Dmitry Status resolved => needs feedback
2009-10-27 12:04 alex File Added: theme_demo_installation.patch
2009-10-27 12:03 alex Note Added: 0001000
2009-10-27 12:03 alex Status needs work => resolved
2009-10-27 12:03 alex Fixed in Version => 5.0.2-B1
2009-10-27 12:03 alex Resolution open => fixed
2009-10-27 12:03 alex Changeset attached 5.0.x r12808
2009-10-27 11:41 alex Changeset attached 5.0.x r12807
2009-10-27 11:40 alex Changeset attached 5.0.x r12806
2009-10-27 11:39 alex Changeset attached 5.0.x r12805
2009-10-27 11:39 alex Changeset attached 5.0.x r12804
2009-10-27 11:38 alex Changeset attached 5.0.x r12803
2009-10-27 11:38 alex Changeset attached 5.0.x r12802
2009-10-27 11:38 alex Changeset attached 5.0.x r12801
2009-10-27 11:37 alex Changeset attached 5.0.x r12800
2009-10-27 11:35 alex Changeset attached 5.0.x r12799
2009-10-27 11:35 alex Changeset attached 1.0.x r12798
2009-10-27 11:35 alex Note Added: 0000999
2009-10-26 22:30 Dmitry Priority normal => critical
2009-10-26 18:15 Dmitry Note Added: 0000997
2009-10-26 17:14 Dmitry Status needs feedback => needs work
2009-10-15 15:13 Dmitry Note Edited: 0000898 bug_revision_view_page.php?bugnote_id=0000898#r288
2009-10-15 15:13 Dmitry Note Added: 0000898
2009-10-12 18:27 Dmitry Description Updated bug_revision_view_page.php?rev_id=284#r284
2009-10-12 17:58 Dmitry Status active => needs feedback
2009-10-12 17:58 Dmitry New Issue
2009-10-12 17:58 Dmitry Assigned To => alex

Notes
(0000898)
Dmitry   
2009-10-15 15:13   
Proposing the following format:

1. Folder name: _install/

2. Theme info -- theme.xml (all data below stored in Theme info)

<theme>
   <default_design>platform/designs/default_design.des</default_design>
   <section_design>in-link/index</section_design>
   <item_design>in-link/links/link_detail</item_design>
</theme>


3. Language -- english.lang (Front End labels - same format)


4. Demo data -- install_data.sql (Clean SQL with currect ResourceId and so on)


5. Demo files -- files/ (Image + Files for used in FCK)

(0000997)
Dmitry   
2009-10-26 18:15   
Reminder sent to: alex

NOTE:

This is related to the Language pack supplied in the Theme. We need to make sure system is capable of installing Language packs from the other themes at any later stage.

One of the way to implement this is to have additional flag in Themes table that will indicate whether Theme been installed Language pack was installed or not.
(0000999)
alex   
2009-10-27 11:35   
All info collected from "theme.xml" files is stored in one-dimensional array in form:

#<module_folder>xml_node_name# = xml_node_value.

<module_folder> is value from Modules.TemplatePath column of module, where theme.xml file was found.

For example for theme.xml found in "advanced" theme for In-Link we will have following mapping:

#in-link/section_design# = in-link/designs/section
#in-link/item_design# = in-link/links/link_detail
(0001000)
alex   
2009-10-27 12:03   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000382: Theme Depended Files and Demo Installation
(0001015)
Dmitry   
2009-10-28 01:30   
Review new wording in Installation
(0001031)
Dmitry   
2009-11-01 14:45   
Review and updated Wording for Demo Content installation
(0001054)
Dmitry   
2009-11-09 19:16   
All template and images completed (in _install/demo folder).
(0001059)
Dmitry   
2009-11-09 20:32   
Everything has been completed here.

Going to add Demo data for Default theme in 0000410
(0001109)
alex   
2009-11-13 12:57   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000382: Theme Depended Files and Demo Installation
(0001122)
alex   
2009-11-13 13:06   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000382: Theme Depended Files and Demo Installation
(0001131)
alex   
2009-11-13 13:39   
This task was resolved multiple times, because of themes were moved into separate modules. I will revert issue status and fixed in version fields back to normal manually.
(0001321)
Dmitry   
2010-01-11 22:01   
Closing completed tasks.