Gallery Not Displaying
I have the snippet code of powergallery embedded into code on a site created in SiteSculptor using that CMS, but it doesn't display a gallery.
photogallery.php
I have the snippet code of powergallery embedded into code on a site created in SiteSculptor using that CMS, but it doesn't display a gallery.
photogallery.php
See the "Database Integration and PowerGallery galleries" download available from the Power Gallery download center page for details on using Power Gallery with a database driven page.
I looked through your resources, but don't see this resources. Could you be more specific please? I have setup powergallery on many websites and am familiar with this.
Log into the Download Center page, and go to the Power Gallery 1 downloads page.
look for the section on this page titled:
Database Integration Update
I am using Power Gallery 2, not Power Gallery 1.
The instructions addressed installing a script around a piece of code in PowerStore. I am using SiteSculptor though. Do you have a fix for intalling a powergallery script into a SiteSculptor page?
It's always good to include the version number pof the product your using.
for this to work, you will need to upload the wa_evaluate.php file from the Power Galley 1 Database integration update to your site.
on the Power Gallery 2 add to site page, you will need to take a look at the PHP code, and modify it, for example, the PHP code for my galery shows as:
<?php
$pg_id = '1';
$pg_theme = 'dark';
include('/Applications/MAMP/htdocs/pg_121/galleries/ribbon_fullsize/index.php');
?>
this needs to be converted to a hidden form element using the $pg_id value for the id, the $pg_theme value for the theme and the include path for the value:
<input type="hidden" name="powergallery" id="1" theme="dark" value="/Applications/MAMP/htdocs/pg_120/galleries/ribbon_fullsize/index.php" />
this code is what you past in the CMS Content area.
On the page where you output the cms content:
<?php echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Content Name' , 'Content Area'); ?>
edit that code to :
<?php require_once("wa_evaluate.php" ?>
<?php echo wa_evaluate(WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Content Name' , 'Content Area')); ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.