Absolute URL Path in Editor spaw2
Posted: Sun Nov 30, 2008 1:59 pm
In the spaw2 Editor for cmsimple there are wrong code to build internal links.
Here, I present some changes which lead to correct links:
1) Open the spaw.php file and search for:
Replace this line with:
2) Open the file spaw/class/editor.class.php and search for:
Replace this line with:
These few changes will fix the bug and internal links will be built correctly.
leamaus
Here, I present some changes which lead to correct links:
1) Open the spaw.php file and search for:
Code: Select all
SpawConfig::setStaticConfigItem('strip_absolute_urls', false, SPAW_CFG_TRANSFER_JS); // useabsolute path for displaying image
Code: Select all
SpawConfig::setStaticConfigItem('strip_absolute_urls', true, SPAW_CFG_TRANSFER_JS); // useabsolute path for displaying image
Code: Select all
$pagetpl .= '<iframe name="'.$pname.'_rEdit" id="'.$pname.'_rEdit" style="width: 100%; height: '.$this->height.'; display: '.(($this->name == $pname)?'inline':'none').';" frameborder="no" src="'.SpawConfig::getStaticConfigValue("SPAW_DIR").'empty/empty.html?'.microtime().'"></iframe>';
Code: Select all
$pagetpl .= '<iframe name="'.$pname.'_rEdit" id="'.$pname.'_rEdit" style="width: 100%; height: '.$this->height.'; display: '.(($this->name == $pname)?'inline':'none').';" frameborder="no" src="'.SpawConfig::getStaticConfigValue("SPAW_DIR").'.?'.microtime().'"></iframe>';
leamaus