
rvp032582
Posts: 47
|
| Posted: 03/15/2006, 8:12 AM |
|
my problem is that i have multiple photo categories with corresponding photos.
WHAT IS COMPLETED:
when a photo category is selected, it display the pics in that cat (that part is done).
next a user will click on a thumbnail photo, and display the photo's details. (this part is done)
THE MISSING PARTS
when the thumbnail is clicked on to view the details page, there needs to be a previous and next record link to move to the next photo *IN THAT CATEGORY*. so the photo_ID needs to be passed (which it already is), then i have to be able to go to the next or previous photo from the details page that is in the same category.
hope this makes sense.
any help, with specific code, would be great. much appreciated
not much help here http://examples.codecharge.com/ExamplePack/NavGrid/NavGrid_desc.php
i've spent an hour or so, with no success
|
 |
 |
Rene S
|
| Posted: 03/15/2006, 9:19 AM |
|
Hi,
Should be easy, just keep the category parameter alive at your details page. So set your link to preserve parameter. (http://yoursite/details.asp?photo_cat_id=1&photo_ID=2 or something like that)
Goodluck,
Rene
|
|
|
 |
Benjamin Krajmalnik
|
| Posted: 03/15/2006, 12:52 PM |
|
Your "view" page should be a grid with one record shown at a time.
Pass the photo id and the category id.
Make sure that the grid has the same sort order and whereclasuse as the
calling page to maintain the same sequence.
|
|
|
 |
rvp032582
Posts: 47
|
| Posted: 03/15/2006, 7:09 PM |
|
so you're saying that if a person adds photos out of squence, it'll work? so if they enter
photoID=1 catID=3,
photoID=2 catID=5,
photoID=3 catID=2,
photoID=4 catID=5,
photoID=5 catID=3
these are out of category sequence, they didn't add all photos for 1 category at a time, they would've done it out of order.
so if you click on photoID=2 details page, the next link will take you to photoID=4. they're in the same cat. that's what i'm trying to do.
i've already done those suggestions, thanks tho. is there a SQL statement (MoveNext) or some sort of javascript: chngSlide (-1)?
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 03/16/2006, 9:44 AM |
|
The sequence has nothing to do with the ordrer sequence.
Let's say you have a grid which is showing 10 pictures with CatID = "3",
sorted by PhototID.
When you click on the "view", instead of a form you take them to another
grid (this time containing one item per page).
In the BeforeBuildSelect, you would check for the existance of a photoID
value, and if it exists you add that to the where clause. This will now
load the correct pricture into your new grid.
Now, since you maintained the same order by sequence (could have been by
name, by number, or whatever), the navigation will maintain the same order
they had in the original multi-row grid.
"rvp032582" <rvp032582@forum.codecharge> wrote in message
news:64418d6e6e6f8c@news.codecharge.com...
> so you're saying that if a person adds photos out of squence, it'll work?
so if
> they enter
> photoID=1 catID=3,
> photoID=2 catID=5,
> photoID=3 catID=2,
> photoID=4 catID=5,
> photoID=5 catID=3
>
> these are out of category sequence, they didn't add all photos for 1
category
> at a time, they would've done it out of order.
> so if you click on photoID=2 details page, the next link will take you to
> photoID=4. they're in the same cat. that's what i'm trying to do.
>
> i've already done those suggestions, thanks tho. is there a SQL
statement
> (MoveNext) or some sort of javascript: chngSlide (-1)?
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|

|
|
|
|