<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF xmlns="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Project><name>collective.formlib.link</name>
<shortdesc>A link schema type representing an internal or external link.</shortdesc>
<description>Overview
--------

This package provides a schema field that combines an internal and
external link representation. It's relatively low-tech.

It provides a widget that lets users enter links on the format:

  "Title":internal path or URI:"Description"

Both title and description are optional. If an internal path is given,
the field tries to resolve the object and stores only its UID.

Requirements
------------

* Zope 2.10.4+

Usage
-----

Include the ZCML-slug for the package to register the widget with formlib. 

A schema definition for a field carrying a single link:
   
   &gt;&gt;&gt; from collective.formlib.link.field import Link
   &gt;&gt;&gt; field = Link(title=u"Link")

A list of link fields:

   &gt;&gt;&gt; from zope import schema
   &gt;&gt;&gt; field = schema.List(
   ...     title=u"Links",
   ...     value_type=Link)

To render the link from a page template:

      &lt;a tal:attributes="href link/@@absolute_url;
			 title link/description"
	 tal:content="link/pretty_title_or_uri" /&gt;</description>
<maintainer><foaf:Person><foaf:name>Malthe Borch</foaf:name>
<foaf:mbox_sha1sum>38d1fa3709e4435d5acabdd3c1d26b529ec24227</foaf:mbox_sha1sum></foaf:Person></maintainer>
<release><Version><revision>0.1</revision></Version></release>
</Project></rdf:RDF>