So,
vielen Dank nochmals für die ganzen Hinweise.
phpwikify ist sehr gut für meine Anforderung geeignet.
Allerdings gehe ich nicht den Weg über eine Funktion, sondern inkludiere die Pages des Wikis direkt.
Leider verwende ich so vorerst absolute Pfade, die ich noch gegen PHP-Variablen/Makros austauschen will.
Ist halt noch im Experimentier-Status.
Hier kann man sich das mal ansehen:
https://alterna.tive.tips/dokuwiki/doku.php?id=projekte:a_record_of_a_mortals_journey_to_immortality:start
Insgesamt besteht ein "Seiten-Satz" bei mir derzeit aus
1) einer Template/Vorlagen-Seite (welche die Platzhalter/Variablen hat)
2) einer CSS-Seite
3) einer Übergabe-Seite (welche die Werte übergibt)
Mal ein Beispiel:
Ich habe eine Template-Seite (die ich für alle meine Projekte nutzen möchte). Hier inkludiere ich die CSS-Datei:
projekte:vorlagen:tpl_titelseite
~~NOCACHE~~
<phpwikify>
include ("/www/htdocs/w00d0ef2/tive.tips.alterna/dokuwiki/data/pages/projekte/css/css_titelseite.txt");
</phpwikify>
<html>
<table style="width:100%; border: none; background-color: white; vertical-align:top;">
<tr style="height: 1em">
<td rowspan="6" style="width: 1em;"> </td>
<td style="width: 21em;"> </td>
<td rowspan="5" style="width: 2em;"> </td>
<td style="width: auto;"> </td>
<td rowspan="6" style="width: 1em;"> </td>
</tr>
<tr style="height: 28em; vertical-align:top;">
<td><div class="bg">
<?php echo '</html>{{'.$cover.'?nolink|}}<html>' ?>
</div></td>
<td rowspan="3" class="textarea"><b>Informationen:</b><br /><br />
<div class="textcontent"><?php echo $information ?></div>
</td>
</tr>
<tr style="height: 2em;">
<td></td>
</tr>
<tr style="height: auto;">
<td class="textarea"><b>Genre:</b><br />
<div class="textcontent"></div>
</td>
</tr>
<tr style="height: 2em">
<td colspan="3"></td>
</tr>
<tr>
<td colspan="3" class="textarea"><b>Zusammenfassung:</b><br /><br />
<div class="textcontent"><?php echo $summary ?></div>
</td>
</tr>
</table>
</html>
Hier ist meine CSS-Datei
projekte:css:css_titelseite
<html>
<style type="text/css">
table {
font-size: 0.9em;
}
td.textarea {
@import url('https://fonts.googleapis.com/css?family=Anonymous+Pro|Cutive+Mono|Ubuntu+Mono');
vertical-align: top;
text-align: justify;
color: black;
background-color: ghostwhite;
border-radius: 1em;
border: solid lightgrey 1pt;
padding: 1em 1em 1em 1em;
font-family: 'Ubuntu Mono', monospace;
font-size: 1.3em;
line-height: 1;
}
div.textcontent {
padding-left: 1em;
white-space: pre-wrap;
}
div.bg {
border-radius: 1em;
height: 28em;
width: 100%;
}
div.bg img {
border-radius: 1em;
height: 100%;
width: 100%;
}
</style>
</html>
Und zu guter Letzt eine derer Seiten, die auf die Templates/Vorlagen zugreifen sollen. Hier deklariere ich die Variablen und binde dann die Template/Vorlage-Datei ein
projekte:a_record_of_a_mortals_journey_to_immortality:start
~~NOCACHE~~
<phpwikify>
$title = 'A Record of a Mortals Journey to Immortality';
$information = ' Copyright/Quelle: <a href="https://www.wuxiaworld.com/novel/rmji" target="_blank">www.wuxiaworld.com</a>';
$summary = '
A poor and ordinary boy from a village joins a minor sect in Jiang Hu and becomes an Unofficial Disciple by chance. How will Han Li, a commoner by birth, establish a foothold for himself in in his sect? With his mediocre aptitude, he must successfully traverse the treacherous path of cultivation and avoid the notice of those who may do him harm. This is a story of an ordinary mortal who, against all odds, clashes with devilish demons and ancient celestials in order to find his own path towards immortality.
';
$cover = ':projekte:a_record_of_a_mortals_journey_to_immortality:record-of-mortal-journey-to-immortal-cover-01.jpg';
include ("/www/htdocs/w00d0ef2/tive.tips.alterna/dokuwiki/data/pages/projekte/vorlagen/tpl_titelseite.txt");
</phpwikify>
Es gibt sicherlich schönere Lösungen, aber derzeit komme ich damit gut zurecht.
Vor allem, da ich alleine in meinem Wiki schreibe und Gäste lediglich lesen sollen bin ich selbst schuld, wenn ich mein Wiki zerschieße :D
Grüße
Patrick