Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-944

Ability to specify module in theme.xml file

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.3
    • Fix Version/s: 5.2.0-B1
    • Component/s: Front End
    • Labels:
    • Change Log Message:
      Allows to specify "module" attribute within "theme.xml" file
    • Story Points:
      1
    • External issue ID:
      1162
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

    • BC Break Details:
      Hide

      Renamed methods:

      • "kThemesHelper::syncronizeModule" into "kThemesHelper::synchronizeModule" (typo in method name)
      Show
      Renamed methods: "kThemesHelper::syncronizeModule" into "kThemesHelper::synchronizeModule" (typo in method name)

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: