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

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.