CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#10990] exporting/importing designs breaks links

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Sun Apr 24 14:29:57 -0400 2016

Assigned To:
Version: v2.1.2
CMSMS Version: v2.1.2
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
exporting/importing designs breaks links
Detailed Description:
If a template/gcb/stylesheet contains a link not using Smarty, it exports the
link to the cached item instead of the actual path.

To recreate:
1) source tylesheet contains "background-image:
url('[[root_url]]/images/image.jpg');"
2) export design
3) import design on new site
4) stylesheet link now looks like background-image:
url(__URL,,7d42db38ea9a46e63dcf15664193b585__);

Tested for Page and Generic template types, same issue.


History

Comments
avatar
Date: 2016-05-04 07:34
Posted By: Ruud van der Velden (ruudvdvelden)

Same applies for data uris. (tested on CMSMS 2.1.3)

Created and exported stylesheet: (named: 'test')

body {background :
url(data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7)
center center no-repeat scroll transparent;}

base64 decoding export from xml shows:

body {background : url(__URL,,38ae0878967edb554d63df548a97c27a__) center center
no-repeat scroll transparent;}


      
avatar
Date: 2017-06-10 11:43
Posted By: Robert Campbell (calguy1000)

Should be fixed in 2.2
      
avatar
Date: 2017-06-10 17:28
Posted By: Rolf (rolf1)

2.2 is released. Can you please test if it works now?
      
avatar
Date: 2017-06-15 09:59
Posted By: Matt Hornsby (DIGI3) (DIGI3)

Confirmed fixed, thank you.
      
Updates

Updated: 2017-06-15 10:41
state: Open => Closed

Updated: 2017-06-10 11:43
resolution_id: => 7