Hello
this was the most longest week since i can remember.
Why is that hard to use a css object inserted into a page without messing
all the text of a page?
1. I have a document in a page, to which i (have to ?) add a stylesheet
object at the edit mode. in this stylesheet object i place my css code. This
page has a simple name like: TemplateStyleClass
2. i make another page in the space and import the above page:
$xwiki.ssx.use("TemplateStyleClass") So i automatically
Xwiki new styntax makes us use the: "{{velocity}}{{html}}" when we have
velocity code and tables(html).....if i am wrong feel free to show me an
example that works to show a table or divs or #set(something) without those
2 lines at the begining and at the end;
When i try to do something extremmly simply like having text and tables ,
some in divs, some not, the surprise pops.
{{velocity}}
{{html}}
$xwiki.ssx.use("TemplateStyleClass")
<div class="leftSidePanel">
(% style="font-size: 1em;" %)
== **LEFT** ==
</div>
<div class="rightSidePanel">
(% style="font-size: 1em;" %)
== **RIGHT** ==
</div>
{{/html}}
{{/velocity}}
In XWIKI Sintax() you specify:
**bold**
(% style="text-align:center;color:blue" %)
Centered and blue paragraph
== Header ==
etc.
This means that if someone is using the new sintax (2.0) this is how he
should write the code inside the document and plus, it shows how it will
look.
"== Header ==" this creates sections. it does....if not inserted in a
<div>
If i put "{{/html}}{{/velocity}}" before i write
(% style="text-align:center;color:blue" %)
Centered and blue paragraph
and then start all over with these lines : {{velocity}}{{html}} and so oon.
it does not recognize my divs anymore.
This should have been an easy and routine, actually boring stuff to do, to
make a page, import a css where u declare 2 panels, use them in the page and
add simple text and code where you desire.
But it turned out to be a day of a big hassel. If the documentation says :"
(% style="text-align:center;color:blue" %)
Centered and blue paragraph" then this should just work.
Thank you
--
View this message in context:
http://n2.nabble.com/xwiki-2-0-syntax-issues-tp4113304p4113304.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.