[xwiki-users] Headings aud sub-headings auto numbering
Hi, Is there any way to have an automatic numbering of headings and sub-headings in every pages of a wiki ? When I create a page with headings and sub-headings, I obtain : Heading 1 Heading 2 Heading 2 Heading 1 and I would have that result : 1 Heading 1 1.1 Heading 2 1.2 Heading 2 2 Heading 1... Any idea ? Gaëtan GUYODO
Gaëtan GUYODO wrote:
Hi, Is there any way to have an automatic numbering of headings and sub-headings in every pages of a wiki ? When I create a page with headings and sub-headings, I obtain : Heading 1 Heading 2 Heading 2 Heading 1
and I would have that result : 1 Heading 1 1.1 Heading 2 1.2 Heading 2 2 Heading 1...
Any idea ?
No an answer, just a request. Sorry. I would like to add one step further: we are using the space as a metaphor for a "book". Let's say each chapter will be a document in a given space. It will be great to be able of establish a numeration schema along the whole space. Tables, figures and images in this documents would also follow a common numbering schema. Some kind of label must be added to the text string being their caption and some kind of process must compile and generate lists with the entries. How to do that: I don't know... yet :-) But keep trying. Best regards, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
hi, the numbering will only appear if you are logged in as a user with "enough" user rights.... if you have admin rights the numbering will work as expected :) i've not figured out which right is responsible for the numbering.... once posted a question but never got an answer :) g, kris Gaëtan GUYODO <[email protected]> Gesendet von: [email protected] 25.02.2008 14:35 Bitte antworten an XWiki Users <[email protected]> An XWiki Users <[email protected]> Kopie Thema [xwiki-users] Headings aud sub-headings auto numbering Hi, Is there any way to have an automatic numbering of headings and sub-headings in every pages of a wiki ? When I create a page with headings and sub-headings, I obtain : Heading 1 Heading 2 Heading 2 Heading 1 and I would have that result : 1 Heading 1 1.1 Heading 2 1.2 Heading 2 2 Heading 1... Any idea ? Gaëtan GUYODO _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi, I've looked at the source code and I've come up with this: http://www.xwiki.org/xwiki/bin/view/FAQ/NumberedSections Thanks -Vincent On Feb 25, 2008, at 2:35 PM, Gaëtan GUYODO wrote:
Hi, Is there any way to have an automatic numbering of headings and sub-headings in every pages of a wiki ? When I create a page with headings and sub-headings, I obtain : Heading 1 Heading 2 Heading 2 Heading 1
and I would have that result : 1 Heading 1 1.1 Heading 2 1.2 Heading 2 2 Heading 1...
Any idea ?
Gaëtan GUYODO
On Feb 25, 2008, at 3:54 PM, Kristian Marinkovic wrote:
hi,
the numbering will only appear if you are logged in as a user with "enough" user rights.... if you have admin rights the numbering will work as expected :)
i've not figured out which right is responsible for the numbering.... once posted a question but never got an answer :)
Are you talking about this: http://jira.xwiki.org/jira/browse/XWIKI-1899 As you can see it was fixed in 1.2 RC1. Thanks -Vincent
Gaëtan GUYODO <[email protected]> Gesendet von: [email protected] 25.02.2008 14:35 Bitte antworten an XWiki Users <[email protected]>
An XWiki Users <[email protected]> Kopie Thema [xwiki-users] Headings aud sub-headings auto numbering
Hi, Is there any way to have an automatic numbering of headings and sub-headings in every pages of a wiki ? When I create a page with headings and sub-headings, I obtain : Heading 1 Heading 2 Heading 2 Heading 1
and I would have that result : 1 Heading 1 1.1 Heading 2 1.2 Heading 2 2 Heading 1...
Any idea ?
Gaëtan GUYODO
Vincent Massol wrote:
Hi,
I've looked at the source code and I've come up with this: http://www.xwiki.org/xwiki/bin/view/FAQ/NumberedSections
Thanks -Vincent
Please, could you think of a solution for applying numbered sections to a given space? Thanks! Cheers, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
On Feb 25, 2008, at 4:53 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Vincent Massol wrote:
Hi,
I've looked at the source code and I've come up with this: http://www.xwiki.org/xwiki/bin/view/FAQ/NumberedSections
Thanks -Vincent
Please, could you think of a solution for applying numbered sections to a given space? Thanks!
The answer is already in the FAQ entry I believe... -Vincent
Vincent Massol wrote:
The answer is already in the FAQ entry I believe...
-Vincent
Hi Vicent, colleagues, Sorry if I am missing something, but I am not able to make this work. I've tried to save a sample as a regular user, as an user with admin rights and as admin by itself. Both in virtual wikis and in the controller. I've always used a 1.3M1 installation. http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/NumberedSections?... Please, could you tell me where I am wrong? Must I be able to find tocNumbered and tocData in the context constructor documentation? Thank you so much for your help, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
What's wrong is that you have used the #toc macro at the same time... This macro uses the sames context variables and since you've called it with "" (which is equivalent to using "false" for section numbering) it has removed the section numbering. -Vincent On Feb 26, 2008, at 12:10 AM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Vincent Massol wrote:
The answer is already in the FAQ entry I believe...
-Vincent
Hi Vicent, colleagues,
Sorry if I am missing something, but I am not able to make this work. I've tried to save a sample as a regular user, as an user with admin rights and as admin by itself. Both in virtual wikis and in the controller. I've always used a 1.3M1 installation.
http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/NumberedSections?...
Please, could you tell me where I am wrong?
Must I be able to find tocNumbered and tocData in the context constructor documentation?
Thank you so much for your help,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Thanks Vincent, Your answer (and FAQ answer) works inside a single page. Good for me. But the proposed solution (to set these 2 lines inside the xwikivars.vm file) seems to fail on my xwiki : 1) the file xwikivars.vm does not exist on standard 1.2 installation 2) I tried that solution by crezating the xwikivars.vm file, without results 3) I tried adding these 2 lines into the xwiki.vm file, without results Do you think I forgot something ? Or any other idea to globilize the solution ? thanks anyway for your previous answer. Gaëtan Vincent Massol a écrit :
Hi,
I've looked at the source code and I've come up with this: http://www.xwiki.org/xwiki/bin/view/FAQ/NumberedSections
Thanks -Vincent
On Feb 25, 2008, at 2:35 PM, Gaëtan GUYODO wrote:
Hi, Is there any way to have an automatic numbering of headings and sub-headings in every pages of a wiki ? When I create a page with headings and sub-headings, I obtain : Heading 1 Heading 2 Heading 2 Heading 1
and I would have that result : 1 Heading 1 1.1 Heading 2 1.2 Heading 2 2 Heading 1...
Any idea ?
Gaëtan GUYODO
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Gaëtan GUYODO wrote:
Thanks Vincent, Your answer (and FAQ answer) works inside a single page. Good for me. But the proposed solution (to set these 2 lines inside the xwikivars.vm file) seems to fail on my xwiki : 1) the file xwikivars.vm does not exist on standard 1.2 installation 2) I tried that solution by crezating the xwikivars.vm file, without results 3) I tried adding these 2 lines into the xwiki.vm file, without results
xwikivars is located in skins/albatross/
Do you think I forgot something ? Or any other idea to globilize the solution ?
thanks anyway for your previous answer. Gaëtan
Vincent Massol a écrit :
Hi,
I've looked at the source code and I've come up with this: http://www.xwiki.org/xwiki/bin/view/FAQ/NumberedSections
Thanks -Vincent
On Feb 25, 2008, at 2:35 PM, Gaëtan GUYODO wrote:
Hi, Is there any way to have an automatic numbering of headings and sub-headings in every pages of a wiki ? When I create a page with headings and sub-headings, I obtain : Heading 1 Heading 2 Heading 2 Heading 1
and I would have that result : 1 Heading 1 1.1 Heading 2 1.2 Heading 2 2 Heading 1...
Any idea ?
Gaëtan GUYODO
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Vincent Massol wrote:
What's wrong is that you have used the #toc macro at the same time... This macro uses the sames context variables and since you've called it with "" (which is equivalent to using "false" for section numbering) it has removed the section numbering.
-Vincent
Thanks and sorry for asking before investigating further. Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
participants (5)
-
[Ricardo Rodriguez] Your EPEC Network ICT Team -
Gaëtan GUYODO -
Kristian Marinkovic -
Sergiu Dumitriu -
Vincent Massol