corinthia-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jan i <j...@apache.org>
Subject Re: svn commit: r1650395 - in /incubator/corinthia/www: footer.html footer.shml top_menu.html top_menu.txt
Date Fri, 09 Jan 2015 19:11:19 GMT
Thanks you hint helped me.

I did acutally write it correctly the first time, but I can see from
openoffice that I forgot the .htaccess file


Now we have something far better than templates, server side include of top
and bottom.

rgds
jan i.


On 9 January 2015 at 02:29, Dave Fisher <dave2wave@comcast.net> wrote:

> HHi Jan,
>
> The following SSI works in openoffice.org
>
> (old version)
> ssi.mdtext looks like:
>
> doctype: /doctype.html
> brand:  /brand.html
> footer: /footer.html
> topnav: /topnav.html
> home:           home
>
> template.html with ssi:
>
> <!--#include virtual="{{ ssi.headers.doctype }}" -->
> <html>
> <head>
> <link href="/css/ooo.css" rel="stylesheet" type="text/css">
> {% if head %}{{ head|safe }}{% else %}
> <title>{% block title %}{{ headers.title }}{% endblock %}</title>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> {% if headers.css %}<link href="{{ headers.css }}" rel="stylesheet"
> type="text/css">{% endif %}
> {% endif %}
> <!--#include virtual="/google-analytics.js" -->
> <!--#include virtual="/scripts/entourage.js" -->
> </head>
> <body{% if bodytag %} {{ bodytag|safe }}{% endif %}>
> <!--#include virtual="{{ ssi.headers.brand }}" -->
>   <div id="topbara">
>     {% if ssi.headers.topnav %}<!--#include virtual="{{ ssi.headers.topnav
> }}" -->{% endif %}
>     <div id="breadcrumbsa">{% block breaddcrumbs %}{{ breadcrumbs|safe
> }}{% endblock %}</div>
>   </div>
>   <div id="clear"></div>
>   {% if ssi.headers.leftnav %}<!--#include virtual="{{ ssi.headers.leftnav
> }}" -->{% endif %}
>   {% if ssi.headers.rightnav %}<!--#include virtual="{{
> ssi.headers.rightnav }}" -->{% endif %}
>   <div id="content">
>     {% block legacy %}{% if ssi.headers.legacy %}<div class="legacy">{{
> ssi.headers.legacy }}</div>{% endif %}{% endblock %}
>     {% block title %}{% if headers.title %}<h1 class="title">{{
> headers.title }}</h1>{% endif %}{% endblock %}
>     {% block content %}{{ content|markdown }}{% endblock %}
>   </div>
> <!--#include virtual="{{ ssi.headers.footer }}" -->
> </body>
> </html>
>
>
> On Jan 8, 2015, at 2:12 PM, jani@apache.org wrote:
>
> > Author: jani
> > Date: Thu Jan  8 22:12:47 2015
> > New Revision: 1650395
> >
> > URL: http://svn.apache.org/r1650395
> > Log:
> > SSI default only allow .txt and main file must be .shtml
> >
> > Added:
> >    incubator/corinthia/www/footer.shml
> >      - copied, changed from r1650394, incubator/corinthia/www/footer.html
> >    incubator/corinthia/www/top_menu.txt
> >      - copied unchanged from r1650392,
> incubator/corinthia/www/top_menu.html
> > Removed:
> >    incubator/corinthia/www/footer.html
> >    incubator/corinthia/www/top_menu.html
> >
> > Copied: incubator/corinthia/www/footer.shml (from r1650394,
> incubator/corinthia/www/footer.html)
> > URL:
> http://svn.apache.org/viewvc/incubator/corinthia/www/footer.shml?p2=incubator/corinthia/www/footer.shml&p1=incubator/corinthia/www/footer.html&r1=1650394&r2=1650395&rev=1650395&view=diff
> >
> ==============================================================================
> > --- incubator/corinthia/www/footer.html (original)
> > +++ incubator/corinthia/www/footer.shml Thu Jan  8 22:12:47 2015
> > @@ -8,7 +8,7 @@
> >     <script src="js/vendor/modernizr.js"></script>
> >   </head>
> >   <body>
> > -  <!--#include virtual="./top_menu.html" -->
> > +  <!--#include virtual="./top_menu.txt" -->
> >         <!--content section -->
> >     <div class="row">
> >       <div class="large-12 columns">
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message