Hi Leute,
ich möchte gerne in meinen Blog eine HTML Datei einbinden.
Die Dateil soll in der linken Navigationsleiste erscheinen, doch klappt das nicht so recht.
So schaut es im code aus aber wo steckt der Fehler?
<table id="mainpane">
<tr>
{if $leftSidebarElements > 0}
<td id="serendipityLeftSideBar" valign="top">{serendipity_printSidebar side="left"}
{include file="$root/test.html"}
</td>
{/if}
<td id="content" valign="top">{$CONTENT}</td>
{if $rightSidebarElements > 0}
<td id="serendipityRightSideBar" valign="top">{serendipity_printSidebar side="right"}</td>
{/if}
</tr>
</table>
Html Datei in index.tpl einbinden
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Html Datei in index.tpl einbinden
Hi!
Hast du denn die Variable $root auch gesetzt? Und hast du in der config.inc.php deines templates die smarty-security ausgeschaltet, damit du include benutzen kannst?
Grüße,
Garvin
Hast du denn die Variable $root auch gesetzt? Und hast du in der config.inc.php deines templates die smarty-security ausgeschaltet, damit du include benutzen kannst?
Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Bin gerade auf dem sprung, schau mal bitte auf www.s9y.org in der technischen doku, da gibts hinweise wie man html in smarty einbindet und security ausschaltet.
Grüße
Garvin
Bin gerade auf dem sprung, schau mal bitte auf www.s9y.org in der technischen doku, da gibts hinweise wie man html in smarty einbindet und security ausschaltet.
Grüße
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Ok danke dir.
Hab grad mal geschaut, also die security habe ich in der config.inc.php
so ausgeschaltet.
<?php
$serendipity['smarty']->security = false;
?>
Die liegt auch direkt im Templateordner.
Jetzt habe ich wieder versucht über
{include file="test.html"}
Die Datei einzubinden aber es klappt nicht.
Hab grad mal geschaut, also die security habe ich in der config.inc.php
so ausgeschaltet.
<?php
$serendipity['smarty']->security = false;
?>
Die liegt auch direkt im Templateordner.
Jetzt habe ich wieder versucht über
{include file="test.html"}
Die Datei einzubinden aber es klappt nicht.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Wo hast du die test.html denn gespeichert? Probier's evtl. mal mit nem absoluten pfad.
Grüße,
Garvin
Wo hast du die test.html denn gespeichert? Probier's evtl. mal mit nem absoluten pfad.
Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ich include in meinem blog auch diverse dateien, und verwende dafür den absoluten serverpfad, nicht http! bsp:
/root/web/domain/public/blog/templates/mytemplate/
/root/web/domain/public/blog/templates/mytemplate/
www.darin.ch - blog.darin.ch - rad.darin.ch