I think I have found a solution to my problem.
This solution needs to use 'Rereplacer' and 'Sourcerer' components from Nonumber.
I have created a specific field 'displayed_content' which duplicates the 'description' field (but I could also duplicate others fields).
For the 'displayed content' field the option are the following :
- hidden required field
- the default value of the field : " "
- the default value is '
displayed instead of empty'
- the prefix is the following text :
[idnum]{{item->text}}[/idnum]
The template attached to the article contains only one field in the description zone : 'displayed content'.
Displaying the article at this level : I get
Code:
[idnum](content of the description)[/idnum]
Using Rereplacer component will create a $_SESSION variable and erase the content of the article in the main body.
The Rereplacer content is the follwing :
Code:
{source 0}
<?php
$parm = ("[[escape]]\1[[/escape]]");
$_SESSION['article']['texte'] = $parm;
?>
{/source}
I attach the file to import into Rereplacer.
Displaying the content in a module :
I have chosen the 'fullwidth' from Gantry framework.
I have created a customized content module.
The content used is the following :
Code:
{source 0}[[?php echo stripslashes($_SESSION['article']['texte']); ?]][[?php unset ($_SESSION['article']['texte']); ?]] {/source}
Of course we can use others contents to be mixed with this one.
the {source 0}{/source} allows to manage php or Javascript content without problem.
After displaying the $_SESSION. I delete it.