close ad
 
Important WebAssist Announcement
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 8:03 pm by cldsk | Last modified 1/14/2014 9:04 am by cldsk | 7686 views | 18 replies

Jason ByrnesWebAssist

the only coding change the client would need to perform on adding the gallery would be to modify the gallery PHP code to a hidden element.


all of the other changes are changes you would need to make to the pages that display the Power CMS Content.


the 2nd, 3rd and forth code blocks are changes that need to be made to the Power CMS System to allow a gallery to be added.

once those changes are made, the client can add a gallery to the CMS by changing the php code for the gallery:

php:
<?php

$pg_id 
'1';
$pg_theme 'DLM';
include(
'/homepages/40/d369590415/htdocs/divineloveministries/gallery/galleries/flow/index.php');
?>




to a hidden element:

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




the format of the hidden element is:
name="powergallery" - this wont change.
id="1" - this takes the value of the $pg_id variable "$pg_id = '1';"
theme="DLM" - this takes the value of the $pg_theme variable "$pg_theme = 'DLM';"
value="/homepages/40/d369590415/htdocs/divineloveministries/gallery/galleries/flow/index.php" - this takes the value of the include.

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