English > Extensions and jDiction
Jdiction and extensions that use Joomla default Editor
Harald Leithner:
Thats the jdiction file for the articles component
--- Code: ---<?xml version="1.0" encoding="utf-8"?>
<jdiction>
<component>com_content</component>
<sections>
<section>
<tables>
<table>
<name>#__content</name>
<key>id</key>
<class>JTableContent</class>
<file>content.php</file>
<cache fullfetch="0" />
</table>
</tables>
<views>
<view name="article" list="articles" layout="edit" default="true">
<form import="article.xml">
<fieldset name="main">
<field name="title" />
<field name="alias" filter="jdalias" field="title" export="false" />
<field name="metakey" />
<field name="metadesc" />
<field name="articletext" multifield="introtext,fulltext" seperator="<hr id="system-readmore" />" />
</fieldset>
</form>
</view>
</views>
</section>
</sections>
</jdiction>
--- End code ---
The jdiction xml file could hold multiple view in it (joomfish has one xml file per view)
--- Code: ---<?xml version="1.0" encoding="utf-8"?>
<jdiction>
<component>com_<thecomponentname></component>
<sections>
<section>
<tables>
<table>
<name>#__ohanah_events</name>
<key>ohanah_event_id</key>
<class>Not needed atm</class>
<file>not needed atm</file>
<cache fullfetch="0" />
</table>
</tables>
<views>
<view name="<the name of the edit view>" list="<the name of the list view>" layout="edit" default="true">
<form import="<the name of the xml file in administator/components/com_<componentname>/models/forms>.xml">
<fieldset name="main">
<field name="title" />
<field name="description" />
<field name="address" />
<field name="venue" />
</fieldset>
</form>
</view>
</views>
</section>
</sections>
</jdiction>
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version