jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Author Topic: Jdiction and extensions that use Joomla default Editor  (Read 14929 times)

cmjonit

  • Newbie
  • *
  • Posts: 11
    • View Profile
Jdiction and extensions that use Joomla default Editor
« on: January 13, 2014, 11:03:01 am »

Hi everyone, I was just musing that is the 'translate' button were to be placed below the default editor like Article, Image, Page Break, Read More, etc then it would be possible to translate any content that uses the default joomla extensions. Right now Jdiction is lacking compatibility with other extensions and that's a problem. I think this will help as there are many of such extensions that use the Joomla default Editor.

Thanks
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Jdiction and extensions that use Joomla default Editor
« Reply #1 on: January 13, 2014, 11:33:10 am »

The location button is not the problem, there must be a specification for for jdiction and this file must be created. for example based on joomfish or falang xml files.
Logged
Joomla! 5.0 Release Manager
Vote at JED

cmjonit

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Jdiction and extensions that use Joomla default Editor
« Reply #2 on: January 13, 2014, 11:41:03 am »

Okay and thanks Harald.

But how difficult is the xml file to create for a non-developer :-). Could you provide some guidelines. Thanks
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Jdiction and extensions that use Joomla default Editor
« Reply #3 on: January 13, 2014, 11:49:00 am »

I should do that... but I have not really time for this atm, I have to finish 2 projects... then I will have more time for jdiction
Logged
Joomla! 5.0 Release Manager
Vote at JED

cmjonit

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Jdiction and extensions that use Joomla default Editor
« Reply #4 on: January 13, 2014, 11:52:39 am »

I got this XML code for joomfish for Ohanah events component. What should I do to it to make it work with jdiction? Thanks.

<?xml version="1.0" ?>
    <joomfish type="contentelement">
    <name>Ohanah</name>
    <author>Victor Cachi</author>
    <version>1.0</version>
    <description>Integracion Ohanah con Joomfish</description>
    <reference type="ohanah_events">
    <table name="ohanah_events">
    <field type="referenceid" name="ohanah_event_id" translate="0">ID</field>
      <field type="titletext" name="title" translate="1" >Titulo</field>
      <field type="htmltext" name="description" translate="1">Descripcion</field>
      <field type="text" name="address" translate="0">Direccion</field>
    <field type="htmltext" name="venue" translate="0">Lugar</field>
    </table>
    </reference>
    </joomfish>
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Jdiction and extensions that use Joomla default Editor
« Reply #5 on: January 13, 2014, 12:07:24 pm »

Thats the jdiction file for the articles component

Code: [Select]
<?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="&lt;hr id=&quot;system-readmore&quot; /&gt;" />
            </fieldset>
          </form>
        </view>
      </views>
    </section>
  </sections>
</jdiction>

The jdiction xml file could hold multiple view in it (joomfish has one xml file per view)

Code: [Select]
<?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>
Logged
Joomla! 5.0 Release Manager
Vote at JED