CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 dynamic and static menus - target page problem

Print topic Send  topic

Author Message
Tomasz
Posted: 03/04/2002, 10:46 AM

On 'index' page I have static menu which links to, i.e. 3 different pages (different look - different html template). Let's call them for example: 1: 'Company info', 2: 'News' and 3: 'Offer'.
Each of this pages have tree menu with input parameter, which I transfer from 'index' page menu. So after click, Tree menu on each page opens with proper subcategory already opened (i.e.: Home > Company info). Pages 1 and 2 are the last level pages (there're no deeper subcategories), so I defined in tree menu properties 'index' page as a 'tree page'. Now link 'Home' leads to 'index' page, and this is what I need.
Problem appears on 'Offer' page, which has some 2nd level subcategories taken from db table. Menu looks like:

Home > Offer
Subcategory 1
Subcategory 2
Subcategory 3

and after click on sub:

Home > Offer > Subcategory 1

If I define 'tree page' as 'index' page, then 'Home' links to 'index' (that's OK), but 'Offer' also links to 'index' (that's damn far away from OK). I would like 'Offer' to link to the current page. Is it possible?
Maybe it would be easier to modify tree menu manually replacing link to 'Home' with '<a href' (which won't be changed - 'home' always links to 'index' page), and then change default tree page to 'Offer'?

Maybe there's another way to get dynamic menus (db driven) in CC?

I'll be grateful for help..
Nicole
Posted: 03/05/2002, 1:26 AM

Tomasz,
try to create Custom Show event for Tree form and replace current 'Home' link with any other one.
Tomasz
Posted: 03/05/2002, 2:55 AM

Nicole,

My knowledge of PHP is not quite good, I suppose.
Code from this event is too complicated for me. Can you take a look and give me some advice?

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.