Search code examples
phpjoomlajumi

resolved Jumi code is replaced when re-editing an article in Joomla


I did following in order to include php code into Joomla:

  1. writing a php application with jumi as:

    <?php echo '<p>Hallo Welt</p>'; ?>
    
  2. include following code in the target article, where the previous code should be included:

    {jumi [*1]}
    

this worked so far. But, when i try to edit the article again using the wyiwyg editor, the editor take the resolved formatting, means

Hallo Welt

and the original code get replaced {jumi [*1]}

this is get very problematic when the code is dynamic!

does somebody has a solution for this issue or am I missing something?


Solution

  • Using sourcerer plugging for including php script into an article, does not cause this overriding of source code by the displayed result, that's why I was forced to stop using jumi in favor of sourcerer.

    Switching to raw mode is unfortunately not an option, since this would increase the effort of other authors who are supervising the platform and typing articles, especially when those are not so familiar with plain HTML.