Rate this article
More from Videos & Tutorials
Custom Field Mapping
Custom Field Mapping allows you to extend the functionality of your website by adding specific attributes to the system. For example, you can extend the article pages by adding a sub-headline, or "Author age", or whatever you need.
Requirement: basic MySQL, xHTML and PHP knowledge.
1. Create new field "source" in mySQl table (ie Articles)

2. Add new input field to your Article add/edit form
Open admin/templates/article_edit/form.xml in your favorite editor.
Add folowing code:
<div class="content_list_body_header_line1">
Source: <input type="text" class="article_title" name="ARTICLE_source" value="{article.source}" />
</div>
Notice the name of input field ARTICLE_source (you need to use ARTICLE_your_field_name) and value article.source (also you would use article.your_field_name)

3. Add new field to your frontend template
Open templates/xhtml/article/default.tpl and add following code:
<p>Source: <strong><vte:value select="{article.source}" /></strong></p>
after article title (or whereever)

Note: There is no sorting and filtering by custom fields.