close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

What helper files and code are needed to embed a gallery in a Powerstore site on pages created outside of the CMS?

Thread began 1/15/2014 6:50 am by Jared Lui | Last modified 1/15/2014 9:28 am by Jason Byrnes | 622 views | 3 replies |

Jared Lui

What helper files and code are needed to embed a gallery in a Powerstore site on pages created outside of the CMS?

I need to embed a couple galleries in pages using the cart template but are not created within the CMS.

Using only the code created when you add a gallery to say a product, only produces a placeholder gallery image which is obviously wrong for my purposes and copying the browser source code of say a gallery embedded within a news page does bring up a working gallery but it is then hard coded and will not reflect changes made to that gallery.

I need to know what files and code are needed to run a gallery on a custom page outside the CMS portion of the site. For example, the contactus.php page.

Pretty sure these are the files needed for the Tiny Ribbon Lightbox: (what do I need to properly embed gallery ID="8" for example?)


<style type="text/css" media="all">
@import url("/~woolywon/css/slimbox/slimbox.css");
@import url("/~woolywon/galleries/tiny_ribbon_lightbox/css/common.css");
@import url("/~woolywon/galleries/tiny_ribbon_lightbox/css/dark.css");
</style>
<script type="text/javascript" src="/~woolywon/js/slimbox.js"></script>
<script type="text/javascript" src="/~woolywon/galleries/tiny_ribbon_lightbox/js/gallery.js"></script>

Sign in to reply to this post

Jason ByrnesWebAssist

when you embed a gallery using the CMS it adds an img tag, for example:
<img design="grid_lightbox" id="1" name="powergallery" src="http://localhost/ps453/galleries/grid_lightbox/admin/dark_large.png" style="display:block" theme="dark" />

on the page you want to display the gallery, make sure it is using the power store theme, and add the following code to show the gallery:

<?php $gallery = '<img design="grid_lightbox" id="1" name="powergallery" src="http://localhost/ps453/galleries/grid_lightbox/admin/dark_large.png" style="display:block" theme="dark" />'; ?>
<?php echo wa_evaluate($gallery); ?>

Sign in to reply to this post

Jared Lui

Perfect! Thanks Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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