All Generic Content
based modules have the ability to define custom meta fields. If you want to add a custom meta field, you must follow these steps:
- Define a meta field to the module (example: PDFAttachment to the News module)
- Add control that will accept
the URL of the new field (attachment)
- Add Hyper Link control that will display this URL in the given control (example: in SingleNews and/or NewsList control for the PDF attachement).
The meta fields are changed in the web.config
in the <metaFields>
tag section. There, in order to add a new meta field, the following type of code should be added (this is just part of the example):
|<asp:HyperLink ID="PDFAttachement" runat="server" NavigateUrl='<% = this.Text %>'></asp:HyperLink> |
Also, the valueType
key could be specified. The different predefined value types of meta fields are:
For detailed explanation, please look at the following thread: Adding Meta Fields
Hope this helps.
the Telerik team