Loading...
 
Documentation

Documentation


Numbering Sections

posts: 31 None

Please help me with WikiSyntax to number the sections as below:

The problem is that there's no way to get tiki to number the sections. There's outline functionality if you use # tags, but it doesn't really work to mark up different sections of a document.

Do you think it might be possible to edit the code that renders the pages so that if it sees a # right after the ! or !! etc... (e.g. !# ) it would place a section number in the document. For example:

1. Header A

text one

2. Header B

text two

2.1. Header C

text three

3. Header D


Would look like:
1. Header A
text one
2. Header B
text two
2.1. Header C
text three
3. Header D

That's just an example, but I think you get the idea. I'm guessing this would mean modifying some of the php code that does the rendering of the wiki pages to see if there's a # after a ! and then insert the appropriate number, keeping track of them with a counter of some sort.

Please anyone help me out with this

posts: 2881 United Kingdom

Hiya

Yeah the code for that is in tikilib.php which will be found in your /lib/ folder.


Damian

posts: 31 None

> Damian:
> Hiya
>
> Yeah the code for that is in tikilib.php which will be found in your /lib/ folder.
>
>
> Damian

Thanks Damian!

Can you help me more on this, like changes in which functions.
A little look on tikilib.php took me to parse_data functions. Is it only place I have to make changes.


posts: 31 None

Thanks Damian!

Can you help me more on this, like changes in which functions.
A little look on tikilib.php took me to parse_data functions. Is it only place I have to make changes.


posts: 31 None

> Damian:
> Hiya
>
> Yeah the code for that is in tikilib.php which will be found in your /lib/ folder.
>
>
> Damian

Thanks Damian!

Can you help me more on this, like changes in which functions.
A little look on tikilib.php took me to parse_data functions. Is it only place I have to make changes.



Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting