Uploaded image for project: 'Website'
  1. Website
  2. WEBSITE-14

MODX Convertor Uses Incorrect Copy Syntax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • MOD validator
    • None

      This is the Copy Syntax that the convertor provided:

      <copy>
      			<file>
      				<from>root/admin/admin_download_phpbb.php</from>
      				<to>admin/admin_download_phpbb.php</to>
      			</file>
      			<file>
      				<from>root/admin/avc_mods/*.*</from>
      				<to>admin/avc_mods/*.*</to>
      			</file>
      			<file>
      				<from>root/admin/admin_version.php</from>
      				<to>admin/admin_version.php</to>
      			</file>
      			<file>
      				<from>root/admin/admin_version_manage.php</from>
      				<to>admin/admin_version_manage.php</to>
      			</file>
      			<file>
      				<from>root/admin/admin_version_config.php</from>
      				<to>admin/admin_version_config.php</to>
      			</file>
      			<file>
      				<from>root/admin/admin_version_log.php</from>
      				<to>admin/admin_version_log.php</to>
      			</file>
      			<file>
      				<from>root/includes/constants_avc.php</from>
      				<to>includes/constants_avc.php</to>
      			</file>
      			<file>
      				<from>root/includes/functions_avc.php</from>
      				<to>includes/functions_avc.php</to>
      			</file>
      			<file>
      				<from>root/language/lang_english/lang_avc.php</from>
      				<to>language/lang_english/lang_avc.php</to>
      			</file>
      			<file>
      				<from>root/templates/subSilver/admin/avc_index_summary.tpl</from>
      				<to>templates/subSilver/admin/avc_index_summary.tpl</to>
      			</file>
      			<file>
      				<from>root/templates/subSilver/admin/avc_phpbbversion_body.tpl</from>
      				<to>templates/subSilver/admin/avc_phpbbversion_body.tpl</to>
      			</file>
      			<file>
      				<from>root/templates/subSilver/admin/download_phpbb_body.tpl</from>
      				<to>templates/subSilver/admin/download_phpbb_body.tpl</to>
      			</file>
      			<file>
      				<from>root/templates/subSilver/admin/version_manage.tpl</from>
      				<to>templates/subSilver/admin/version_manage.tpl</to>
      			</file>
      			<file>
      				<from>root/templates/subSilver/admin/version_body.tpl</from>
      				<to>templates/subSilver/admin/version_body.tpl</to>
      			</file>
      			<file>
      				<from>root/templates/subSilver/admin/version_config.tpl</from>
      				<to>templates/subSilver/admin/version_config.tpl</to>
      			</file>
      			<file>
      				<from>root/templates/subSilver/admin/version_log.tpl</from>
      				<to>templates/subSilver/admin/version_log.tpl</to>
      			</file>
      		</copy>

      However, when specifying this, the XSL would output blank bullets. It only would work when i changed the syntax to something like this:

      <file from="root/admin/admin_download_phpbb.php" to="admin/admin_download_phpbb.php" />


      After changing to this, THEN the XSL displayed the Copy and the "Included Files" sections correctly. This new syntax is also the one recommended in the MODX Documentation. This should be fixed.

      Here's the original Text Template COPY statement that was converted:

      #
      #-----[ COPY ]---------------------------------------------
      #
      copy root/admin/admin_download_phpbb.php to admin/admin_download_phpbb.php
      copy root/admin/avc_mods/*.* to admin/avc_mods/*.*
      copy root/admin/admin_version.php to admin/admin_version.php
      copy root/admin/admin_version_manage.php to admin/admin_version_manage.php
      copy root/admin/admin_version_config.php to admin/admin_version_config.php
      copy root/admin/admin_version_log.php to admin/admin_version_log.php
      copy root/includes/constants_avc.php to includes/constants_avc.php
      copy root/includes/functions_avc.php to includes/functions_avc.php
      copy root/language/lang_english/lang_avc.php to language/lang_english/lang_avc.php
      copy root/templates/subSilver/admin/avc_index_summary.tpl to templates/subSilver/admin/avc_index_summary.tpl
      copy root/templates/subSilver/admin/avc_phpbbversion_body.tpl to templates/subSilver/admin/avc_phpbbversion_body.tpl
      copy root/templates/subSilver/admin/download_phpbb_body.tpl to templates/subSilver/admin/download_phpbb_body.tpl
      copy root/templates/subSilver/admin/version_manage.tpl to templates/subSilver/admin/version_manage.tpl
      copy root/templates/subSilver/admin/version_body.tpl to templates/subSilver/admin/version_body.tpl
      copy root/templates/subSilver/admin/version_config.tpl to templates/subSilver/admin/version_config.tpl
      copy root/templates/subSilver/admin/version_log.tpl to templates/subSilver/admin/version_log.tpl

            wGEric wGEric
            webmacster87 Douglas Bell [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: