| Joomfish preview hack |
|
We are using JoomFish component for multilingual sites and we have encountered a problem with content pages which include FORM. As it is difficult to translate such a pages we have implemented a little hack into JoomFish component which changes preview to normal HTML. Then it is possible to translate also content pages which includes FORMS. How it works: The problem with FORMS in JoomFish is there because when you are going to translate any content item, then the preview shows original html as a part of translation page. If this content item includes FORM html element then the Joomfish interface does not work as expected. To make Joomfish working we have just put original HTML into textarea so it is not processed as html but as a normal text. This way it is not a problem anymore to translate pages which includes FORMS. Disadvantages: This solution brings 2 disadvantages.
What needs to be changed: Actually the changes are very small and made in one file. You need to modify following file: /administrator/components/com_joomfish/admin.joomfish.html.php At line 1593 you need to change following: Original code:
<td align="left" valign="top" id="original_value_<?php echo $field->Name?>">
Changed code:
<td align="left" valign="top" id="original_value_<?php echo $field->Name?>">
Modified file for JoomFish 1.8.2 version can be downloaded here. |