Hi Pascal,
On 20 Oct 2016, at 08:20, Pascal BASTIEN
<pbasnews-xwiki(a)yahoo.fr> wrote:
Ok thxs but my problem is that I can not insert a <span>anything</span> in
front of $message :-/
There are <p> inserted I wonder why when it is a div (a bug?) or </spam> is
at the wrong place.
I didn't manage to have this simple result:
<div class="plainmessage publish-message">
<p><span class="glyphicon glyphicon-globe"></span> This
article was published on 17/10/2016 16:47:06</p>
</div>
(% class="plainmessage publish-message" %)((((% class="glyphicon
glyphicon-globe" %)$message)))
First this is not fully correct. You need to close the span with (%%).
<div class="plainmessage
publish-message">
<p>
<span class="glyphicon glyphicon-globe">This article was published on
17/10/2016 16:47:06</span>
</p>
</div>
=> span inserted BUT I don't want end of span at the end of the $message
Normally you should have tried this:
(% class="plainmessage publish-message" %)((((% class="glyphicon
glyphicon-globe" %)(%%)$message)))
But it won’t work because the span is empty.
So you have 2 options:
- option 1: you insert some character in the space like a space (you’ll get in
the output though)
- option 2: you use the html macro.
It seems from your need that you’re trying to output some specific custom HTML so best is
to use the html macro for that. You’ll have better control with it.
Thanks
-Vincent
(% class="glyphicon glyphicon-globe" %) (%
class="plainmessage publish-message" %)((($message)))
<span class="glyphicon glyphicon-globe"> </span>
</p>
<div class="plainmessage publish-message">
<p>This article was published on 20/10/2016 08:18:06</p>
</div>
=> span inserted BUT I don't want </p> between span and div .
publish-message