Korrektur beim Erzeugen von Übersicht-Seiten, Links waren nicht bei allen Unterseitentypen korrekt gesetzt

This commit is contained in:
2016-09-30 11:24:41 +00:00
parent fe5e353753
commit 235bc660bd
4 changed files with 19 additions and 17 deletions

View File

@@ -103,6 +103,7 @@ if ($specialSite !== false)
$tmp_data['content']['pageContents'] = fnc_getSiteContents($tmp_content['siteContents'], $prefix); $tmp_data['content']['pageContents'] = fnc_getSiteContents($tmp_content['siteContents'], $prefix);
$sub_content = $tmp_data['content']['pageContents']; $sub_content = $tmp_data['content']['pageContents'];
$sub_content['type'] = 'standard'; $sub_content['type'] = 'standard';
$sub_content['siteId'] = $content[$prefix . '_navId'];
} }
} }
$data['content']['uebersicht'][] = $sub_content; $data['content']['uebersicht'][] = $sub_content;

View File

@@ -99,6 +99,7 @@ if ($specialSite !== false)
$tmp_data['content']['pageContents'] = fnc_getSiteContents($tmp_content['siteContents'], $prefix); $tmp_data['content']['pageContents'] = fnc_getSiteContents($tmp_content['siteContents'], $prefix);
$sub_content = $tmp_data['content']['pageContents']; $sub_content = $tmp_data['content']['pageContents'];
$sub_content['type'] = 'standard'; $sub_content['type'] = 'standard';
$sub_content['siteId'] = $content[$prefix . '_navId'];
} }
} }
$data['content']['uebersicht'][] = $sub_content; $data['content']['uebersicht'][] = $sub_content;

View File

@@ -53,7 +53,7 @@
continue; continue;
} }
?> ?>
var <?php echo $var; ?> ="<?php echo $value; ?>"; var <?php echo $var; ?> = "<?php echo $value; ?>";
<?php <?php
} }
?> ?>

View File

@@ -1,22 +1,22 @@
<div class="uebersicht grid_40col wrapper"> <div class="uebersicht grid_40col wrapper">
<?php <?php
foreach ( $this -> _data as $data ) foreach ($this->_data as $data)
{ {
?> ?>
<div class="grid_40col"> <div class="grid_40col">
<a class="link" href="index.php?siteId=20&navId=<?php echo $data[ 'siteId' ]; ?>"> <a class="link" href="index.php?siteId=20&navId=<?php echo $data['siteId']; ?>">
<?php
$content = clone( $this );;
$content -> setTemplate ( 'uebersicht_' . $data[ 'type' ] );
$content -> setData ( $data );
echo $content -> output ( );
?>
<br class="fix"/>
</a>
</div>
<?php <?php
} $content = clone($this);;
$content->setTemplate('uebersicht_' . $data['type']);
$content->setData($data);
echo $content->output();
?>
<br class="fix"/>
</a>
</div>
<?php
}
?> ?>
</div> </div>