DREAMWEAVER CS3 LIBRARY ITEM QUIRK UNMASKED - Aug 6th, 2010


As many of us have discovered, correctly managing php code in library items is not one of Dreamweaver’s strong points.

In a library item, I had the code:

<a href="<?php echo $record['books_available_on_line_url'] ?>"><?php echo $record['books_available_at'] ?></a>

But when it was rendered in the documents that used the code, it came out:

<a href="<?php echo $record['Library/books_available_on_line_url'] ?>"><?php echo $record['books_available_at'] ?></a>

The solution was to define a variable in the library item:



<?php $link_online_books = $record['books_available_on_line_url']; ?>



And then echo that variable in the library code that followed instead of using the original link code.



<a href="<?php echo $link_online_books2; ?>"><?php echo $record['books_available_on_line_at'] ?></a>



This way, Dreamweaver CS3 no longer recognizes the link in the same way and does not “manage” it.



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service