User:Jtraulle/DiscourseMigration: Difference between revisions

→‎Permalinks: Add info about permalink generation
Tag: 2017 source edit
(→‎Permalinks: Add info about permalink generation)
Tag: 2017 source edit
Line 423: Line 423:


As of now, such mechanism has not be explored yet but should be taken into account in the migration script and is supported by Discourse software.
As of now, such mechanism has not be explored yet but should be taken into account in the migration script and is supported by Discourse software.
------
Kunena stores aliases for categories in the '''kunena_categories''' '''alias''' database field.
For topics URLs, this a bit more tricky since they are not stored in database (it uses standard Joomla! SEO friendly URLs generated using JRouter) and should therfore be generated on the fly in the import script.
Research showed that a "safe" alias can be generated using following Joomla! function :
* <code>stringUrlSafe()</code> function in <code>libraries/vendor/joomla/filter/src/OutputFilter.php</code>
* using <code>transliterate()</code> function in <code>libraries/src/Language/Language.php</code>
* using <code>utf8_latin_to_ascii()</code> function in <code>libraries/src/Language/Transliterate.php</code>


===Ads===
===Ads===