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: Export/Import: Alias field blank  (Read 34806 times)

gerardtolosa

  • Newbie
  • *
  • Posts: 18
    • View Profile
Export/Import: Alias field blank
« on: June 08, 2018, 09:23:01 am »

Hello,

When exporting a document to work on the translation on a XLF file, the alias is not included. Which at the beginning has sense, due to the fact that supposedly should be created automatically from the Title. But found out that the field stays blank and because of that it uses the alias from the original title and not the translated one.

This means that after importing you have to go one by one (article, menu, category,...) opening and copy&paste the title on the alias field to be sure that it is created from the translation and not from the original.

Hope I have explain my self clear, if not do not hesitate to ask.

Regards,
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Export/Import: Alias field blank
« Reply #1 on: June 08, 2018, 09:59:00 am »

Hmm, you are right, I think the reason for this is because we don't have a field validation on import so an alias may uses invalid characters...

but you can activate in in- and export with by modifying the xml file in
/libraries/jdiction/tables/content.xml and menu.xml

there is a line similar to this:
<pre>
              <field name="alias" type="jdalias" field="title" export="false" />
</pre>
simply remove the ' export="false"' part

Logged
Joomla! 5.0 Release Manager
Vote at JED

gerardtolosa

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Export/Import: Alias field blank
« Reply #2 on: June 08, 2018, 02:28:45 pm »

I will check on that, thanks for your fast reply.
Logged