Re: [xwiki-users] how do I apply theme colouring to the Panel macros.

2010-02-04 Thread Bubulina

hello,
A sollution can be this:
- see what skin you are using
- open the main css file from it and add some new code for what you want.
You can replace the color of the panel changing there in the already
existing css, or you can use the new ones you are creating.
- using firefox firebug, can be much helpfull, to see what css classes are
used for the panels.
Hope this works
-- 
View this message in context: 
http://n2.nabble.com/how-do-I-apply-theme-colouring-to-the-Panel-macros-tp4471570p4512296.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] embed nabble

2010-02-04 Thread Bubulina

Hello,
i don't know if i got this right, but you want to integrate nabble forum
into a xwiki platform of yours?
In theory i guess you have to make an intermediate component to get the
xwiki user and syncronize it with nabble...but nabble is not a public
software to manipulate, so i don't think it is possible in this situation.
Maybe if you integrate an open source forum and then you can mingle with
both platforms core.
good luck
-- 
View this message in context: 
http://n2.nabble.com/embed-nabble-tp4445988p4512313.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] New blog entry overwrites old

2010-02-04 Thread Bubulina

Hello,
I just tested what you said, and in xwiki2.1.1 the behaviour described by
you did not replicate.
i created a test page and then tried several times to create another test
page, but i kept getting the message page already exists
may it be possible that you deleted the article in the first place, and it
somehow got stuck in the cache of the browser?
try restarting the server, cleaning browser caches .

-- 
View this message in context: 
http://n2.nabble.com/New-blog-entry-overwrites-old-tp4475221p4512334.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] set variables on request

2009-12-16 Thread Bubulina

Hello,

I know that i can get value from a request like this:
#set($name= $request.getParameter('name'))

Now, shouldn't i be able to put variables on request so i can use in the
html page? something like this:
#set($var = $request.setAttribute($name))

and in the html page to use $request.getAttribute($name) ?
:blush:
Thank you
-- 
View this message in context: 
http://n2.nabble.com/set-variables-on-request-tp4174575p4174575.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] set variables on request

2009-12-16 Thread Bubulina

just setting the var on request and reading it afterwards. it worked. 
thank you


lucaa wrote:
 
 Hi Bubulina,
 
 On 12/16/2009 11:40 AM, Bubulina wrote:

 Hello,

 I know that i can get value from a request like this:
 #set($name= $request.getParameter('name'))

 Now, shouldn't i be able to put variables on request so i can use in the
 html page? something like this:
 #set($var = $request.setAttribute($name))
 
 yes, normally yes, but you also have to pass a value, the setAttribute() 
 function gets 2 params:
 
 $request.setAttribute($name, $value)
 

 and in the html page to use $request.getAttribute($name) ?
 
 I confess I don't really understand which HTML page this is about, but
 yes, it 
 should work. However, keep in mind that parameters and attributes are not
 really 
 the same thing (see the spec here 
 http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequest.html
 ).
 
 Happy hacking,
 Anca
 
 :blush:
 Thank you
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/set-variables-on-request-tp4174575p4174967.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] get prop from a class...

2009-12-16 Thread Bubulina

Hello

1. i create a class and add n properties. besides the properties added i
have this code: 
#set( $class = $doc.name.substring(0,$doc.name.indexOf(Class)))
#set($defaultparent = XWiki.${class}Class)
#set($defaultweb = Test)
#includeForm(XWiki.ClassSheet)

2. i create doc where i include the class: #includeForm($space.TestClass)
because I wanna get those prop:

#includeForm($space.TestClass)
#set($object = $doc.getObject($space.TestCkass).xWikiClass)
object - $object
 #foreach($prop in $object.properties)
 -- ${prop.prettyName} /dt
   : $doc.display($prop.getName())/dd
#end

and my $object shows nothing. probably my favourite questionwhat am i
missing here? 
Thanks
-- 
View this message in context: 
http://n2.nabble.com/get-prop-from-a-class-tp4175285p4175285.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] get prop from a class...

2009-12-16 Thread Bubulina

...ah! you were right Anca, i forgot to add the object from that class. Danke 


lucaa wrote:
 
 
 
 On 12/16/2009 03:58 PM, Josh wrote:
 Hello,

 Bubulina wrote:
 Hello Sergiu,

 it was a typo when i wrote by hand the code here.
 I include the TestClass, that has the properties, but the line that
 should
 give me the object from it:
 #set($object = $document.getObject(spaceName.TestClass).xWikiClass)
 returns nothing...


 You don't need the .xWikiClass. Try just:
 #set($object = $document.getObject(spaceName.TestClass)
 
 
 Unless you set the $document variable yourself (which you don't do in the 
 initial snippet I see), you should use $doc for that which is the name of
 the 
 variable holding the current document by default in the velocity context:
 
 #set($object = $doc.getObject(spaceName.TestClass)
 
 if it _still_ does not work, check if there is an object in there indeed
 by doing
 Edit - Objects in the menu and looking for an object of class
 spaceName.TestClass .
 
 Have fun!
 Anca
 

 -Joshua


 Sergiu Dumitriu-2 wrote:
 On 12/16/2009 02:08 PM, Bubulina wrote:
 Hello

 1. i create a class and add n properties. besides the properties added
 i
 have this code:
 #set( $class = $doc.name.substring(0,$doc.name.indexOf(Class)))
 #set($defaultparent = XWiki.${class}Class)
 #set($defaultweb = Test)
 #includeForm(XWiki.ClassSheet)

 2. i create doc where i include the class:
 #includeForm($space.TestClass)
 because I wanna get those prop:

 #includeForm($space.TestClass)
 #set($object = $doc.getObject($space.TestCkass).xWikiClass)
 $space.TestCkass is wrong, not just because it's Ckass instead of
 Class,
 but because the dot is part of the Velocity syntax. So $space.TestClass
 is not expanded as ($space).TestClass, but as $space.get(TestClass),
 which is the value of the TestClass property of that object. Try
 ${space}.TestClass. Even better, you know where the class is, you could
 just use 'Test.TestClass'.

 object - $object
#foreach($prop in $object.properties)
-- ${prop.prettyName}/dt
  : $doc.display($prop.getName())/dd
 #end

 and my $object shows nothing. probably my favourite questionwhat
 am i
 missing here?
 Thanks
 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/get-prop-from-a-class-tp4175285p4175668.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] distinct select divs from page

2009-12-16 Thread Bubulina

hey
My question is purely theoretically. If i create a table and each td from
it has an id, can i extract the information from a td by an id?
This is in a xwiki page.
table
 tr
   tdname/td
 /tr
 tr
  td id=testbla bla/td
 /tr

/table


Now, in another page i get the content of the page above, and i want to take
the info from the td with the id. is it possible?
:confused:

-- 
View this message in context: 
http://n2.nabble.com/distinct-select-divs-from-page-tp4175922p4175922.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] extended history view

2009-12-16 Thread Bubulina

Hello
I am not sure i understood what u are asking, but:
-if u want to divide a page in 2 columns. only that page..so you cannot use
the change of layout from xwiki, you can easily edit the page in question in
the object mode. (?editor=object) and from the  right side you can see that
u can add a stylesheetclass and there u can add .css . here in you declare
your 2 columns and everything else u want to have in page, just like u are
creating a simple html file that uses a css file. Next: Save

-

John Bober wrote:
 
 Hi, 
 
 I'm a Newbe and courrently working with an xwiki. I really like the look
 and gadgets, I'm only a little disapointed from the history.
 Currently it shows only the deletet and the added Text. Is there any
 posibility to generaly show the rest of the content? 
 It would really help, I didn't get what is actually changed and what not.
 
 - to see the author and dates and pages that were modified, use the xwiki:
 #includeInContext(Main.RecentChanges). it's something like this:
 {{velocity}}
 {{html}}
 
 ## Set variables to limit recent changes to the current space and 10
 items.
 #set($rcSpace = [$doc.space])
 #set($rcChangesNb = 10)
 #includeInContext(Main.RecentChanges)
 
 {{/html}}
 {{/velocity}}
 
 - if you want to get the contents of a page, you can use this:
 #set($docContent = $xwiki.getDocument($pageName).content) 
 (http://n2.nabble.com/get-content-of-page-td3992676.html#a3992676)
 
 Hope this helps
 
 By the way, a colleague of mine thought of special view:
 A Table-Style with the content on the left and the autor on the right. So
 one can easly get who is responsible for some very brilliant content =^D .
 
 Thanks in advance.
 John Bober
 
 

-- 
View this message in context: 
http://n2.nabble.com/extended-history-view-tp4169050p4176059.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] NEWBEE- how do i reset default skin

2009-12-16 Thread Bubulina

Hey,


For now, i have backup /skins/colibri into /skins/mades, and i have
modified xwiki.cfg file, concretly xwiki.defaultbaseskin=mades

-have u tried to follow the info from the link above? for me it worked to
change the skin in that way. 

Other thing, is not possible to center content inside cells?

how do i change the color of the links? or whetever text?


- try using text. maybe it can help you


AlonsoIR wrote:
 
 Hi Vincent, thx for the help.
 
 
 Finally i have drop the entire database because some links does not work
 and i dont have enough time.
 
 For now, i have backup /skins/colibri into /skins/mades, and i have
 modified xwiki.cfg file, concretly xwiki.defaultbaseskin=mades
 
 now i restarted the server and voila!
 
 Now i need to make a page like the attachment, and more or less i have
 something slightly similar, but, i dont know how to do login/pass part
 (botton-right), how do i link with the xwiki's proper login page?
 
 Other thing, is not possible to center content inside cells?
 
 how do i change the color of the links? or whetever text?
 
 sorry if the questions are not from this forum, but i need help!
 
 regards
 
 
  http://n2.nabble.com/file/n4139582/portada_mix2.jpg 
 
 
 
 
 
 vmassol wrote:
 
 Hi Alonso,
 
 On Dec 9, 2009, at 11:12 AM, AlonsoIR wrote:
 

 hi everybody, first at all, i m totally newbee with this software. I  
 ve tried
 to change the default skin with my own skin, and of course i have  
 bothered.

 How do i reset to the original default?

 i hope that someone could help me
 
 Maybe this will help:
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins
 
 Thanks
 -Vincent
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 

-- 
View this message in context: 
http://n2.nabble.com/NEWBEE-how-do-i-reset-default-skin-tp4138496p4176105.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Open Source Ethics (was Re: distinct select divs from page)

2009-12-16 Thread Bubulina

Hello,

Well my questions are not about creating new features in xwiki, they are
about using it. i posted codes for my questions, and when i found solutions
before any answer i posted the solution too(with code). If i know some
answers on this forum i answered. if there were stupid questions, then i am
sorry. 



vmassol wrote:
 
 Hi Bubulina,
 
 Could it be that you are Gabriela Radu? That Gabriela Radu has asked a  
 lot of questions here in the past in short rapid sequence (see
 http://bit.ly/5wqbFI) 
 .
 
 I've asked that person how she could help the project since she was  
 taking a lot of time (for free!) from the community. See:
 - http://markmail.org/message/5l5dspa6yjowvyyk
 - http://markmail.org/thread/xhjiiqhjgas6deey
 
 It looks like you are this same person but you are now posting under a  
 different name
 (see
 http://blog.ropardo.ro/2009/12/09/xeclipse-xwiki-issues-with-sollutions/)
 
 If this is the case you should really consider paying back. You must  
 have learnt a lot with all the answers that were provided to you. You  
 could easily contribute something back.
 For ideas about contributing, please see
 http://dev.xwiki.org/xwiki/bin/view/Community/Contributing
 You'll see there are lots of ways to contribute, including making  
 donations or paying for some professional support (you could contact
 http://xwiki.com 
   for this, we even have support in Romanian ;)).
 
 Nothing is free in this world and what you got for free isn't free,  
 someone has paid for it.
 
 Right now it seems you're again asking lots of questions in short  
 amount of time and not contributing much.
 
 Thanks
 -Vincent
 
 PS: If you're not Gabriela Radu then I apologize in advance. However  
 the message stays the same since you've already posted 37 mails asking  
 questions in about a month
 
 On Dec 16, 2009, at 4:07 PM, Vincent Massol wrote:
 
 Hi Bubulina,

 You're asking a lot of question and getting lots of answers which is  
 good but I hope you're going to contribute something back to the  
 community in exchange.

 Thanks
 -Vincent

 On Dec 16, 2009, at 4:00 PM, Bubulina wrote:


 hey
 My question is purely theoretically. If i create a table and each  
 td from
 it has an id, can i extract the information from a td by an id?
 This is in a xwiki page.
 table
 tr
  tdname/td
 /tr
 tr
 td id=testbla bla/td
 /tr

 /table
 

 Now, in another page i get the content of the page above, and i  
 want to take
 the info from the td with the id. is it possible?
 :confused:

 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/distinct-select-divs-from-page-tp4175922p4176170.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] how can i see the code of xwiki default macros?

2009-12-11 Thread Bubulina

Hello :)

I wanna see the code for let's say HTMLMacro from xwiki 2.0, because i wanna
see how you added a checkbox in the macro parameters. i know there are 2
files in the templates files: macros.vm and macros.txt, but i donlt find
what i want
And another question: can a page have more than one macro added? i mean...i
edit a page, add some macro classes . then i shoudl be able to use these
macros in every page in the space, right? and be able to see the macros(in
the macro list)..cause somethimes i do, and other times i don't, so i must
be doing something stupid. :D
Thank you
-- 
View this message in context: 
http://n2.nabble.com/how-can-i-see-the-code-of-xwiki-default-macros-tp4150827p4150827.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] get value from map

2009-12-09 Thread Bubulina

Hello, 
i Have this hashmap that i populate.
no when i want to show in a table the key : value i get an error. this is
the code:

#foreach($pageName in $myMap.keySet())
#foreach($dateDoc in $myMap.values())
tr
td $pageName  $pageName /td
td$pageName.getValue() /td
tddelete/td
/tr
#set($count = $count +1)
#end
#end
...

if i comment the second foreach i don't get an error, but i have nothing to
populate the date field with.
do you know what i am doing wrong here?
Thank you 
-- 
View this message in context: 
http://n2.nabble.com/get-value-from-map-tp4138399p4138399.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Cannot start the Velocity engine

2009-12-09 Thread Bubulina

Hello, out of the blue, from my point of view..i connect to a local instance
of xwiki and i get this err: Error number 4001 in 4: Error while parsing
velocity page Wrapped Exception: Cannot start the Velocity engine

Do you know how to resolve this? has anyone encountered it before?
Thank you %-|
-- 
View this message in context: 
http://n2.nabble.com/Error-number-4001-in-4-Error-while-parsing-velocity-page-Wrapped-Exception-Cannot-start-the-Velocitye-tp4138681p4138681.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] get value from map

2009-12-09 Thread Bubulina

Hello
sorry for this. it was a simple thing.my bad was . i just had to use:
$myMap.get($pageName)
Thx still :)


Marius Dumitru Florea wrote:
 
 Hi,
 
 My advice is to write the code in Java first and then adapt it for 
 Velocity. In Velocity you work with Java objects and you must know their 
 API.
 
 Bubulina wrote:
 Hello, 
 i Have this hashmap that i populate.
 no when i want to show in a table the key : value i get an error. this is
 the code:
 
 #foreach($pageName in $myMap.keySet())
  #foreach($dateDoc in $myMap.values())
 
 I can't think of a reason to do this two nested loops. They are not 
 semantically connected.
 
  tr
 
  td $pageName  $pageName /td
 
 not relevant
 
  td$pageName.getValue() /td
 
 $pageName is the map key. What is its type? Does it have a getValue() 
 method?
 
  tddelete/td
 
 not relevant
 
  /tr
 
  #set($count = $count +1)
 
 not relevant
 
  #end
 #end
 ...
 
 
 Also, when you post some code snippet and ask for help please post only 
 what's relevant. This is a good exercise for you: simply the code as 
 much as possible while preserving the error/misbehavior. By doing this, 
 in most of the cases you'll discover the problem yourself.
 
 if i comment the second foreach i don't get an error, but i have nothing
 to
 populate the date field with.
 do you know what i am doing wrong here?
 
 What is the error? How can we help you if we don't know the error?..
 
 Marius
 
 Thank you 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Re-get-value-from-map-tp4138709p4138718.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error number 4001 in 4: Error while parsing velocity page Wrapped Exception: Cannot start the Velocity engine

2009-12-09 Thread Bubulina

Solved it.

in the server, there are written details about the error, and i forgot a
line #end in the macro file . the curios thing was that yesterday even
after i should have had the error, i did not receive one. anyways. a simple
restart after i deleted that line that should have not been there and it
works.

thxs anyways


Bubulina wrote:
 
 Hello, out of the blue, from my point of view..i connect to a local
 instance of xwiki and i get this err: Error number 4001 in 4: Error while
 parsing velocity page Wrapped Exception: Cannot start the Velocity engine
 
 Do you know how to resolve this? has anyone encountered it before?
 Thank you %-|
 

-- 
View this message in context: 
http://n2.nabble.com/Error-number-4001-in-4-Error-while-parsing-velocity-page-Wrapped-Exception-Cannot-start-the-Velocitye-tp4138681p4138835.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] xwiki 2.0 syntax issues

2009-12-04 Thread Bubulina

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 doesif 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.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] simple declare a list in velocity

2009-12-03 Thread Bubulina

hello
this is by far the most easiest thing ... but
i have some data that i want to simple add in a list
#set($dateList = new ArrayList() )
$dateList.add($dateD)


whyyy is this wrong? how do i else declare a list ? cause it does not work
thank you
-- 
View this message in context: 
http://n2.nabble.com/simple-declare-a-list-in-velocity-tp4104854p4104854.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] sort problem or missunderstanding of tool?

2009-12-03 Thread Bubulina

Hello,

So only by using the tools i can use lists and sort right?
this code should work:

$dateList.add($date) //it populates
$sorter.sort($dateList,[${date}:asc]) //does not sort
##Collections.sort($dateList) 
or maybe 
$dateList.sort() //does not work

-- 
View this message in context: 
http://n2.nabble.com/sort-problem-or-missunderstanding-of-tool-tp4106164p4106164.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] sort problem or missunderstanding of tool?

2009-12-03 Thread Bubulina


#foreach($subdoc in $allPages)

#set($suffix = $subdoc.substring(0,3))
#if($suffix == stge)
 tr
 #set($rcDoc = $xwiki.getDocument($subdoc))
   #set($rcDt =
$xwiki.jodatime.getDateTime($rcDoc.getDate().getTime())) 
 #set($documentDate = 
$xwiki.formatDate($rcDt.toDate(), dd/MM/
HH:mm:ss))

$dateList.add($documentDate)
##$dateList
##Collections.sort($dateList)
##$dateList.sort()

$sorter.sort($dateList, 
$msg.get('core.viewers.history.date'))  



td id=date$documentDate/td
td $subdoc $subdoc  /td
tddelete/td
  /tr
#end
#end




vmassol wrote:
 
 
 On Dec 3, 2009, at 2:54 PM, Bubulina wrote:
 

 Hello,

 So only by using the tools i can use lists and sort right?
 this code should work:

 
 Show us the full code. We can't see how you've initialized the  
 dateList array.
 
 $dateList.add($date) //it populates
 $sorter.sort($dateList,[${date}:asc]) //does not sort
 
 What is $sorter?
 
 You could use $sorttool:
 http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/SortTool.html
 
 ##Collections.sort($dateList)
 or maybe
 $dateList.sort() //does not work
 
 Java List class doesn't have such a method! Why would you expect it to  
 work?
 
 See
 http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html
 
 Thanks
 -Vincent
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/sort-problem-or-missunderstanding-of-tool-tp4106164p4106232.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] sort problem or missunderstanding of tool?

2009-12-03 Thread Bubulina

this works:

#foreach ($d in $xwiki.sort($dateList))
td$d/td
#end 


Bubulina wrote:
 
 
 #foreach($subdoc in $allPages)
   
   #set($suffix = $subdoc.substring(0,3))
   #if($suffix == stge)
tr
#set($rcDoc = $xwiki.getDocument($subdoc))
  #set($rcDt =
 $xwiki.jodatime.getDateTime($rcDoc.getDate().getTime())) 
#set($documentDate = 
 $xwiki.formatDate($rcDt.toDate(), dd/MM/
 HH:mm:ss))
 
   $dateList.add($documentDate)
   ##$dateList
   ##Collections.sort($dateList)
   ##$dateList.sort()
   
   $sorter.sort($dateList, 
 $msg.get('core.viewers.history.date'))  
 
 
 
   td id=date$documentDate/td
   td $subdoc $subdoc  /td
   tddelete/td
 /tr
   #end
 #end  
 
 
 
 
 vmassol wrote:
 
 
 On Dec 3, 2009, at 2:54 PM, Bubulina wrote:
 

 Hello,

 So only by using the tools i can use lists and sort right?
 this code should work:

 
 Show us the full code. We can't see how you've initialized the  
 dateList array.
 
 $dateList.add($date) //it populates
 $sorter.sort($dateList,[${date}:asc]) //does not sort
 
 What is $sorter?
 
 You could use $sorttool:
 http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/SortTool.html
 
 ##Collections.sort($dateList)
 or maybe
 $dateList.sort() //does not work
 
 Java List class doesn't have such a method! Why would you expect it to  
 work?
 
 See
 http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html
 
 Thanks
 -Vincent
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 

-- 
View this message in context: 
http://n2.nabble.com/sort-problem-or-missunderstanding-of-tool-tp4106164p4106288.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] get something with indexOf

2009-12-03 Thread Bubulina

#set($count = 0)
#foreach ($d in $xwiki.sort($dateList))
 tr
td$d /td
td $pageList.indexOf[$count] $pageList.indexOf[$count]   /td
tddelete/td
 /tr

#set($count = $count +1)

#end

just want to get the something from a list on the possition $count.
Please tell me what i am doing that wrong?

-- 
View this message in context: 
http://n2.nabble.com/get-something-with-indexOf-tp4106635p4106635.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] get something with indexOf

2009-12-03 Thread Bubulina

evening,
out of curiosity, is it possible to make something, to write a line of code
without the #set( but to not show the result on the page?
for instance:
- if i #set($list = $util.arrayList)
and then
 $list.add($x) -just add x to the list, but in the same time shows true
printed on the page. i would like to avoid this, and still keep the logic?





Asiri Rathnayake wrote:
 
 Hi,
 
 On Thu, Dec 3, 2009 at 8:49 PM, Bubulina nohin...@yahoo.com wrote:
 

 #set($count = 0)
 #foreach ($d in $xwiki.sort($dateList))
 tr
td$d /td
td $pageList.indexOf[$count] $pageList.indexOf[$count]  
 /td
tddelete/td
 /tr

#set($count = $count +1)

 #end

 just want to get the something from a list on the possition $count.
 Please tell me what i am doing that wrong?

 
 Is $pageList a java.util.List instance? If so you should do
 $pageList.get($count) instead.
 
 - Asiri
 
 

 --
 View this message in context:
 http://n2.nabble.com/get-something-with-indexOf-tp4106635p4106635.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/get-something-with-indexOf-tp4106635p4107934.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] printing something or using it in a logic flow

2009-12-03 Thread Bubulina

evening,
out of curiosity, is it possible to make something, to write a line of code
without the #set( but to not show the result on the page?
for instance:
- if i #set($list = $util.arrayList)
and then
 $list.add($x) -just add x to the list, but in the same time shows true
printed on the page. i would like to avoid this, and still keep the logic?
:working:
-- 
View this message in context: 
http://n2.nabble.com/printing-something-or-using-it-in-a-logic-flow-tp4108817p4108817.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] xwiki and jquery

2009-12-02 Thread Bubulina

Hello
Do you know if jquery and xwiki work together? am trying to use the table
sort from jquery and integrated in xwiki i have errors ?
Thank you 
-- 
View this message in context: 
http://n2.nabble.com/xwiki-and-jquery-tp4099718p4099718.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki and jquery

2009-12-02 Thread Bubulina

hello
i checked to see if the files are imported and they are. i see no ideas
towards a sollution at this moment.
i am using now the sortable and filtering from xwiki. tablefilterNsort.js
i can see the sorting is made automatic by the name . i wanted to make it
implicit by another column...looked into the sources...very difficult to
debug. has variables with the names: A,B,C
can you please give me a hint as to how to change the column that is
implicit when sorting?
thank you

vmassol wrote:
 
 Hi,
 
 On Dec 2, 2009, at 2:10 PM, Bubulina wrote:
 

 Hello
 Do you know if jquery and xwiki work together? am trying to use the  
 table
 sort from jquery and integrated in xwiki i have errors ?
 
 AFAIK the only issue is to make prototype and jquery work together but  
 that's doable. See for ex;
 http://docs.jquery.com/Using_jQuery_with_Other_Libraries
 
 You could also check the mail archives, maybe there are answers there:
 http://xwiki.markmail.org/search/?q=jquery
 
 Thanks
 -Vincent
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/xwiki-and-jquery-tp4099718p4099963.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] copy a Class into a space

2009-11-24 Thread Bubulina

Evening, or at least here is starting to be late... :)
i am stuck at an issue here. is there a way to copy for instance(from the
ValidationSample.xar...the formulary...)  the ValidationSampleCode[0] into
anothe space, as a class to a page in that page.
so if the class has 3 properties...string textarea number, then these to be
copied in a clone class .
ex:
page Val1 has the ValidationSample.ValidationSampleCode[0] attached
i want for the page TestPage(from another space) to have the
TestSpace.TestPageClass[0] attached to it.(this TestSpace.TestPageClass[0]
to be a clone of another class obj).
am i making any sense here for you
-- 
View this message in context: 
http://n2.nabble.com/copy-a-Class-into-a-space-tp4061342p4061342.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] copy a Class into a space

2009-11-24 Thread Bubulina

hmm didn't work. 
still thinking about it


Guillaume Lerouge wrote:
 
 Hi Bubulina,
 
 On Tue, Nov 24, 2009 at 10:30 PM, Bubulina nohin...@yahoo.com wrote:
 

 Evening, or at least here is starting to be late... :)
 i am stuck at an issue here. is there a way to copy for instance(from the
 ValidationSample.xar...the formulary...)  the ValidationSampleCode[0]
 into
 anothe space, as a class to a page in that page.
 so if the class has 3 properties...string textarea number, then these to
 be
 copied in a clone class .
 ex:
 page Val1 has the ValidationSample.ValidationSampleCode[0] attached
 i want for the page TestPage(from another space) to have the
 TestSpace.TestPageClass[0] attached to it.(this
 TestSpace.TestPageClass[0]
 to be a clone of another class obj).
 am i making any sense here for you

 
 Not sure if this will help you, but maybe you can use the following:
 
 http://server/xwiki/bin/edit/Space1/SomePage?template=Space2.AnotherPage
 
 where Space2.AnotherPage is the name of the document holding the
 original ValidationSample.ValidationSampleCode[0] object attached.
 
 Please try it out and let us know whether it addresses your use case.
 
 Guillaume
 
 
 --
 View this message in context:
 http://n2.nabble.com/copy-a-Class-into-a-space-tp4061342p4061342.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

 
 
 
 -- 
 Guillaume Lerouge
 Product Manager - XWiki SAS
 Skype: wikibc
 Twitter: glerouge
 http://guillaumelerouge.com/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/copy-a-Class-into-a-space-tp4061342p4061529.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] copy a Class into a space

2009-11-24 Thread Bubulina

the messy scenario that i have in my mind right now is to look for the
existing velocity code to add properties to the class in a dynamic way. all
of this logic to happend when i create a page in the space. sounds time
consuming and don't even know how to to make it yet. %-|



Bubulina wrote:
 
 hmm didn't work. 
 still thinking about it
 
 
 Guillaume Lerouge wrote:
 
 Hi Bubulina,
 
 On Tue, Nov 24, 2009 at 10:30 PM, Bubulina nohin...@yahoo.com wrote:
 

 Evening, or at least here is starting to be late... :)
 i am stuck at an issue here. is there a way to copy for instance(from
 the
 ValidationSample.xar...the formulary...)  the ValidationSampleCode[0]
 into
 anothe space, as a class to a page in that page.
 so if the class has 3 properties...string textarea number, then these to
 be
 copied in a clone class .
 ex:
 page Val1 has the ValidationSample.ValidationSampleCode[0] attached
 i want for the page TestPage(from another space) to have the
 TestSpace.TestPageClass[0] attached to it.(this
 TestSpace.TestPageClass[0]
 to be a clone of another class obj).
 am i making any sense here for you

 
 Not sure if this will help you, but maybe you can use the following:
 
 http://server/xwiki/bin/edit/Space1/SomePage?template=Space2.AnotherPage
 
 where Space2.AnotherPage is the name of the document holding the
 original ValidationSample.ValidationSampleCode[0] object attached.
 
 Please try it out and let us know whether it addresses your use case.
 
 Guillaume
 
 
 --
 View this message in context:
 http://n2.nabble.com/copy-a-Class-into-a-space-tp4061342p4061342.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

 
 
 
 -- 
 Guillaume Lerouge
 Product Manager - XWiki SAS
 Skype: wikibc
 Twitter: glerouge
 http://guillaumelerouge.com/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 

-- 
View this message in context: 
http://n2.nabble.com/copy-a-Class-into-a-space-tp4061342p4061547.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Changing the logo

2009-11-24 Thread Bubulina

hello Maria,
I don't think this is a normal behaviour. 
1. try adding the logo exactly in the skin folder that u are using
2. if you don't know what skin u are using or wanna choose a different one
try adding the logo in the desired skin (from the folder skins..in the xwiki
sources)choose albatross or toucan or etc and inside place the logo.
then in the xwiki administrattion - presentation...go down the page and
choose customize the skin. then edit the skin ...scroll down and write
the name of the skin and then save. refresh and see the result
hope it's oke



Maria Carolina Ramirez wrote:
 
 Hi everyone!
 
  
 
 I just change the logo of my xwiki but I don't  why, when the page is
 loading, it takes several seconds loading the image. I followed the
 instructions below:
 
  
 
 * Choose an existing image or create a new one
 * Resize it so that it is 220 pixels wide and 80 pixels high
 * Save it as a PNG file and name it logo.png
 * Upload the image as an attachment in /
 xwiki/bin/view/XWiki/DefaultSkin
 
 So, I want to know if this is the normal behavior.
 
  
 
 Thanks in advance!
 
 MCR
 
  
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Changing-the-logo-tp4061570p4061606.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] restrict the panel to appear on some pages in xwiki

2009-11-23 Thread Bubulina

hello,
is it any way(in theory anyway) to show a panel on some pages and on others
to don't ? so to restrict the access of it in some places in xwiki?
thank you
-- 
View this message in context: 
http://n2.nabble.com/restrict-the-panel-to-appear-on-some-pages-in-xwiki-tp4056240p4056240.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] xwiki skin changes out of the blue?

2009-11-20 Thread Bubulina

Hello
i am most amazed since yesterday regarding xwiki and the very weird changes
of skin, as a result of an editing a simple page, or editing a panel.
i have no logical explanation to this. I just edited an existing panel(added
a few normal links for pages from the wiki pages) AND my surprise was that
on viewing the pages i got myself a different color of skin.
yesterday, on another wiki(different computer. nothing to connect them) i
edited a page and got a differnet skin. 
does anyone from the developers know anything about this? it cannot just
happend to me twice :D
Looking forward to discussing this.
Thank you.
-- 
View this message in context: 
http://n2.nabble.com/xwiki-skin-changes-out-of-the-blue-tp4037604p4037604.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] how to declare in a js script that the editor can have more than one id

2009-11-11 Thread Bubulina

Hello,
I found this link :
http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule. It is an
useful one, but if i wanna edit more than one html element(in this case
textarea that has the id=demo) then it does now what to do.
i tried making an array of hookedIds but that does not help either.
my case scenario is something like this:
i have a table with multiple input type=text .. or textarea . they are
grouped in a table(which had an id..thinking that if all elements are
integrated in an table that has an id i am doing a step forward..quess not).
each field has an id because when i press Edit i wanna edit all those
elements from the table, except some labels lets say. So, folowing the
example from the link above i tried, made a table, created input types and
labels. just like a normal table. i gave ids to all the elements that i
wanna edit later on. then when i call the editor on load in javascript, i
have this variable there:hookId. this one can receive only one id?. my scope
is to add as many ids as i need to so that when i press the edit button to
be ablet to edit those   

this is a long shot, but it's my best idea yet. if you think there is
something wrong in the logic, please tell me. did anybody ran into such
stuff? 
thank you
-- 
View this message in context: 
http://n2.nabble.com/how-to-declare-in-a-js-script-that-the-editor-can-have-more-than-one-id-tp3985102p3985102.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] edit section of page with ajax

2009-11-10 Thread Bubulina

Hello,
was wondering if there already is something done regarding editing a page or
section of a page using ajax.(a popup to appear and hightlight only the
section selected for editing). i found this link:
http://lists.xwiki.org/pipermail/devs/2006-June/001211.html  but the urls
inside of it are closed.
Thank you
-- 
View this message in context: 
http://n2.nabble.com/edit-section-of-page-with-ajax-tp3978318p3978318.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] editor with preloaded data

2009-11-10 Thread Bubulina

hello
i am trying to understand how the edit a page works, how does it
know(where is sending the request) to preload the data of the page in the
editor(wysiwyg). If the developers take a look on this topic, please give me
a trail to follow. the flow at least . thank you
-- 
View this message in context: 
http://n2.nabble.com/editor-with-preloaded-data-tp3979819p3979819.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] declare sections in the page

2009-11-09 Thread Bubulina

Hello
i saw some posts here for defining page sections.
(http://n2.nabble.com/some-questions-concerning-editing-pages-more-specific-section-behaviour-XWiki-1-8M1-td2197026.html#a2197026)
what i did and fail apparently was: have some tables in a page and i wanted
to define each table as a section, so that when to edit, the user cand edit
just the specific table he wants to. not the hole part.
so i created for test 2 tables with titles:
1. section 1
..the actual table
1.1 section 2
..the actual table
but the sections weren't created.
Is there any documentation for this, please?
Thank you
-- 
View this message in context: 
http://n2.nabble.com/declare-sections-in-the-page-tp3973361p3973361.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] can i hide the right panel of the template for a specific space only?

2009-10-15 Thread Bubulina

hello,
can i delete(hide) the right panel of a template from a space that i
specify? i know how to hide the right panel from the entire xwiki, but i
need to hide it only for a certain space. 
Any ideas would be appreciated. Thank you
-- 
View this message in context: 
http://n2.nabble.com/can-i-hide-the-right-panel-of-the-template-for-a-specific-space-only-tp3830772p3830772.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users