jDiction Forum

English => Extensions and jDiction => Topic started by: d4rkbl4de on February 18, 2014, 07:34:45 pm

Title: Alternative Read More Text
Post by: d4rkbl4de on February 18, 2014, 07:34:45 pm
Hi,

I've been trying to add a translation field for the alternative read more text for articles in Joomla 3 but to no avail. How would that work?

Thanks.
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 18, 2014, 07:59:50 pm
I'm not sure where the alternative read more text is.
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 18, 2014, 08:05:54 pm
In your article, go to Options and near the bottom, there is a Read More Text. :) It changes your Read more text.
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 18, 2014, 08:30:45 pm
change the content.xml file in libraries/jdiction/tables.

add
Code: [Select]
            <fields name="attribs">
              <fieldset name="basic">
                <field name="alternative_readmore" />
              </fieldset>
            </fields>
before
Code: [Select]
          </form>
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 19, 2014, 02:30:16 pm
I'm trying to do the XML for JEvents. I'm a little bit confused on that one too. Mind helping? :)

JEvents 3.1.17

Also, thanks a lot for the help!
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 19, 2014, 02:38:59 pm
thx for your detonation, if you like you can get an invoice, I have to pay the tax anyway.

do you have a joomfish or falang xml file?
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 19, 2014, 02:56:43 pm
This is the FaLang XML for JEvents

Code: [Select]
<?xml version="1.0" ?>
<falang type="contentelement">
<name>JEvents</name>
<author>Stéphane Bouey</author>
<copyright>www.faboba.com</copyright>
<version>1.0</version>
<description>Definition for JEvents Component</description>
<reference>
<table name="jevents_vevdetail">
<field type="referenceid" name="evdet_id" translate="0">ID</field>
<field type="titletext" name="summary" translate="1">Summary</field>
<field type="htmltext" name="description" translate="1">Description</field>
<field type="text" name="location" translate="1">Location</field>
<field type="text" name="url" translate="1">URL</field>
<field type="text" name="organizer" translate="1">Organizer</field>
<field type="text" name="contact" translate="1">Contact</field>
<field type="text" name="extra_info" translate="1">Extra</field>
</table>
</reference>
</falang>

And sure for the invoice :)
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 19, 2014, 03:18:32 pm
Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<jdiction>
  <component>com_jevents</component>
  <sections>
    <section>
      <tables>
        <table>
          <name>#__jevents_vevdetail</name>
          <key>evdet_id</key>
          <cache fullfetch="0" />
        </table>
      </tables>
      <views>
        <view name="EDITVIEW?" list="LISTVIEW?" layout="edit" default="true">
          <form import="phocagalleryimg.xml">
            <fieldset name="main">
              <field name="summary" />
              <field name="description" />
  <field name="location" />
  <field name="url" />
<field name="organizer" />
              <field name="contact" />
              <field name="extra_info" />
            </fieldset>
          </form>
        </view>
      </views>
    </section>
  </sections>
</jdiction>

please tell me the name of the "list" and the "edit" view.

for the invoice please send me all needed information as pm, thx.
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 19, 2014, 03:26:50 pm
When I do echo JRequest::getVar('edit'); and echo JRequest::getVar('list');, nothing appears, like they are empty.

You can send the invoice at the PayPal address. :)

Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 19, 2014, 03:27:35 pm
$_REQUEST['view'] is the correct one ;-)
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 19, 2014, 03:32:40 pm
var_dump($_REQUEST['view']); says NULL. Wait, am I supposed to do that in the admin or the frontend? Cuz I was doing it in the frontend.

Tried that in the backend, still said NULL.
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 19, 2014, 08:00:08 pm
So I created a new version with some modifications to jdiction to support 3rd party components better.

You need the attached version (please test) and the new xml file for jevents.
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 20, 2014, 02:36:43 pm
I put the XML file inside administrator/components/com_jevents right? :) just to make sure i'm doing it right.
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 20, 2014, 03:05:57 pm
yes

btw. if you have a stackexchange account (of if you have none create one ;-), please support http://area51.stackexchange.com/proposals/58842/joomla
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 21, 2014, 07:50:58 pm
I uninstalled jDiction (I put the database back to MSQLi and disabled everything before uninstalling). Everything went well. I installed the new version you gave me, everything went well. But when I clicked on jDiction to check the check page, it gave me this error : Fatal error: Class 'jDiction' not found in /home/tonile/public_html/v3/administrator/components/com_jdiction/views/translations/view.html.php on line 45
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 21, 2014, 10:32:23 pm
is the plugin activated?
Also you could simple upgrade jdiction.
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 24, 2014, 03:59:21 pm
I tried upgrading, didn't find any changes that's why I tried uninstalling. :)

I noticed another thing. When translating in K2 (I found the XML in the forum), it seems to filter all tags and only keep the text. For example : <a src="index.php">link</a><br/>text becomes link text
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 24, 2014, 05:32:53 pm
you found the wrong verision ;-)

is jevents working?
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 24, 2014, 08:15:25 pm
Unsure about JEvents. Not sure where the translation button should be. Can't find it. O_O
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 24, 2014, 10:16:22 pm
See attachments.
Title: Re: Alternative Read More Text
Post by: d4rkbl4de on February 26, 2014, 03:16:56 pm
I installed the new version of jDiction over the old one.
I put the jDiction.xml inside administrator/components/com_jevents

PHP Version : 5.3.27
MySQL Version : 5.1.72-cll
Joomla : 3.2.2
component_com_jevents : 3.1.17

Check page

Version   
Library Version: 1.0.2-git.810ccb2
Joomla Version 3.2.2 is ok.
Plugin   
JDiction Plugin is enabled
Languagefilter is enabled
Multiple Plugins have the same loading position (0)
Database   
jDiction Database Driver is selected
Language   
Seam to be good
Module   
Module is enabled

Still don't see the translate button inside my events.
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 26, 2014, 03:27:06 pm
jdiction.xml is lowercase or?
Title: Re: Alternative Read More Text
Post by: Harald Leithner on February 26, 2014, 03:29:05 pm
omg I uploaded the wrong jdiction.xml

attached should be the correct one.