English > Extensions and jDiction

jDiction and PhocaDownload

(1/3) > >>

xgon:
I use Phocadownload to manage the files that can be retrieved from my website.

Is it possible to have the categories and file descriptions managed by jdiction?

Thanks

Harald Leithner:
I didn't use this component i wrote my own.

But i think its only a XML file away ;)

Maybe you Figuren it out by your self and share you XML file with US or someone helps you with it (maybe developer or I)

xgon:
Hello,

I made the XML file like this:

<?xml version="1.0" encoding="utf-8"?>
<jdiction>
  <component>com_phocadownload</component>
  <sections>
    <section>
      <tables>
        <table>
          <name>#__phocadownload_categories</name>
          <key>id</key>
          <class>TablePhocaDownloadCat</class>
          <file>phocadownloadcat.php</file>
          <cache fullfetch="1" />
          <exportfilter/>
        </table>
        <table>
          <name>#__phocadownload</name>
          <key>id</key>
          <class>TablePhocaDownload</class>
          <file>phocadownload.php</file>
          <cache fullfetch="1" />
          <exportfilter/>
        </table>
      </tables>
      <views>
        <view name="phocadownloadcats" list="phocadownloadcats" layout="edit" default="true">
          <form import="phocadownloadcat.xml">
            <fieldset name="main" label="COM_JDICTION_TRANSLATION_FIELDSET_MAIN">
              <field name="title" />
             <field name="alias" />
            </fieldset>
          </form>
        </view>
         <view name="phocadownloadfiles" list="phocadownloadfiles" layout="edit" default="true">
          <form import="phocadownloadfile.xml">
            <fieldset name="main" label="COM_JDICTION_TRANSLATION_FIELDSET_MAIN">
              <field name="title" />
             <field name="alias" />
            </fieldset>
          </form>
        </view>
      </views>
    </section>
  </sections>
</jdiction>


My goal is translate the files and categories, tables #__phocadownload and #__phocadownload_categories.

The problem is when I edit the translation of a category, the file with the same id gets the translation of the category.

What is wrong?


Thanks

Harald Leithner:
Maybe this works better:


--- Code: ---<?xml version="1.0" encoding="utf-8"?>
<jdiction>
  <component>com_phocadownload</component>
  <sections>
    <section>
      <tables>
        <table>
          <name>#__phocadownload_categories</name>
          <key>id</key>
          <class>TablePhocaDownloadCat</class>
          <file>phocadownloadcat.php</file>
          <cache fullfetch="1" />
          <exportfilter/>
        </table>
      </tables>
      <views>
        <view name="phocadownloadcats" list="phocadownloadcats" layout="edit" default="true">
          <form import="phocadownloadcat.xml">
            <fieldset name="main" label="COM_JDICTION_TRANSLATION_FIELDSET_MAIN">
              <field name="title" />
             <field name="alias" />
            </fieldset>
          </form>
        </view>
      </views>
    </section>
    <section>
      <tables>
        <table>
          <name>#__phocadownload</name>
          <key>id</key>
          <class>TablePhocaDownload</class>
          <file>phocadownload.php</file>
          <cache fullfetch="1" />
          <exportfilter/>
        </table>
      </tables>
      <views>
         <view name="phocadownloadfiles" list="phocadownloadfiles" layout="edit" default="true">
          <form import="phocadownloadfile.xml">
            <fieldset name="main" label="COM_JDICTION_TRANSLATION_FIELDSET_MAIN">
              <field name="title" />
             <field name="alias" />
            </fieldset>
          </form>
        </view>
      </views>
    </section>
  </sections>
</jdiction>
--- End code ---

xgon:
it works GREAT!

Thanks.

Navigation

[0] Message Index

[#] Next page

Go to full version