

Faq type - Company Website Builder Date: 16 September 2007
As you may already know, our software is 99% based on HTML template files, with very few HTML code in the PHP sources. Due to this fact any change of the interface is easier than in case of other ready to use web solutions. In this tutorial we will see the modality to change the look and feel of the Company Website Builder left menu. First of all you have to open the home page template which is programtemplates/template_firstpage.html. You will see an SSI include in this page which is displayed visually in the visual editors such as Macromedia Dreamweaver. The files in which the left menu resides are left_menu.html for the main categories and left_menu_subcat.html for the subcategories. The solution presented in this tutorial is applicable ONLY IN CASE all categories have subcategories as the links on the main categories will be removed. In order to get started in changing the layout you will need a few CSS styles (download here) and a JavaScript file (download here) (example used from http://javascript.internet.com/navigation/expanding-menu.html). Save the above files to your local computer following the next pattern: CSS from the css/menuexp.css and the JavaScript file from javascript/expandingMenu.js Open template_firstpage.html and template_index.html and in the header of the documents, following the first import line i.e. @import "css/other.css"; add another one that is @import "css/menuexp.css"; Add the following lines to this files afterward following Now you are ready to apply changes to the categories and subcategories files . Let's see the content of the left menu file: left_menu.html: Everything residing between the BEGIN DYNAMIC BLOCK and END DYNAMIC BLOCK lines will be repeated in case there are more than one categories in your database, meaning that these lines are highly necessary and need to be in a new line. The original version of the script looks like this: Take the second file which is more important is this example, the files in which the subcategories reside, i.e. left_menu_subcat.html. It's content is the following: Before the first line open the
If you upload the files to your testing server, you will see the links opening an expandable menu just like on: http://javascript.internet.com/navigation/expanding-menu.html. Download the files in ZIP archive . Source: GraFX |
Home page | About us | Free Download | Products | Forum | Contact
How to buy? |
Delivery | Support | Terms
GraFX Software Solutions