SiteGrinder

How do buttons and menus create pages and navigation automatically?


Virtually every button on a web page, whether a graphical rollover button or a phrase or line in a text based menu, represents a link to a web page. Generally these links are to other pages in your own site.

SiteGrinder assumes that every button you specify in a "-button" or a "-menu" layer corresponds to a page you want to generate unless you have designated a "-link" for that button. The reason for this is that you don't need to specify "-link" layers for buttons that link to pages SiteGrinder is generating, only for URLs for pages that already exist or for things that aren't web pages like email addresses or files to download.

If you create a layer comp or page definition that corresponds to a button name (i.e. a layer named "About-button" and a layer comp named "About") then you don't need to do anything else to hook the button to the page. SiteGrinder will program the link automatically.

Menu items are just like buttons in this regard. If you create a text layer named "my site-menu" and its contents are "Home | Gallery | Store" then SiteGrinder will automatically connect the three menu items to layer comps named "Home", "Gallery", and "Store". If you want the "Store" item to link to a page that already exists you can set this in the "buttons" pane of SiteGrinder's user interface, or you can create a text layer called "Store-link" and place the URL in this layer's contents.