CMS MADE SIMPLE FORGE

LISE

 

[#11519] LISE and SitemapMgr

avatar
Created By: Darren Kierman (kierweb)
Date Submitted: Sat Jul 29 06:21:31 -0400 2017

Assigned To: Fernando Morgado (JoMorg)
Version: 1.3.1
CMSMS Version: 2.1.5
Severity: Minor
Resolution: None
State: Closed
Summary:
LISE and SitemapMgr
Detailed Description:
Not really a bug in its own right, but when you follow the instructions on the
"SitemapMgr" module to sitemap a LISE instance,  LISE itself wraps the
sitemap.xml with <div class="lise-admin-wrapper">  which breaks the sitemap.


History

Comments
avatar
Date: 2017-07-29 08:48
Posted By: Fernando Morgado (JoMorg)

Yeah, LISE needs it to handle AJAX on the backend requests. I don't know how
"SitemapMgr" works, I never used it personally, but a possible solution may be
in using the regex_replace smarty modifier as in
<pre>{$result|regex_replace:"/<div
class="lise-admin-wrapper">(.|\n)*?<\/div>/":""}</pre>. It's just an untested
sample though. WRT this issue, I agree it is somewhat clumsy and there might be
a better or cleaner way to the AJAX mechanics in LISE, and it may change in a
future major release, but it's not a priority atm. I'll keep this BR open as a
reminder.
      
avatar
Date: 2017-07-29 09:22
Posted By: Darren Kierman (kierweb)

Thanks for the reply ... I've looked at how SitemapMgr works and I've managed to
add a line of text, to remove the <div> which LISE adds..

$smarty_data = $smarty->fetch('eval:'.$sitemap_tag);
$smarty_data = preg_replace('/\<[\/]{0,1}div[^\>]*\>/i','', $smarty_data); //
Added by Daz
      
avatar
Date: 2019-10-08 10:40
Posted By: Rolf (rolf1)

This was fixed in the SitemapMgr module!
      
Updates

Updated: 2019-10-08 10:40
state: Open => Closed

Updated: 2017-07-29 08:48
resolution_id: => 5