close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamically generate external link as menu item?

Thread began 12/15/2009 7:36 pm by sysop349733 | Last modified 12/17/2009 5:40 pm by Eric Mittman | 1749 views | 3 replies |

sysop349733

Dynamically generate external link as menu item?

Hello,

I have a database that has urls to external web sites. Can I dynamically generate a menu (or sub menu) where the links created are to the external site? When I simply select the table column to "Add to link," Menu Writer appends it to the site url, generating a link like this: www.ExternalSite.com.

Sign in to reply to this post

Eric Mittman

Are all of the links for that part of the dynamic menu external? If so you can just remove the root url reference in the menu.php page. In this file you can find the dynamic links and just remove the root url reference.

Look for this:

php:
<?php do { ?>

        <li><a href="<?php echo($assumedRoot); ?><?php echo $row_menuwriter_links["url"]; ?>"><?php echo $row_menuwriter_links["url"]; ?></a></li>
<?php } while ($row_menuwriter_links mysql_fetch_assoc($menuwriter_links)); ?>



Change it to be like this:

php:
<?php do { ?>

        <li><a href="<?php echo $row_menuwriter_links["url"]; ?>"><?php echo $row_menuwriter_links["url"]; ?></a></li>
<?php } while ($row_menuwriter_links mysql_fetch_assoc($menuwriter_links)); ?>
Sign in to reply to this post

sysop349733

Thanks!

Ah, that should work. Thank you!

Sign in to reply to this post

Eric Mittman

Your welcome, let us know if you have any other issues or questions.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...