Commit 5ac1d67a by Carsten Brandt

fix guide navigation

issue #5082
parent 3e3948d8
...@@ -52,13 +52,14 @@ class IndexFileAnalyzer extends Markdown ...@@ -52,13 +52,14 @@ class IndexFileAnalyzer extends Markdown
protected function renderList($block) protected function renderList($block)
{ {
if ($this->_chapter > 0) { if ($this->_chapter > 0) {
foreach ($block['items'] as $item => $itemLines) { foreach ($block['items'] as $item => $absyElements) {
if (preg_match('~\[([^\]]+)\]\(([^\)]+)\)(.*)~', $this->renderAbsy($itemLines), $matches)) { foreach($absyElements as $element) {
$this->_chapters[$this->_chapter]['content'][] = [ if ($element[0] === 'link') {
'headline' => $matches[1], $this->_chapters[$this->_chapter]['content'][] = [
'file' => $matches[2], 'headline' => $this->renderAbsy($element['text']),
'teaser' => $matches[3], 'file' => $element['url'],
]; ];
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment