close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Editing path incorrect

Thread began 10/04/2010 10:31 am by Jade but not jaded | Last modified 10/13/2010 1:13 pm by Jade but not jaded | 717 views | 3 replies |

Jade but not jaded

Editing path incorrect

Hi there,

I've just installed version 2.02 and am running into a problem that may be a bug.

When viewing pages containing content powered by PowerCMS below the root directory (e.g. root/somefolder/) the "edit" button and "edit" link are broken.

It's because they're not including a leading slash in their paths, as in the example below.

Is this a bug or just an easy fix that I somehow missed?

Thanks in advance,
Jade

<div onclick="document.location.href='plugins/cms/admin/contents_update.php?ContentID=6&returnPage=/about-us/index.html'" onmouseover="document.getElementById('content_1199299495_6').style.cssText=(' position:absolute;background-image:url(cms/images/semi_transparent1.png); z-index:1000; width:'+this.offsetWidth+'px;height:'+this.offsetHeight+'px')" onmouseout="document.getElementById('content_1199299495_6').style.cssText='position:absolute;background-image:url(cms/images/semi_transparent1.png); z-index:1000;visibility:hidden'">
<div id="content_1199299495_6" style="position:absolute;background-image:url(cms/images/semi_transparent1.png); z-index:1000;visibility:hidden">&nbsp;</div>

Sign in to reply to this post

Jason ByrnesWebAssist

Thank you for reporting this issue, i have logged the issue in our bugbase so our engineers can investigate the issue to determine a fix.

Sign in to reply to this post

Jade but not jaded

Originally Said By: Jason Byrnes
  Thank you for reporting this issue, i have logged the issue in our bugbase so our engineers can investigate the issue to determine a fix.  



Hi Jason,

I'm just wondering if you have anything to report on this. I'd like to be able to take this live for the client, but right now the "edit" links don't work properly.

Any news?

Thanks in advance.

Sign in to reply to this post

Jade but not jaded

Couldn't wait any longer

FYI, I found my own fix for this problem.

I edited WA_CMS.php as follows:

Changed this:

$result = '<div onclick="document.location.href=\''.$rootDir.'?ContentID='.$row_CMSContent['ContentID'].'&returnPage='.$_SERVER['PHP_SELF'].((isset($row_CMSContent['ContentPageSetOrder']))?"?".$group."=".$row_CMSContent['ContentPageSetOrder']:"").'\'" onmouseover="document.getElementById(\'content_'.$divID.'_'.$row_CMSContent['ContentID'].'\').style.cssText=(\' position:absolute;background-image:url('.$newDir.'/semi_transparent1.png); z-index:1000; width:\'+this.offsetWidth+\'px;height:\'+this.offsetHeight+\'px\')" onmouseout="document.getElementById(\'content_'.$divID.'_'.$row_CMSContent['ContentID'].'\').style.cssText=\'position:absolute;background-image:url('.$newDir.'/semi_transparent1.png); z-index:1000;visibility:hidden\'">
<div id="content_'.$divID.'_'.$row_CMSContent['ContentID'].'" style="position:absolute;background-image:url('.$newDir.'/semi_transparent1.png); z-index:1000;visibility:hidden">&nbsp;</div>
<div style="position:absolute;z-index:1001;margin-top:-15px;margin-left:-17px">
<img src="'.$newDir.'/CMSedit.png" border="0" onclick="document.location.href=\''.$rootDir.'?ContentID='.$row_CMSContent['ContentID'].'&returnPage='.$_SERVER['PHP_SELF'].((isset($row_CMSContent['ContentPageSetOrder']))?"?".$group."=".$row_CMSContent['ContentPageSetOrder']:"").'\'" />
</div>';

To this:

$result = '<div onclick="document.location.href=\'/'.$rootDir.'?ContentID='.$row_CMSContent['ContentID'].'&returnPage='.$_SERVER['PHP_SELF'].((isset($row_CMSContent['ContentPageSetOrder']))?"?".$group."=".$row_CMSContent['ContentPageSetOrder']:"").'\'" onmouseover="document.getElementById(\'content_'.$divID.'_'.$row_CMSContent['ContentID'].'\').style.cssText=(\' position:absolute;background-image:url(/'.$newDir.'/semi_transparent1.png); z-index:1000; width:\'+this.offsetWidth+\'px;height:\'+this.offsetHeight+\'px\')" onmouseout="document.getElementById(\'content_'.$divID.'_'.$row_CMSContent['ContentID'].'\').style.cssText=\'position:absolute;background-image:url(/'.$newDir.'/semi_transparent1.png); z-index:1000;visibility:hidden\'">
<div id="content_'.$divID.'_'.$row_CMSContent['ContentID'].'" style="position:absolute;background-image:url(/'.$newDir.'/semi_transparent1.png); z-index:1000;visibility:hidden">&nbsp;</div>
<div style="position:absolute;z-index:1001;margin-top:-15px;margin-left:-17px">
<img src="/'.$newDir.'/CMSedit.png" border="0" onclick="document.location.href=\''.$rootDir.'?ContentID='.$row_CMSContent['ContentID'].'&returnPage='.$_SERVER['PHP_SELF'].((isset($row_CMSContent['ContentPageSetOrder']))?"?".$group."=".$row_CMSContent['ContentPageSetOrder']:"").'\'" />
</div>';

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...