Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conf/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@
$conf['depth'] = 1; // maximum depth of namespace includes, 0 for unlimited depth
$conf['readmore'] = 1; // Show readmore link in case of firstsection only
$conf['debugoutput'] = 0; // print debug information to debuglog if global allowdebug is enabled
$conf['rawsections'] = 0; // use section/heading levels as given in the included files
//Setup VIM: ex: et ts=2 :
1 change: 1 addition & 0 deletions conf/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@
$meta['depth'] = array('numeric', '_min' => 0);
$meta['readmore'] = array('onoff');
$meta['debugoutput'] = array('onoff');
$meta['rawsections'] = array('onoff');
//Setup VIM: ex: et ts=2 :
5 changes: 5 additions & 0 deletions helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ function _convert_instructions(&$ins, $lvl, $page, $sect, $flags, $root_id, $inc
$diff = $lvl - $lvl_max + 1;
if ($no_header) $diff -= 1; // push up one level if "noheader"

// rawsections=TRUE places a wiki section at the level that was defined within the wiki page - no relative reposition is done.
if ($this->getConf('rawsections')) {
$diff = 0;
}

// convert headers and set footer/permalink
$hdr_deleted = false;
$has_permalink = false;
Expand Down
1 change: 1 addition & 0 deletions lang/de-informal/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@
$lang['depth'] = 'Maximale Tiefe von Namensräumen, 0 für alle Ebenen';
$lang['readmore'] = '\'Weiterlesen\'-Link bei aktiviertem "firstseconly"-Modus anzeigen';
$lang['debugoutput'] = 'Ausführliche Informationen in das Debuglog des Dokuwikis schreiben (setzt voraus, dass die globale Option "allowdebug" aktiviert ist).';
$lang['rawsections'] = 'Die Level der Abschnitte werden wie in den eingebundenen Seiten vorgegeben verwendet';
1 change: 1 addition & 0 deletions lang/de/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@
$lang['depth'] = 'Maximale Tiefe von Namensräumen, 0 für alle Ebenen';
$lang['readmore'] = 'Zeige einen \'Weiterlesen\'-Link bei aktiviertem "firstseconly"-Modus';
$lang['debugoutput'] = 'Ausführliche Informationen in das Debuglog des Dokuwikis schreiben (setzt voraus, dass die globale Option "allowdebug" aktiviert ist).';
$lang['rawsections'] = 'Die Level der Abschnitte werden wie in den eingebundenen Seiten vorgegeben verwendet';
1 change: 1 addition & 0 deletions lang/en/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@
$lang['depth'] = 'Maximum depth of namespace includes, 0 for unlimited depth';
$lang['readmore'] = 'Show or not the \'Read More\' link in case of firstsection only';
$lang['debugoutput'] = 'Print verbose debug information to the dokuwiki debuglog if the global "allowdebug" option is enabled';
$lang['rawsections'] = 'Use section/heading levels as given in the included files';
//Setup VIM: ex: et ts=2 :
9 changes: 9 additions & 0 deletions syntax/locallink.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ function render($mode, Doku_Renderer $renderer, $data) {
$renderer->doc .= '</a>';
return true;
}
if ($mode == 'odt') {
list($hash, $name, $id) = $data;
// construct title in the same way it would be done for internal links
$default = $renderer->_simpleTitle($id);
$name = $renderer->_getLinkTitle($name, $default, $isImage, $id);
$title = $ID;
$renderer->internallink($id,$name);
return true;
}
return false;
}
}
Expand Down