Re: [xwiki-users] Numbered Sections

2013-01-04 Thread Jeremie BOUSQUET
Hi,

There's an extension (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Numbered+Headings),
but it's only css.

Br,
Jeremie
Le 4 janv. 2013 03:44, Jinyan Su xia...@sujinyan.com a écrit :

 Hi. I'm running XWiki Enterprise 4.1.3.

 I thought that there was a way to turn on Numbered Sections, but haven't
 been able to find it.


 Thanks

 --Robs
 ___
 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] Migrating from Redmine

2013-01-04 Thread Thomas Mortagne
On Thu, Jan 3, 2013 at 9:45 PM, Pape, Barry barry.p...@nov.com wrote:
 Hello Everyone,

 I just launched a new Xwiki site, and one of our groups has a Redmine wiki 
 they would like to migrate to the new Xwiki site.  Is there a utility that I 
 can use to do this?  If not, any suggestions on how I could go about this 
 migration?

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

I don't know any Redmine importer for XWiki but there is several
importers for other wikis (mostly mediawiki and dokuwiki) on
http://extension.xwiki.org from which you could probably start to
write a Redmine importer.

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


[xwiki-users] Could not synchronize database state with session

2013-01-04 Thread Florian Kessler
Hi Everyone,

I was just trying to upgrade from 3.0.1 to 4.4. as I figured I can't save 
XWikiPreferences anymore:


13:07:17,307 
[http://0x64plusxwiki.local.0x64plus.de:8080/xwiki/bin/saveandcontinue/XWiki/XWikiPreferences]
 
[http://0x64plusxwiki.local.0x64plus.de:8080/xwiki/bin/save/XWiki/XWikiPreferences]
 ERROR .AbstractFlushingEventListener  - Could not synchronize database state 
with session 
org.hibernate.StaleObjectStateException: Row was updated or deleted by another 
transaction (or unsaved-value mapping was incorrect): 
[com.xpn.xwiki.objects.IntegerProperty#?xml version=1.0 encoding=UTF-8?

showcomments/showcomments
]
at 
org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1769)
…



Is there any way to fix this?
Or force the save of my current XWikiPreferences?

Thanks in advance,
Florian
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Multiple FAQ Spaces/Pages?

2013-01-04 Thread pkirill
Using the FAQ Application
(http://extensions.xwiki.org/xwiki/bin/view/Extension/FAQ+Application), I
cannot seem to figure out how (or if it is possible) to set up multiple FAQ
Spaces. When I install this application, it creates a couple of spaces FAQ
and FAQCode - with FAQ being the actual FAQ Space. What I need to create
is a General FAQ for the site and for the company, and another that deals
with just Technology.  So I would have General FAQ and Technology FAQ
for example.

Any thoughts on how to do this?

Thanks for any assistance! 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Multiple-FAQ-Spaces-Pages-tp7583099.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] Linking to different sections of one page from another?

2013-01-04 Thread xrichard
Hello,

To ease navigation in big wiki pages, I'm using links to anchors heading
automaticly generated by xwiki. The drawback is that if the heading title
change, the previous created link is broken.

Is there any solution to avoid this drawback ?

And happy new year to all xwiki community members, 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Linking-to-different-sections-of-one-page-from-another-tp6422716p7583100.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] getDocumentAsAuthor doesn't work in attempt to read a page from velocity

2013-01-04 Thread Haru
 Hi!

I'm trying to develop a simple script for followng scenario:
- Registered User receives an access code to the restricted Space
- User fills in access code and access is granted to him.

Following test code is used for tests now (no codes involved yet):
 
{{velocity}}

#set ($mydoc = $xwiki.getDocumentAsAuthor(Week1.WebPreferences))
#set ($rightsObject = $mydoc.newObject(XWiki.XWikiGlobalRights))

## Set the values of the fields
#set ($result1 = $rightsObject.set(groups, XWiki.XWikiAdminGroup))
#set ($result2 = $rightsObject.set(levels, view,comment,edit))
#set ($result3 = $rightsObject.set(users, $xcontext.getUser()))
#set ($result4 = $rightsObject.set(allow, 1))

$mydoc.save()

{{velocity}}

The problem is: it works only if user alredy has access rights to the 
Week1.WebPreferences, if not (as desired by scenario)

#set ($mydoc = $xwiki.getDocumentAsAuthor(Week1.WebPreferences))

gives Access denied error. The page with this velocity scripting is saved with 
programming rights user.

What is wrong?

I'd highly appreciate if anyone point the direction :-)


Kind regards,

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


Re: [xwiki-users] [myxwiki] new wiki request

2013-01-04 Thread xrichard
Hello,

I hope admins are back from vacation  so I send again my holiday request :

- My MyXWiki.org's user name: xrichard
- Description of the Wiki: first level tutorials on Windows, Android, Ubuntu
and maybe more
- Server Name for this new wiki: tutos 

Thanks for your answer, best regards,



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/myxwiki-new-wiki-request-tp7583032p7583101.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] Linking to different sections of one page from another?

2013-01-04 Thread Haru
 Hi!

Yes, put your own anchors by ID macro :-)
It's a bit more work to do, but sometimes it is very useful.


Пятница,  4 января 2013, 7:58 -08:00 от xrichard ldm...@gmail.com:
Hello,

To ease navigation in big wiki pages, I'm using links to anchors heading
automaticly generated by xwiki. The drawback is that if the heading title
change, the previous created link is broken.

Is there any solution to avoid this drawback ?

And happy new year to all xwiki community members, 



--
View this message in context:  
http://xwiki.475771.n2.nabble.com/Linking-to-different-sections-of-one-page-from-another-tp6422716p7583100.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


Kind regards,

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


Re: [xwiki-users] getDocumentAsAuthor doesn't work in attempt to read a page from velocity

2013-01-04 Thread Caleb James DeLisle
Hi Dmitry,

The getDocumentAsAuthor() call should work as expected.
Make sure to use saveDocumentAsAuthor() when saving as well.

Thanks,
Caleb


On 01/04/2013 11:00 AM, Haru wrote:
  Hi!
 
 I'm trying to develop a simple script for followng scenario:
 - Registered User receives an access code to the restricted Space
 - User fills in access code and access is granted to him.
 
 Following test code is used for tests now (no codes involved yet):
  
 {{velocity}}
 
 #set ($mydoc = $xwiki.getDocumentAsAuthor(Week1.WebPreferences))
 #set ($rightsObject = $mydoc.newObject(XWiki.XWikiGlobalRights))
 
 ## Set the values of the fields
 #set ($result1 = $rightsObject.set(groups, XWiki.XWikiAdminGroup))
 #set ($result2 = $rightsObject.set(levels, view,comment,edit))
 #set ($result3 = $rightsObject.set(users, $xcontext.getUser()))
 #set ($result4 = $rightsObject.set(allow, 1))
 
 $mydoc.save()
 
 {{velocity}}
 
 The problem is: it works only if user alredy has access rights to the 
 Week1.WebPreferences, if not (as desired by scenario)
 
 #set ($mydoc = $xwiki.getDocumentAsAuthor(Week1.WebPreferences))
 
 gives Access denied error. The page with this velocity scripting is saved 
 with programming rights user.
 
 What is wrong?
 
 I'd highly appreciate if anyone point the direction :-)
 
 
 Kind regards,
 
 Dmitry
 ___
 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] How to make an extension which is installable by the extension manager?

2013-01-04 Thread Caleb James DeLisle
Hi,

I'm looking to contribute an extension which is installable with the EM
and I can't find any documentation on it, if there is no documentation
I am willing to write it if someone will walk me through the process.

How do I go about getting published and how are dependencies declared?

Thanks,
Caleb

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


Re: [xwiki-users] getDocumentAsAuthor doesn't work in attempt to read a page from velocity

2013-01-04 Thread Haru
 Thanks for help, Caleb, it works now :-)


Пятница,  4 января 2013, 13:48 -05:00 от Caleb James DeLisle 
calebdeli...@lavabit.com:
Hi Dmitry,

The getDocumentAsAuthor() call should work as expected.
Make sure to use saveDocumentAsAuthor() when saving as well.

Thanks,
Caleb


On 01/04/2013 11:00 AM, Haru wrote:
  Hi!
 
 I'm trying to develop a simple script for followng scenario:
 - Registered User receives an access code to the restricted Space
 - User fills in access code and access is granted to him.
 
 Following test code is used for tests now (no codes involved yet):
 
 {{velocity}}
 
 #set ($mydoc = $xwiki.getDocumentAsAuthor(Week1.WebPreferences))
 #set ($rightsObject = $mydoc.newObject(XWiki.XWikiGlobalRights))
 
 ## Set the values of the fields
 #set ($result1 = $rightsObject.set(groups, XWiki.XWikiAdminGroup))
 #set ($result2 = $rightsObject.set(levels, view,comment,edit))
 #set ($result3 = $rightsObject.set(users, $xcontext.getUser()))
 #set ($result4 = $rightsObject.set(allow, 1))
 
 $mydoc.save()
 
 {{velocity}}
 
 The problem is: it works only if user alredy has access rights to the 
 Week1.WebPreferences, if not (as desired by scenario)
 
 #set ($mydoc = $xwiki.getDocumentAsAuthor(Week1.WebPreferences))
 
 gives Access denied error. The page with this velocity scripting is saved 
 with programming rights user.
 
 What is wrong?
 
 I'd highly appreciate if anyone point the direction :-)
 
 
 Kind regards,
 
 Dmitry
 ___
 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


Kind regards,

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