Home | Products | Consulting | Hosting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Combine List Viewer and Page Viewer

 

 


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:


Code
$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

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4