[Zope] URLs as properties

Rob Page rob.page@digicool.com
Mon, 23 Aug 1999 17:04:30 -0400


> I define a myhomepage property and can do this:
> <!-- #var myhomepage --> and creates this html:
> <a href="http://whatever.value.was">myhomepage</a>
> 
> Do I do this somewhat differently?
> How do you add more property types in that list?

A URL is a string of characters so you can type a URL into a string
property:

If I defined a string property, href_to_home_page, as follows:

href_to_home_page:               <a href="http://www.zope.org">Zope Home
Page</a>

I could use it anywhere in my DTML as:

<!--#var href_to_home_page-->

--Rob