Contenido scheint das s.u. automatisch einzufügen. Allerdings zerstört das Scripte /Verlinkungen, die auf diese Linsk zugreifen. z.B. habe ich ein tabreiter Script, das jetzt die Seite immer neu läd, anstatt einen flüssigen Tabwechsel zu machen:(
<ul id="tabify_menu_angebot_gesuche" class="tabify_menu">
<li class="active"><a href="#description2">Angebot senden</a></li>
<li><a href="#usage2">Gesuch senden</a></li>
</ul>
<div id="description2" class="tabify_content">
<h2>Limerick One</h2>
<p>
The limerick packs laughs anatomical<br />
In space that is quite economical,<br />
But the good ones I've seen<br />
So seldom are clean,<br />
And the clean ones so seldom are comical.
</p>
</div>
<div id="usage2" class="tabify_content">
<h2>Limerick Two</h2>
<p>
Let my viciousness be emptied,<br />
Desire and lust banished,<br />
Charity and patience,<br />
Humility and obedience,<br />
And all the virtues increased.Let my viciousness be emptied,<br />
Desire and lust banished,<br />
Charity and patience,<br />
Humility and obedience,<br />
</p>
</div>
Der Base-Tag wird bei Contenido aber schon immer automatisch eingefügt. Das kannst du ausschalten unter "Administration"->"System"->"System-Konfiguration"-> ziemlich weit unten "Generate basehref".
"Marty, du musst VIERDIMENSIONAL denken!" - Doc Brown
$(document).ready(function() {
var url = window.location.href;
if (url.search("#") > 0) {
url = url.substr(0, url.search("#"));
}
$("#tabify_menu_angebot_gesuche a").each(function() {
var $anchor = $(this);
if ("#" === $anchor.attr("href").substr(0, 1)) {
$anchor.attr("href", url + $anchor.attr("href"));
}
});
});
Gruß
xmurrix
CONTENIDO Downloads:CONTENIDO 4.10.1 CONTENIDO Links:Dokumentationsportal, FAQ, API-Dokumentation CONTENIDO @ Github:CONTENIDO 4.10 - Mit einem Entwicklungszweig (develop-branch), das viele Verbesserungen/Optimierungen erhalten hat und auf Stabilität und Kompatibilität mit PHP 8.0 bis 8.2 getrimmt wurde.