close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Power Gallery Comments Out in Power CMS?

Thread began 4/09/2012 11:03 pm by cldsk | Last modified 1/14/2014 12:04 pm by cldsk | 2459 views | 18 replies

Jason ByrnesWebAssist

to add a gallery to Power CMS, you'll need to convert the add to site code for the gallery:

to a hidden form element:

<input type="hidden" name="powergallery" id="1" theme="DLM" value="/homepages/40/d369590415/htdocs/divineloveministries/gallery/galleries/flow/index.php" />




you will also need to edit the Power CMS Developer Notes code to use the wa_evaluate() function.

for example, the developer notes code may look like this:

php:
<?php

include('/Applications/MAMP/htdocs/pcms_211/WA_CMS/addtosite.php');
echo 
WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'Content Group''ContentArea'false);
?>




you would need to change it to this:

php:
<?php

include('/Applications/MAMP/htdocs/pcms_211/WA_CMS/addtosite.php');
echo 
wa_evaluate(WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'Content Group''ContentArea'false));
?>



Note: there is a bug we are aware of when using a gallery on a power CMS page. the issue is that Power CMS uses a variable for the solution path with the same name as the one for Power gallery. the fix is to add code to the admin_gallery/common/functions.php file, however the code is based on the names of the folders you installed Power CMS and Power Gallery to.

as an example, I have Power CMS installed to a folder named "pcms" and Power Gallery to a folder named "pg2"
in the admin_gallery/common/functions.php, i would add the following code at line 2:

php:
$GLOBALS['absLink'] = str_replace("/pcms", "/pg2", $GLOBALS['absLink']);

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