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