[xwiki-users] xwiki 2.0 syntax issues
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.
Hi, On Fri, Dec 4, 2009 at 17:07, Bubulina <[email protected]> wrote:
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
{{html}} macro is for html content, it has nothing to do with velocity
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
* tables: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HTables * div: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HGroups
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")
$xwiki.ssx.use does not produce html so i don't see why you have {{velocity}}{{html}} around the whole content, you could have {{velocity}}$xwiki.ssx.use("TemplateStyleClass"){{/velocity}} {{html}} ...
<div class="leftSidePanel">
You can replace this by wiki sytax (% class="leftSidePanel" %) ((( with ))) for the end then {{html}} is totally useless
(% 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>
This as nothing to do with <div>, this is because {{html}} macro does not enable wiki syntax by default as you can see in http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro {{html}} is supposed to be used in very specific use cases, most of the time you don't need it thanks to xwiki/2.0 syntax.
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. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (2)
-
Bubulina -
Thomas Mortagne