close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

sorted by albums

Thread began 1/10/2010 7:47 pm by muddysmurf | Last modified 1/11/2010 11:57 am by Jason Byrnes | 961 views | 1 replies |

muddysmurf

sorted by albums

This question has been brought up before, but it really didn't go into detail on what exactly to do to make it work.

I worked with it today, and got my projects page to show up by "albums"
projects.php

There is only one album live right now because I can't get this to work on my "projectsSelected.php" page when you click on View This Gallery.

This is basically what I want to happen. When the user clicks on my "Projects" tab, I want my albums to show up (which is what works). Then depending on the album, when they click on View Gallery, I want it to go to my next page "projectsSelected.php" and I want that specific album to show up like: projectsSelected.php?id=1

My projects page is filtering by id=1 (or whatever the id is for a gallery when it's more than one)

The projectsSelected page is what the problem is, because I can't figure out how to get it to sort, since the code is just the embedded that is given to put that gallery on your page. When I try to do it the way I usually do with images (like I have with the products page/items page) it breaks.

Sign in to reply to this post

Jason ByrnesWebAssist

on the products selected page, add a switch case statement to determine which gallery to include:
[php]<?php
switch(isset($_GET['id'])?$_GET['id']:"") {
case 1:?>
<include code for gallery 1>
<?php
break;

case 2:?>
<include code for gallery 2>
<?php
break;

case 3:?>
<include code for gallery 3>
<?php
break;

case 4:?>
<include code for gallery 4>
<?php
break;

default:?>
<include code for gallery 1 to be used as default gallery>
<?php
}
?>

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