You are not logged in.
Pages: 1
Hello.
this code :
<a href="site-accueil.html" {active_link_accueil}>Presentation</a>
is rewrited by xinha in
<a href="site-accueil.html">Presentation</a>
So. Xinha remove tag {active_link_accueil}
why ?
Thx for all.
Alex.
Offline
That is not valid HTML. Why do you have that string in your markup?
Offline
because it's a template.
i'm using {var_name} to display some value...
Offline
one little precision.
this :
<div>{content}</div>
or
<div id="{content}">{content}</div>
work fine !
Last edited by alex67 (2009-11-23 15:21:26)
Offline
Xinha is for editing HTML. As ateslik pointed out, your syntax
<a href="site-accueil.html" {active_link_accueil}>Presentation</a>
is not valid HTML, and so Xinha (well, the web browser actually) is most likely to destroy it.
Your second examples:
<div>{content}</div>
<div id="{content}">{content}</div>
are (more or less) valid HTML, so Xinha should have no problem with them (although using a brace mark ( { } ) in an id is possibly not legitimate, but likely works anyway).
James Sleeman
Offline
can i edit one regex and remove char {} ?
Offline
Alex, we do something similar. Whatever you are using to process {content} tags, do that processing before the html gets passed to Xhina. If necessary you can do the reverse on save.
IE, if this is template code, just put some fake template code that would always be the same. So, {content} becomes, <p>This is the template content<p> and {active_link_accueil} becomes: class="active" (or whatever class you are trying to put there).
That should take care of the issue.
Last edited by Practicality (2009-11-25 12:07:09)
Offline
Pages: 1