close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Broken Images in Admin view

Thread began 3/21/2012 9:00 am by Jared Lui | Last modified 3/22/2012 9:01 am by Jared Lui | 786 views | 3 replies |

Jared Lui

Broken Images in Admin view

I'm sure I have a path setting wrong somewhere.

All images on the live site are fine. However they are all broken on the admin side.

Here is an example path to one of them:
pict-2.gif

Obviously the path should not include "admin_cms" but I don't know what file(s) to edit where it wont screw up the path on the server.

Thanks in advance.

Sign in to reply to this post

Jared Lui

Another question

Why is the code produced by the WebAssist > CMS > add Content to PCMS different from the code in the Developer Notes section in the Admin?

Is one wrong? One has an include statement and the other does not.

Added by the "add Content to PCMS":
<?php echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Shared', 'Menu'); ?>

In the Developers Notes:
<?php
include('/home/dwiautho/public_html/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Shared', 'Menu', false);
?>

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Jared Lui

Fixed - Thanks Ray!

Here is the answer in case anyone comes across this with the same issue. Most likely this is old news and I was the only one that had the issue.

It's as simple as making sure your paths are site relative rather than just page relative so that they can be read from any directory properly. For example on my index page an image link with a correct path of: images/thisimage.jpg which works fine in the site, is broken in the admin_cms directory. Adding a "/" in front makes it accessible from anywhere: /images/thisimage.jpg

I know, duh!

The answer to my second question regarding the difference in the code in developer notes and what is produced in dreamweaver is the include in developer notes is already covered in the "require_once" code at the beginning of the page. Makes sense now.

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...