Adding server sides includes
Adding server sides includes
Is it possible to add server side includes in FlatPress? I want to add some social media buttons. I couldn't find a plugin for this. Any suggestions?
Re: Adding server sides includes
Have you already read this?
https://wiki.flatpress.org/doc:tips:sharebuttons
https://wiki.flatpress.org/doc:tips:sharebuttons
Re: Adding server sides includes
Hi, are we talking about https://httpd.apache.org/docs/current/howto/ssi.html ?
Project blogββ Docsββ Twitterββ Mastodonββ Forum RSS feedββ Project blog RSS feedββ Donate
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
Re: Adding server sides includes
I do not think SSI will work with FlatPress. In FlatPress, the HTML of the page is contained in template files (.tpl) that are being processed by the Smarty engine (which itself is a PHP program). So the web server isn't serving any HTML files directly to the client; technically, it just serves the output FlatPress' index.php is creating (which, with the help of Smarty, reads the template files and fills them with dynamic content).
But: I never tested this. If your web server has SSI activated, just give it a try, and simply add some SSI code to a template file, for example fp-interface/sharedtpls/login.tpl:
Then proceed to your Admin Area login: If the current date is being displayed above the login form, you're good to go!
All the best,
Arvid
But: I never tested this. If your web server has SSI activated, just give it a try, and simply add some SSI code to a template file, for example fp-interface/sharedtpls/login.tpl:
Code: Select all
<!-- some SSI: -->
<!--#echo var="DATE_LOCAL" -->
<!-- SSI end -->
{include file=shared:errorlist.tpl}
<form id="login" method="post" action="{$smarty.const.BLOG_BASEURL}login.php" enctype="multipart/form-data">
<fieldset><legend>{$lang.login.fieldset1}</legend>
<p><label for="user">{$lang.login.user}</label><br />
(...)
All the best,
Arvid
Project blogββ Docsββ Twitterββ Mastodonββ Forum RSS feedββ Project blog RSS feedββ Donate
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
Who is online
Users browsing this forum: No registered users and 28 guests