 | |  |
 |

virgodesign
User
May 4, 2008, 5:35 PM
Post #1 of 3
(127 views)
Shortcut
|
|
Combine List Viewer and Page Viewer
|
Can't Post
|
|
Hi Dave, Long time not back :) Rather than have one page for a List Viewer and then one page for a Page Viewer, I want to combine them into one page. The page in question is: http://www.31square.com/news.php The right hand box on the side is the List Viewer, the content on the page is the Page Viewer. The news.php page should have a default value of news.php?2 Then when you click on one of the list viewer pages, the page will generate the new content, i.e. news.php?3. But always when the news.php link is entered in the main menu it should default to news.php?2 I realize the easiest way is to simply have news.php?2 in my main menu link, but Google will not parse dynamic menu links from the main menu (or so I am told). I know this is a simple solution for you, and I know its simply adding minimal code into the Page Viewer section. If you need me to email the source code, just let me know. Thanks Dave !! Avrom
|
|
|  |
 |

Dave
Staff
/ Moderator

May 5, 2008, 8:45 AM
Post #2 of 3
(116 views)
Shortcut
|
|
Re: [virgodesign] Combine List Viewer and Page Viewer
[In reply to]
|
Can't Post
|
|
Hi Avrom, So you have a page viewer and list viewer on that page already, right? It doesn't seem to change when I click the link. What you can do is use a little snippet of code like this to load either the record on the end of the url or record 2:
$numOnEndOfUrl = getNumberFromEndOfUrl(); if ($numOnEndOfUrl) { $options['recordNum'] = $numOnEndOfUrl; } else { $options['recordNum'] = 2; } Let me know if that will work for you. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

virgodesign
User
May 5, 2008, 9:50 AM
Post #3 of 3
(113 views)
Shortcut
|
|
Re: [Dave] Combine List Viewer and Page Viewer
[In reply to]
|
Can't Post
|
|
Perfecto ! Many thanks. Avrom
|
|
|  |
|