Hi Tiki community,
I want to validate if from Tiki 18 the displayed number of a TOC is by default always showing the first Level of a title even if we specify only the second level
We had in TIki 15 :
TABLE DES MATIÈRES
1. La fonction « recherche » dans le moteur de recherche de Foncierpédia
1. Les mots clés à éviter
Now we have in Tiki18.4
TABLE DES MATIÈRES
1.1. La fonction « recherche » dans le moteur de recherche de Foncierpédia
1.2. Les mots clés à éviter
Part of the code where it seems to make the difference in parserlib.php file : V15
// Update last_hdr info for the next header
$last_hdr = $hdr_structure$nb_hdrs;
$nb_last_hdr = count($last_hdr);
$current_title_real_num = implode('.', $hdr_structure$nb_hdrs).'. ';
// Update the current title number to hide all parents levels numbers if the parent has no autonumbering
$hideall = false;
for ( $j = $hdrlevel ; $j > 0 ; $j-- ) {
empty($show_title_level$j) ) { |
unset($hdr_structure$nb_hdrs$j - 1); |
$hideall = true; |
} |
} |
// Store the title number to use only if it has to be shown (if the '#' char is used) |
$current_title_num = $show_title_level$hdrlevel ? implode('.', $hdr_structure$nb_hdrs).'. ' : ''; |
$nb_hdrs++; |
In v18 |
// Update last_hdr info for the next header |
$last_hdr = $hdr_structure$nb_hdrs; |
$nb_last_hdr = count($last_hdr); |
if (is_array($last_hdr)) { |
$current_title_real_num = implode('.', $last_hdr) . '. '; |
} else { |
$current_title_real_num = $last_hdr . '. '; |
} |
// Update the current title number to hide all parents levels numbers if the parent has no autonumbering |
$hideall = false; |
for ($j = $hdrlevel; $j > 0; $j--) { |
if ($hideall |
unset($hdr_structure$j - 1);
$hideall = true;
}
}
// Store the title number to use only if it has to be shown (if the '#' char is used)
$current_title_num = '';
if $hdrlevel) && isset($hdr_structure$nb_hdrs" class="wiki wikinew text-danger tips isset">$show_title_level$hdrlevel) && isset($hdr_structure$nb_hdrs {
$current_title_num = $show_title_level$hdrlevel ? implode('.', $hdr_structure$nb_hdrs) . '. ' : '';
}
$nb_hdrs++;
The URL for the show2.tiki.org instance that demonstrates this bug is at: http://user-11985-7240.show2.tiki.org. Note that if you get a popup asking for a username/password, please just enter "show" and "show". This is different from the initial login and password for a new Tiki which is "admin" and "admin".
For the install log, see http://user-11985-7240.show2.tiki.org/info.txt
Note that if you see PHP errors or a Tiki claiming to be missing third party software, the instance creation is probably not finished. Please wait a couple minutes and reload.
Snapshots are database dumps of the configuration that developers can download for debugging. Once you have reproduced your bug on the show2.tiki.org instance, create a snapshot that can then be downloaded by developers for further investigation.
Snapshots can be accessed at: http://user-11985-7240.show2.tiki.org/snapshots/. Note that if you get a popup asking for a username/password, please just enter "show" and "show".
Create new snapshotUnable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |