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

Pages: [1] 2

Author Topic: Alternative Read More Text  (Read 45563 times)

d4rkbl4de

  • Newbie
  • *
  • Posts: 28
    • View Profile
Alternative Read More Text
« 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.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Alternative Read More Text
« Reply #1 on: February 18, 2014, 07:59:50 pm »

I'm not sure where the alternative read more text is.
Logged
Joomla! 5.0 Release Manager
Vote at JED

d4rkbl4de

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Alternative Read More Text
« Reply #2 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.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Alternative Read More Text
« Reply #3 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>
Logged
Joomla! 5.0 Release Manager
Vote at JED

d4rkbl4de

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Alternative Read More Text
« Reply #4 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!
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Alternative Read More Text
« Reply #5 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?
Logged
Joomla! 5.0 Release Manager
Vote at JED

d4rkbl4de

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Alternative Read More Text
« Reply #6 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 :)
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Alternative Read More Text
« Reply #7 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.
Logged
Joomla! 5.0 Release Manager
Vote at JED

d4rkbl4de

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Alternative Read More Text
« Reply #8 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. :)

Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Alternative Read More Text
« Reply #9 on: February 19, 2014, 03:27:35 pm »

$_REQUEST['view'] is the correct one ;-)
Logged
Joomla! 5.0 Release Manager
Vote at JED

d4rkbl4de

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Alternative Read More Text
« Reply #10 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.
« Last Edit: February 19, 2014, 03:38:50 pm by d4rkbl4de »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Alternative Read More Text
« Reply #11 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.
Logged
Joomla! 5.0 Release Manager
Vote at JED

d4rkbl4de

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Alternative Read More Text
« Reply #12 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.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Alternative Read More Text
« Reply #13 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
Logged
Joomla! 5.0 Release Manager
Vote at JED

d4rkbl4de

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Alternative Read More Text
« Reply #14 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
Logged
Pages: [1] 2