[TYPO3] GMENU file??

dave ashton dave at bassmedia.net
Thu Jun 15 20:38:15 CEST 2006


Hi,
Nearly there.......however, I need a drop up rather than a drop down menu
(i.e. the menu when rolled over appears above the main level items -
http://knalleland.vanillastormhosting.com/index.php?id=22)

Presently, the links appear above the main menu items, but they don't all
align their bottom lines or align the links to the bottom of the popped up
div. (you'll see what I mean when you see the menu as above.)

The menu uses some typoscript setup code, a stylesheet and a js file for the
menu.I've played with the div positioning to get the sub menu where it is
now and tried putting 'vertical-align : bottom;' and 'bottom:0;' in the div
style but this seems not to work.

Have been at this all day with no success.

Present code as below:-

Setup code:-
# Include the CSS
   page.includeCSS {
     file105 = typo3conf/ext/htmlcssstyling/template/main/yacbddm_gmenu.css
   }
   
   
   subparts.footmenu_1 = COA
   subparts.footmenu_1.10 = HMENU
   
   ##############################################################
   subparts.footmenu_1.10.1 = GMENU
   subparts.footmenu_1.10.1{
       noBlur = 1
       expAll =1
       wrap = <ul id="yacbddm" class="topmenul1"> | </ul><div> </div>
       
       
       NO.allWrap = <li> |
       NO.ATagParams = class="firstlevellink"
       
       NO {
       
       XY = [1.w],[1.h]
       1 = IMAGE
        1 {
           XY = [5.w],[5.h]
           file = GIFBUILDER
           file {
              XY = [10.w]+20,14
              
                  10 = TEXT
                  10 {
                    align = center
                    niceText = 1
                    text.field = title
                    offset = 0,10
                    fontColor = #999999
                    fontSize = 12
                    fontFile = ft3lib/fonts/nimbus.ttf
                   }
            }
          }
       }
       RO < .NO
       RO = 1
       RO.1.file.10.fontColor >
       RO.1.file.10.fontColor = #999999
       RO.1.file.10.backColor >
       RO.1.file.10.backColor = #cccccc
       ACT < .NO
       ACT = 1
       ACT.1.file.10.fontColor >
       ACT.1.file.10.fontColor = #000000
       
   }
   
   
   
   # First dropdown Menu configuration
   subparts.footmenu_1.10.2 = TMENU
   subparts.footmenu_1.10.2 {
   
       noBlur = 1
       expAll = 1
       wrap = <ul class="topmenul2"> | </ul></li>
       NO.wrapItemAndSub = <li>|</li>
       IFSUB=1
       IFSUB {
           wrapItemAndSub = <li>|</li>
           ATagParams = class="topmenul2-ifsub"
       }
   }
   # Second dropdown is the same is first drop down
   subparts.footmenu_1.10.3 < yacbddm.10.2
   subparts.footmenu_1.10.3.wrap = <ul class="topmenul2"> | </ul>
   
   # Third dropdown is the same is first drop down
   subparts.footmenu_1.10.4 < yacbddm.10.2
   subparts.footmenu_1.10.4.wrap = <ul class="topmenul2"> | </ul>
   
   
   
   subparts.footmenu_1.20 = TEXT
   subparts.footmenu_1.20.value (
      <script src="typo3conf/ext/htmlcssstyling/template/main/yacbddm.js"
type="text/javascript"></script>
      <script type="text/javascript">/*activateMenu('yacbddm')*/</script>



The div in which the menu lives is called ' footmenu_1 ' which is styled in
the main stylesheet.

Regards,

Dave









-----Original Message-----
From: Christopher [mailto:bedlamhotel at gmail.com] 
Sent: 14 June 2006 18:48
To: TYPO3 English
Subject: Re: [TYPO3] GMENU file??

Hi,

On 6/14/06, dave ashton <dave at bassmedia.net> wrote:
> Hi all,
>
> I'm trying to put a little gmenu with sub pages showing on rollover of the
> top level nav. Item
>  as per
>
-http://typo3.org/documentation/document-library/core-documentation/doc_core
> _tsbyex/current/view/7/7/
>
>
>
> One problem - the first line - page.includeLibs.gmenu_layers =
> media/scripts/gmenu_layers.php
>
> There is no file gmenu_layers.php file anywhere to be found in the typo
> installation.

If the file is not present anywhere then your T3 install is likely
broken. On the other hand, it's not that easy to find since the
internal symlinks were removed for 4.0. Check at

typo3_src-4.0/typo3/sysext/cms/tslib/media/scripts

BUT...now that I've told you where to find the file I'd like to ask
you, for the sake of whever will be visiting your website and for your
own sanity, not to use that awful thing. Not only is it a pain to
configure, it outputs the nastiest, ugliest and most inaccessible,
bloated html code (and dozens of line of javascript) that you can
possibly imagine.

Ries van Twisk has helpfully published a couple of variants on
css-based dropdowns on his site [1]. If you're comfortable with css,
you can also take a shot at building your own based on the Suckerfish
menus [2].


-Christopher

[1] http://www.rvantwisk.nl/
[2] http://htmldog.com/articles/suckerfish/
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english





More information about the TYPO3-english mailing list