VISTA BUTTONS - HELP
Vista-Buttons.com Buy Now!
 

CONTENT
  1. About Vista web buttons



How to insert a down menu dreamweaver to many pages using Dynamic Web Template


To install the menu into your html page you should do the following things:

Create and save your buttons in any temp folder using Vista Buttons application. It will be better to export all menu code to external .js file. Go to "Tools/Export options...". Check "Save all menu params to js file" option.

Export options

You can use "Save as HTML" function.

Save down menu dreamweaver

You can enter any name you like, for example enter "menu":

Save Dreamweaver menu name

So you'll have menu.html file and "menu-files" folder with all menu files.

Generated files

Insert a down menu dreamweaver to many pages using Dynamic Web Template

- Start Dreamweaver and open your website. When the website opens, it should look like this:

Open website in Dreamweaver

- Lets create the template for the website which we'll use on all pages. Delete all unnecessary code from this page.

- Now you should add a down menu in your template page. Switch to the Design view mode. Decide where you would like the down menu to appear in your page. Click in the spot you want the code to appear in and type the phrase: your code here

Dynamic Web Templates add menu

- Open the generated in Vista Buttons menu.html page in any text editor. Copy all code within the following tags:
      <!-- Begin Vista-Buttons.com -->
        ...
      <!-- End Vista-Buttons.com -->

- We will now be inserting the JavaScript code into the body section right where we typed the phrase in the previous step. To do this, switch to HTML View.

- Go to the "Edit Menu" with Dreamweaver and select the "Paste" option to paste the menu code that we copied to the clipboard earlier. Since the phrase we typed was highlighted, it will be replaced when we paste the code in.

- To display images correctly you should change "menu-files/" to "templtes/menu-files/". Find the following code
<!-- Begin Vista-Buttons.com -->
<link href="templates/menu-files/styles_z7r36.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript"> var vbImgPath="templates/menu-files/"</script>
<script type="text/javascript" src="templates/menu-files/scz7r36.js"></script>
<noscript><a href="http://vista-buttons.com">Html Buttons Gif by Vista-Buttons.com v2.73</a></noscript>
<!-- End Vista-Buttons.com -->

Change path prefix in Dreamweaver

- Switch to the Design view mode. Now you should select regions that will be editable. For example lets create three editable regions: two titles and the main content area. Right click the selected area, choose the templates, and make the template become new editable region.

Dynamic Web Templates create editable region

- You can enter any name you like, for example enter "content":

Editable Region name

- So, you'll have:

Dynamic Web Templates create editable region

- Save this file as a template. So, the file will store in the assets of the files.

Dynamic Web Templates save as template

- Your template will be saved in the "templates" folder. Now you should copy the "menu-files" folder into the same folder with your main_template.dwt page ("templates" folder).

Copy menu files in Dreamweaver

- Attach a Dynamic Web Template to your pages.
a. Open the Web pages you want to attach a Dynamic Web Template to.
b. On the Modify menu, point to Templates, and then click Apply Template to Page....
c. Locate and click the Dynamic Web Template (main_template.dwt) you want to attach, and then click Select.

Attach Template in Dreamweaver

d. In the appeared window you should resolve the corresponding regions:

Dynamic Web Templates Attach Template

Dynamic Web Templates Attach Template

Result

- That's all. You've attached the template to your page, so let's test it. Select "File/Preview in browser/IExplore" to display the page live (in Internet Explorer).

Result

- If everything goes well, save and publish your website. If something seems wrong, double-check that you followed all the steps correctly.

- If you still run into trouble, we'd be happy to assist you further. You can post your problem to us at , and meanwhile describe your files in details.





Vista-Buttons.com Buy Now!


AI Website Generator | AI Website Builder | AI Website Generator | Website Generator AI | AI web design generator