close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PowerCMS and PowerGallery

Thread began 4/15/2011 7:16 am by david390068 | Last modified 4/15/2011 9:17 am by Jason Byrnes | 1282 views | 3 replies |

david390068Beta Tester

PowerCMS and PowerGallery

I have intalled powercms and powergallery for use on the same site. How do I get PowerCMS

to save the PowerGallery code and display it on the site pages?

My PowerCMS takes the code as:
<img design="ribbon_lightbox" id="1" name="powergallery" src="light_large.png" style="display:block" theme="light" />

In PowerCMS developer notes it shows:
<?php
include('C:/wamp/www/cmsgallery/cms/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home Page', 'Content', true);
?>

Trying to display on website using:
<?php
require_once('wa_evaluate.php');
include('/cms/WA_CMS/addtosite.php');
?>
<?php
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home Page', 'Content', true);
?>

The page just shows the powergallery image place holder.

What am I doing wrong or is there an additional setting I need to change?

Sign in to reply to this post

Jason ByrnesWebAssist

In Power gallery, go to the add to site section for your gallery and copy the code From the Add to Power Store, it will look similar to:
<input type="hidden" name="powergallery" id="1" theme="dark" value="/Applications/MAMP/htdocs/pg/galleries/ribbon_fullsize_lightbox/index.php" />


you then need to modify the PowerCMS developer notes code to wrap the wa_evaluate() function around the WA_getCMSContent() function.
change:

php:
<?php

echo WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'Home Page''Content'true);
?>



to:

php:
<?php

echo wa_evaluate(WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'Home Page''Content'true));
?>
Sign in to reply to this post

david390068Beta Tester

Thanks Jason. Will the image place holder still show up in the ckeditor as it does now?

Sign in to reply to this post

Jason ByrnesWebAssist

It shouldnt, the code to enter from the Power Galley add to site section is not an image tag, it is a hidden form element.

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