<$BlogRSDURL$>
Interchange 5.0 hacks
Friday, January 06, 2006
  Create drop down menus:

1. Add variables directory and MENU_VRIABLES (4 files* below) within /usr/home/marbex/catalogs/marbex/variables. These are used within the individual pages/templates to load essential scripyt, i.e. _COMMON_MENU_ etc.



COMMON_MENU

[menu name="[scratch menu_bar]"
menu-type=flyout
use-file=1
anchor_down=1
entities=description
exclude_on=exclude_on
items=depends_on
js_prefix=top_
flyout_class=submenu
flyout_style="border: 1px solid #dddddd; padding: 4px; padding-left: 1px"
submenu_image_right="[var IMAGE_DIR]/sm_right.gif"
inactive=inactive
indicator_class="menu_class=name"
indicator_page=page
link_class=submenu
nbsp=name
logged_in=member
]
[menu-header]



[/menu-header]
{MV_LEVEL:}



{/MV_LEVEL:}
[/menu]





LINE_MENU

[if !scratch line_menu]
[tmpn line_menu]catalog/line[/tmpn]
[/if]

[menu
name="[scratch line_menu]"
full_interpolate=page
localize="name,description"
]
{MV_LAST_ROW:} {/MV_LAST_ROW:}{MV_LAST_ROW?} {/MV_LAST_ROW?}

[menu-footer]
[if session admin]

[/if]
[/menu-footer]
[/menu]

{NAME} -[L]edit[/L]



PAGE_INIT

[calc]
$Variable->{MV_DHTML_BROWSER} = 'MSIE.*[5-9]\..*WindowsMozilla.*GeckoOpera.*[7-9]\.';
$Scratch->{dhtml_browser} =
$Session->{browser} =~ m{$Variable->{MV_DHTML_BROWSER}};
if($Scratch->{members_only} and ! $Session->{logged_in}) {
$Scratch->{mv_successpage} = $Tag->var('MV_PAGE', 1);
$Tag->deliver({ location => $Tag->area('login')});
}
return;
[/calc]


##### BTW, there are more otherTags like above in the 5.3 catalog.cfg to determine whether the user has a DOM-compliant browser #############


THEME_CSS




2. Import the 5.3 tree.txt within the Menu Editor. It contains the menu structure that opens the lower-level menus when you mouse-over the top-level menu links.

The rest is coming...

 
Keeping track of changes I've made to Interchange shopping carts and their respective ITL scripts and hacks.

ARCHIVES
02/01/2004 - 03/01/2004 / 02/01/2005 - 03/01/2005 / 11/01/2005 - 12/01/2005 / 01/01/2006 - 02/01/2006 / 10/01/2006 - 11/01/2006 /


Powered by Blogger