CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11627] Exporting/importing designs changes Smarty comments containing the word 'Navigator'

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Thu Nov 02 11:38:27 -0400 2017

Assigned To:
Version: 2.2.3.1
CMSMS Version: 2.2.3.1
Severity: Minor
Resolution: None
State: Open
Summary:
Exporting/importing designs changes Smarty comments containing the word 'Navigator'
Detailed Description:
If you have a template containing something like the following:
{Navigator template='foo'}
{* this is a comment about Navigator *}

Then you export the design, then import it, it will change the template to
something like:
{Navigator template='foo'}
{* this is a comment about Navigator * template='foo'}

Which results in broken code, because the comment isn't closed.

The key is the word 'Navigator' in the comment, the xml export/import seems to
think it's a Navigator call and adds the default Navigator template to the end
of it.

Suggested fix:
always ignore anything in comments


History

Comments
avatar
Date: 2017-12-12 08:06
Posted By: Deleted User (deleteduser_11200)

Confirmed, happened to me on a base template having {* comments *}  also.

Exported the template to a file from the Design Manager fixed the typo, imported
and submitted again.