I am trying to export translated content from Joomla's Joomfish MySQL database table.
The way Joomfish works is by translating fields separately and storing them in a jos_jf_content table with a reference id to the original source content from jos_content table. For example, one row may hold the translated title, another row the translated categories, and another the fulltext content. These rows are separate and only share the reference_id value.
So one has a jos_jf_content table where the columns of interest are:
reference_id (id of source) | reference_field (title|fulltext|metadesc) | value (translation)
I need to combine all the values sharing the same reference_id into a single row whose columns are Title, Fulltext, Metadesc etc .
Any hint?
UPDATE:
Original table is like:
|reference_id| reference_field | value |
10 title A title
10 fulltext Body of post
I need to export it (CSV etc) as:
| ID | TITLE | FULLTEXT |
| 10 | A Title | Body of post |
you can use Mysql GROUP_CONCAT() so your query might look like
assuming the column name used to save these information is same. if not please paste your table structure. if they stored in different columns you can use concat too.