[xwiki-users] Lyrebird skin (doesn't work)

2012-07-24 Thread Nicolas Sanitas
Hello all,

I am very enthusiast about using the Lyrebird skin.

I downloaded the XAR, imported it in my wiki. But unfortunately
nothing happen when I enter 'Lyrebird' in the field where we have to
set the skin. Nor when I add skin=Lyrebird in the parameters of my
query...

Could anyone help in setting this skin in my wiki?!

Thanks for your help,

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


Re: [xwiki-users] Lyrebird skin (doesn't work)

2012-07-24 Thread Vincent Massol
Hi Nicolas,

On Jul 24, 2012, at 10:50 AM, Nicolas Sanitas wrote:

 Hello all,
 
 I am very enthusiast about using the Lyrebird skin.
 
 I downloaded the XAR, imported it in my wiki. But unfortunately
 nothing happen when I enter 'Lyrebird' in the field where we have to
 set the skin. Nor when I add skin=Lyrebird in the parameters of my
 query…

You need to put the full name of the Lyrebird skin page.

I don't recall what it is, something like Lyrebird.LyrebirdSkin or 
XWiki.LyrebirdSkin
You can search for LyrebirdSkin page in your wiki.

Hope it helps,
-Vincent

 
 Could anyone help in setting this skin in my wiki?!
 
 Thanks for your help,
 
 Nicolas
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Adding link to file on local area network

2012-07-24 Thread Arioch
 file:///C:\path\to\resource\Instructions.txt 

that is broken path.

DOS used slash for command line options instead of dash on traditional
systems.

So when folders were aadded to later DOs versions, they had to use
back-slashes.
But outside of DOS-Win-OS/2 world the regular slashes are used still.

Try converting all the back-slashes into proper ones.

Also read https://www.google.com/?q=backslash+string+escaping+c
I think your string just contained non-printable special code as a result of
wrong slashes used.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Adding-link-to-file-on-local-area-network-tp7580466p7580483.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] Lyrebird skin (doesn't work)

2012-07-24 Thread Nicolas Sanitas
Hi Vincent,
Thx for your quick answer.

Unfortunately I don't have any LyrebirdSkin page... :-/
Only:
- (XWiki.)Lyrebird/Configuration
- (XWiki.)Lyrebird/ConfigurationClass
- (XWiki.)Lyrebird/WebHome

- is it normal!?


2012/7/24 Vincent Massol vinc...@massol.net:
 Hi Nicolas,

 On Jul 24, 2012, at 10:50 AM, Nicolas Sanitas wrote:

 Hello all,

 I am very enthusiast about using the Lyrebird skin.

 I downloaded the XAR, imported it in my wiki. But unfortunately
 nothing happen when I enter 'Lyrebird' in the field where we have to
 set the skin. Nor when I add skin=Lyrebird in the parameters of my
 query…

 You need to put the full name of the Lyrebird skin page.

 I don't recall what it is, something like Lyrebird.LyrebirdSkin or 
 XWiki.LyrebirdSkin
 You can search for LyrebirdSkin page in your wiki.

 Hope it helps,
 -Vincent


 Could anyone help in setting this skin in my wiki?!

 Thanks for your help,

 Nicolas
 ___
 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


[xwiki-users] wysywig: link creating dialog

2012-07-24 Thread Arioch
on 1st page of it, the only button right bottom corner, is it to be Select
as in Choose, rather than Select as in pick ?

Guess russian l18n is wrong there



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/wysywig-link-creating-dialog-tp7580485.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] Lyrebird skin (doesn't work)

2012-07-24 Thread Jerome Velociter
Hi Nicolas,

Sorry for the late reply,

Skin's name is lyrebird all in lowercase (same as the folder under skins/
in the webapp).

Let us know if this works for you.

Thanks,
Jerome.

On Tue, Jul 24, 2012 at 10:50 AM, Nicolas Sanitas nicolas.sani...@intech.lu
 wrote:

 Hello all,

 I am very enthusiast about using the Lyrebird skin.

 I downloaded the XAR, imported it in my wiki. But unfortunately
 nothing happen when I enter 'Lyrebird' in the field where we have to
 set the skin. Nor when I add skin=Lyrebird in the parameters of my
 query...

 Could anyone help in setting this skin in my wiki?!

 Thanks for your help,

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




-- 
Jérôme Velociter
Winesquare
http://www.winesquare.net/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Lyrebird skin (doesn't work)

2012-07-24 Thread Nicolas Sanitas
It works now.
Thx to you both!

2012/7/24 Jerome Velociter jer...@winesquare.net:
 Hi Nicolas,

 Sorry for the late reply,

 Skin's name is lyrebird all in lowercase (same as the folder under skins/
 in the webapp).

 Let us know if this works for you.

 Thanks,
 Jerome.

 On Tue, Jul 24, 2012 at 10:50 AM, Nicolas Sanitas nicolas.sani...@intech.lu
 wrote:

 Hello all,

 I am very enthusiast about using the Lyrebird skin.

 I downloaded the XAR, imported it in my wiki. But unfortunately
 nothing happen when I enter 'Lyrebird' in the field where we have to
 set the skin. Nor when I add skin=Lyrebird in the parameters of my
 query...

 Could anyone help in setting this skin in my wiki?!

 Thanks for your help,

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




 --
 Jérôme Velociter
 Winesquare
 http://www.winesquare.net/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



-- 
Nicolas SANITAS
InTech S.A.
17-19 avenue de la Libération
L-3850 Schifflange - LUXEMBOURG
Tél : +352 53 11 53
Fax : +352 53 15 93
nicolas.sani...@intech.lu
MeetMe: Doodle

Les informations contenues dans cet email peuvent être confidentielles
ou protégées par des lois en vigueur. Elles sont à l'attention des
destinataires uniquement. Les données nominatives éventuelles ne
peuvent être communiquées à des tiers par le récepteur de cet email.
Si vous n'êtes pas le destinataire principal, ni un des destinataires
placés en copie, la divulgation, la copie, la diffusion ou toute autre
utilisation de cet email est prohibée et peut être illégale. Dans ce
cas, merci d'avertir l'émetteur immédiatement et de détruire cet
email.

Please consider the environment before printing this email.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Lyrebird skin (doesn't work)

2012-07-24 Thread Nicolas Sanitas
ps: this skin rocks!
I encourage you in keeping it alive: it answers to the needs of
'simple' site/wiki

2012/7/24 Nicolas Sanitas nicolas.sani...@intech.lu:
 It works now.
 Thx to you both!

 2012/7/24 Jerome Velociter jer...@winesquare.net:
 Hi Nicolas,

 Sorry for the late reply,

 Skin's name is lyrebird all in lowercase (same as the folder under skins/
 in the webapp).

 Let us know if this works for you.

 Thanks,
 Jerome.

 On Tue, Jul 24, 2012 at 10:50 AM, Nicolas Sanitas nicolas.sani...@intech.lu
 wrote:

 Hello all,

 I am very enthusiast about using the Lyrebird skin.

 I downloaded the XAR, imported it in my wiki. But unfortunately
 nothing happen when I enter 'Lyrebird' in the field where we have to
 set the skin. Nor when I add skin=Lyrebird in the parameters of my
 query...

 Could anyone help in setting this skin in my wiki?!

 Thanks for your help,

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




 --
 Jérôme Velociter
 Winesquare
 http://www.winesquare.net/
 ___
 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


Re: [xwiki-users] Lyrebird skin (doesn't work)

2012-07-24 Thread Paul Libbrecht
Nicolas, make a video and send it around!
For me it can also be in french or german...

paul


Le 24 juil. 2012 à 13:10, Nicolas Sanitas a écrit :

 ps: this skin rocks!
 I encourage you in keeping it alive: it answers to the needs of
 'simple' site/wiki
 
 2012/7/24 Nicolas Sanitas nicolas.sani...@intech.lu:
 It works now.
 Thx to you both!
 
 2012/7/24 Jerome Velociter jer...@winesquare.net:
 Hi Nicolas,
 
 Sorry for the late reply,
 
 Skin's name is lyrebird all in lowercase (same as the folder under skins/
 in the webapp).
 
 Let us know if this works for you.
 
 Thanks,
 Jerome.
 
 On Tue, Jul 24, 2012 at 10:50 AM, Nicolas Sanitas nicolas.sani...@intech.lu
 wrote:
 
 Hello all,
 
 I am very enthusiast about using the Lyrebird skin.
 
 I downloaded the XAR, imported it in my wiki. But unfortunately
 nothing happen when I enter 'Lyrebird' in the field where we have to
 set the skin. Nor when I add skin=Lyrebird in the parameters of my
 query...
 
 Could anyone help in setting this skin in my wiki?!
 
 Thanks for your help,
 
 Nicolas
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
 --
 Jérôme Velociter
 Winesquare
 http://www.winesquare.net/
 ___
 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


Re: [xwiki-users] using JSON (how?)

2012-07-24 Thread Jerome Velociter
Hi,

On Mon, Jul 23, 2012 at 2:11 PM, Nicolas Sanitas
nicolas.sani...@intech.luwrote:

 Hi there,

 we have to parse and generate JSON in our code; we wonder wich is the
 bast way/language (Velocity or Groovy) to do that in XWiki?


There is a JSON tool in velocity to do the serializing part :
https://raw.github.com/xwiki/xwiki-commons/master/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/JSONTool.java

You could propose a patch to add simple Map parsing based on net.sf.json.

In groovy, you have the native JsonBuilder and JsonSlurpers to perform this
kind of things.

Cheers,
Jerome


 Thx by advance,
 Nicolas
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Jérôme Velociter
Winesquare
http://www.winesquare.net/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] using JSON (how?)

2012-07-24 Thread Nicolas Sanitas
Thank you Jérôme.

We've used JsonBuilder and JsonSlurpers (Groovy), and everything goes fine!

2012/7/24 Jerome Velociter jer...@winesquare.net:
 Hi,

 On Mon, Jul 23, 2012 at 2:11 PM, Nicolas Sanitas
 nicolas.sani...@intech.luwrote:

 Hi there,

 we have to parse and generate JSON in our code; we wonder wich is the
 bast way/language (Velocity or Groovy) to do that in XWiki?


 There is a JSON tool in velocity to do the serializing part :
 https://raw.github.com/xwiki/xwiki-commons/master/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/JSONTool.java

 You could propose a patch to add simple Map parsing based on net.sf.json.

 In groovy, you have the native JsonBuilder and JsonSlurpers to perform this
 kind of things.

 Cheers,
 Jerome


 Thx by advance,
 Nicolas
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




 --
 Jérôme Velociter
 Winesquare
 http://www.winesquare.net/
 ___
 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


[xwiki-users] Search suggest in Lyrebird

2012-07-24 Thread mathieu.canzerini
Hello everyone,

I installed the Lyrebird Skin and i would like to know if it's possible
to have the Search Suggest application in the top bar (as colibri) ? 

Thanks

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


[xwiki-users] evaluate programming rights?

2012-07-24 Thread Paul Libbrecht

Hello XWiki ers,

on #xwiki, Sergiu was kind enough to indicate that my current bug, the fact 
that $!xwiki.getXWiki().Param(...) returns empty is a programming rights issue: 
the problem seems to be that the resource page, whose rendering is entirely 
made outside of the wiki-page-content.

And I could verify that by having, in all pages where the above is empty, an 
output that of $doc.hasProgrammingRight() which is false.

Question 1: how can I evaluate that another page has programming rights?

Question 2: is there a way to give programming rights to everything in a space? 
to all code in included .vm files?

thanks in advance

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


Re: [xwiki-users] Search suggest in Lyrebird

2012-07-24 Thread Jerome Velociter

Hello Mathieu,

I haven't got there yet, but that should be possible and not too 
complex. It's a matter of adding the right JavaScript files and styling 
the suggest component with bootstrap.css styles.


Jonathan is going to work on this for his xorange skin for the GSoC. 
When he get there I'll look at it and try to find the time to do the 
same in Lyrebird.


Peace,
--Jerome

On 07/24/2012 04:53 PM, mathieu.canzer...@intech.lu wrote:

Hello everyone,

I installed the Lyrebird Skin and i would like to know if it's possible
to have the Search Suggest application in the top bar (as colibri) ?

Thanks

Mathieu
___
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


[xwiki-users] Floating panel

2012-07-24 Thread Yann Gensollen
hello

I have seen a post on this subject. But is there something downlable for
it? Thanks
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Mysql Configuration problem

2012-07-24 Thread raav2012
Any ideas? Thanks in advance.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Mysql-Configuration-problem-tp7580467p7580504.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] Annotations on content in AppsWithinMinutes

2012-07-24 Thread David Baltusavich
I have developed a simple glossary app for my XWiki instance.

Everything works great until I try to add an Annotation to the page,
generally on content that is a TextArea type.  As soon as I save the
annotation, all of the fields of the app immediately disappear.

They won't re-appear until I delete the Annotation.

What am I missing?  Does my TextArea have to somehow link to
the AnnotationClass?

Sorry if this is a newbie question; I'm just getting started with XWiki.

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


Re: [xwiki-users] Search suggest in Lyrebird

2012-07-24 Thread Paul Libbrecht
Maybe it'd be the opportunity to join with Savitha's GSoC?
auto-suggest is one of the features of solr and it would be best if the solr 
performance can be leveraged well into there.

paul


Le 24 juil. 2012 à 17:49, Jerome Velociter a écrit :

 Hello Mathieu,
 
 I haven't got there yet, but that should be possible and not too complex. 
 It's a matter of adding the right JavaScript files and styling the suggest 
 component with bootstrap.css styles.
 
 Jonathan is going to work on this for his xorange skin for the GSoC. When he 
 get there I'll look at it and try to find the time to do the same in Lyrebird.
 
 Peace,
 --Jerome
 
 On 07/24/2012 04:53 PM, mathieu.canzer...@intech.lu wrote:
 Hello everyone,
 
 I installed the Lyrebird Skin and i would like to know if it's possible
 to have the Search Suggest application in the top bar (as colibri) ?
 
 Thanks
 
 Mathieu
 ___
 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


Re: [xwiki-users] Annotations on content in AppsWithinMinutes

2012-07-24 Thread Ludovic Dubost
This is a known bug , which is not yet fixed. The new sheet system used in app 
within minutes requires that some adaptations are made in the annotation system

Ludovic 

Envoyé de mon iPhone

Le 24 juil. 2012 à 20:46, David Baltusavich da...@synatree.com a écrit :

 I have developed a simple glossary app for my XWiki instance.
 
 Everything works great until I try to add an Annotation to the page,
 generally on content that is a TextArea type.  As soon as I save the
 annotation, all of the fields of the app immediately disappear.
 
 They won't re-appear until I delete the Annotation.
 
 What am I missing?  Does my TextArea have to somehow link to
 the AnnotationClass?
 
 Sorry if this is a newbie question; I'm just getting started with XWiki.
 
 David
 ___
 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


Re: [xwiki-users] Annotations on content in AppsWithinMinutes

2012-07-24 Thread David Baltusavich
If I don't use the AppWithinMinutes feature to create the glossary, and
instead write it from scratch, will Annotations work then?

Thanks,

David Baltusavich
--

http://www.synatree.com
1001 State Street, Suite 1123
Erie, PA 16501
(814) 422-5887
(321) 800-8733



On Tue, Jul 24, 2012 at 3:18 PM, Ludovic Dubost ludo...@xwiki.com wrote:

 This is a known bug , which is not yet fixed. The new sheet system used in
 app within minutes requires that some adaptations are made in the
 annotation system

 Ludovic

 Envoyé de mon iPhone

 Le 24 juil. 2012 à 20:46, David Baltusavich da...@synatree.com a écrit :

  I have developed a simple glossary app for my XWiki instance.
 
  Everything works great until I try to add an Annotation to the page,
  generally on content that is a TextArea type.  As soon as I save the
  annotation, all of the fields of the app immediately disappear.
 
  They won't re-appear until I delete the Annotation.
 
  What am I missing?  Does my TextArea have to somehow link to
  the AnnotationClass?
 
  Sorry if this is a newbie question; I'm just getting started with XWiki.
 
  David
  ___
  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


Re: [xwiki-users] Annotations on content in AppsWithinMinutes

2012-07-24 Thread Ludovic Dubost
Yes as long as you don't use the new sheet system, the HTML macro and use 
$doc.getValue to display your glossary fields that you want to be annotable. 
It's a few limitations we know but there are some goods reasons for that

Envoyé de mon iPhone

Le 24 juil. 2012 à 23:41, David Baltusavich da...@synatree.com a écrit :

 If I don't use the AppWithinMinutes feature to create the glossary, and
 instead write it from scratch, will Annotations work then?
 
 Thanks,
 
 David Baltusavich
 --
 
 http://www.synatree.com
 1001 State Street, Suite 1123
 Erie, PA 16501
 (814) 422-5887
 (321) 800-8733
 
 
 
 On Tue, Jul 24, 2012 at 3:18 PM, Ludovic Dubost ludo...@xwiki.com wrote:
 
 This is a known bug , which is not yet fixed. The new sheet system used in
 app within minutes requires that some adaptations are made in the
 annotation system
 
 Ludovic
 
 Envoyé de mon iPhone
 
 Le 24 juil. 2012 à 20:46, David Baltusavich da...@synatree.com a écrit :
 
 I have developed a simple glossary app for my XWiki instance.
 
 Everything works great until I try to add an Annotation to the page,
 generally on content that is a TextArea type.  As soon as I save the
 annotation, all of the fields of the app immediately disappear.
 
 They won't re-appear until I delete the Annotation.
 
 What am I missing?  Does my TextArea have to somehow link to
 the AnnotationClass?
 
 Sorry if this is a newbie question; I'm just getting started with XWiki.
 
 David
 ___
 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Writing JS with Velocity

2012-07-24 Thread David Baltusavich
Ok, that works great.

So I'm hoping to wire up this Glossary App plus the JSON to a highlighting
script written in JS, the idea is that the words that appear in the
glossary will be highlighted on any wiki page in which they appear.  Not
knowing much about velocity at all, I figured this could be implemented by
parsing the body of the wiki content in search of any matching
words/phrases, and mark them up with abbr tags, tooltips, etc.  In order
for this to work I need to be able to add some custom JS to each page on
the wiki, which I am guessing I can do by modifying the skin, and using
your helpful link trick to load the latest JSON into my highlighting script.

Ludovic, since you are obviously intimately familiar with XWiki, is there a
better (server-side) way to achieve a glossary or acronym database
functionality?  Again I'm looking to dynamically add links to existing wiki
content based on a set of words and definitions that appear in an XWiki app.

If not, the JS method should work fine but of course the parse operation
has to happen on every page load, which is inefficient.

Yours,

David Baltusavich
--

http://www.synatree.com
1001 State Street, Suite 1123
Erie, PA 16501
(814) 422-5887
(321) 800-8733



On Tue, Jul 24, 2012 at 7:15 PM, Ludovic Dubost ludo...@xwiki.com wrote:

 Add ?xpage=plainoutputSyntax=plain to your URL

 Envoyé de mon iPhone

 Le 25 juil. 2012 à 00:06, David Baltusavich da...@synatree.com a écrit :

  Another newbie question, I'm afraid.
 
  I have a simple Glossary application that I've written, and I've managed
 to
  figure out how to write a velocity script to retrieve all of the glossary
  terms and put them into a JSON array.  The problem is, the velocity
 script
  output is being html encoded and sent to the browser as text, including
 the
  enclosing script blocks.  If I wrap the whole thing in {{html}} macro
  calls, the velocity script doesn't run. If I just enclose the script
  opening and closing tags in their own {{html}} macro call, the calls
 fail.
 
  What am I missing here?  How do I get velocity script to render as
 HTML/JS?
 
  Yours,
 
  David Baltusavich
  --
 
  http://www.synatree.com
  1001 State Street, Suite 1123
  Erie, PA 16501
  (814) 422-5887
  (321) 800-8733
  ___
  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


Re: [xwiki-users] Writing JS with Velocity

2012-07-24 Thread Paul Libbrecht
David,

have you looked at JSX?
I do not know it well but I think that's an easier way to do thing than 
modifying the skin. I believe you can embed additional JS for a page or for the 
pages of a space by adding particular objects to pages.

paul


Le 25 juil. 2012 à 05:54, David Baltusavich a écrit :

 Ok, that works great.
 
 So I'm hoping to wire up this Glossary App plus the JSON to a highlighting
 script written in JS, the idea is that the words that appear in the
 glossary will be highlighted on any wiki page in which they appear.  Not
 knowing much about velocity at all, I figured this could be implemented by
 parsing the body of the wiki content in search of any matching
 words/phrases, and mark them up with abbr tags, tooltips, etc.  In order
 for this to work I need to be able to add some custom JS to each page on
 the wiki, which I am guessing I can do by modifying the skin, and using
 your helpful link trick to load the latest JSON into my highlighting script.
 
 Ludovic, since you are obviously intimately familiar with XWiki, is there a
 better (server-side) way to achieve a glossary or acronym database
 functionality?  Again I'm looking to dynamically add links to existing wiki
 content based on a set of words and definitions that appear in an XWiki app.
 
 If not, the JS method should work fine but of course the parse operation
 has to happen on every page load, which is inefficient.
 
 Yours,
 
 David Baltusavich
 --
 
 http://www.synatree.com
 1001 State Street, Suite 1123
 Erie, PA 16501
 (814) 422-5887
 (321) 800-8733
 
 
 
 On Tue, Jul 24, 2012 at 7:15 PM, Ludovic Dubost ludo...@xwiki.com wrote:
 
 Add ?xpage=plainoutputSyntax=plain to your URL
 
 Envoyé de mon iPhone
 
 Le 25 juil. 2012 à 00:06, David Baltusavich da...@synatree.com a écrit :
 
 Another newbie question, I'm afraid.
 
 I have a simple Glossary application that I've written, and I've managed
 to
 figure out how to write a velocity script to retrieve all of the glossary
 terms and put them into a JSON array.  The problem is, the velocity
 script
 output is being html encoded and sent to the browser as text, including
 the
 enclosing script blocks.  If I wrap the whole thing in {{html}} macro
 calls, the velocity script doesn't run. If I just enclose the script
 opening and closing tags in their own {{html}} macro call, the calls
 fail.
 
 What am I missing here?  How do I get velocity script to render as
 HTML/JS?
 
 Yours,
 
 David Baltusavich
 --
 
 http://www.synatree.com
 1001 State Street, Suite 1123
 Erie, PA 16501
 (814) 422-5887
 (321) 800-8733
 ___
 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

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