New: Template „fhs-left-right“

Please post the URLs to pages, where you've made a CMSimple template available for download

Moderator: mikey

lck
Posts: 1364
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: New: Template „fhs-left-right“

Post by lck » Mon Jan 22, 2018 2:23 pm

frase wrote:
Sun Jan 21, 2018 3:42 pm
A new version is available for XH 1.7.x
Very nice, thanks!
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

tanavots
Posts: 69
Joined: Sat Feb 25, 2012 4:18 pm

Re: New: Template „fhs-left-right“

Post by tanavots » Tue Mar 06, 2018 6:34 pm

Hi!

How to get print view work with this version?
If you look print view http://fhseidel.de/fhs-left-right/?&print, only top of the page is displayed (Chrome).

Best

lck
Posts: 1364
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: New: Template „fhs-left-right“

Post by lck » Tue Mar 06, 2018 6:47 pm

tanavots wrote:
Tue Mar 06, 2018 6:34 pm
How to get print view work with this version?
Solution see viewtopic.php?f=16&t=13241&p=65681&sid= ... eae#p65641.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

frase
Posts: 2299
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: New: Template „fhs-left-right“

Post by frase » Wed Mar 07, 2018 8:21 am

tanavots wrote:
Tue Mar 06, 2018 6:34 pm
How to get print view work with this version?
Add in stylesheet.css this lines:

Code: Select all

body.print {
    background: #fff;
    color: #333;
    hyphens: auto;
    overflow: auto;
}
@media print {
    html {
        width: auto;
        height: auto;
        overflow: auto;
	}
}

bca
Posts: 288
Joined: Tue Sep 15, 2009 4:49 pm

Re: New: Template „fhs-left-right“

Post by bca » Mon Sep 03, 2018 10:16 am

Hi
Just been trying out this template.
How do I change it so that the left menu overlays the main content rather than pushing it.
According the the slidebars.js instructions I should just be able to change "id-1 left push" to "id-1 left reveal"

Cannot get it to work though. Is there a secret?

B

bca
Posts: 288
Joined: Tue Sep 15, 2009 4:49 pm

Re: New: Template „fhs-left-right“

Post by bca » Mon Sep 03, 2018 10:21 am

Ha Ha. :lol:
Just as I pushed send I realised i was changing it to reveal rather than overlay.

Works now.

B

bca
Posts: 288
Joined: Tue Sep 15, 2009 4:49 pm

Re: New: Template „fhs-left-right“

Post by bca » Fri Oct 12, 2018 10:55 am

Hi
I've been trying this new template for a site with a few changes here and there.

It fails on HTML validation with "Attribute canvas not allowed on element div."

I have found out that by changing

Code: Select all

<div canvas="container" class="canvasContainer">
to
<div data-canvas="container" class="canvasContainer">
It all validates correctly.
The same with

Code: Select all

<div off-canvas="id-2 right overlay"
to
<div data-off-canvas="id-2 right overlay"
Along with relevant changes in the css.

B

frase
Posts: 2299
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: New: Template „fhs-left-right“

Post by frase » Fri Oct 12, 2018 11:24 am

bca wrote:
Fri Oct 12, 2018 10:55 am
...
It fails on HTML validation with "Attribute canvas not allowed on element div."

I have found out that by changing

Code: Select all

<div canvas="container" class="canvasContainer">
to
<div data-canvas="container" class="canvasContainer">
It all validates correctly.
...
Ich bin mir nicht ganz sicher.
Ich glaube, dass der Validator versucht das canvas-Attribut als <canvas>-Element zu interpretieren - und deshalb einen Fehler meldet.
Prinzipiell sind solche Attribute aber erlaubt - dumm nur, dass es mittlerweile eben das HTML-Element <canvas> gleichen Namens gibt.
Ich denke, es wird in keinem Fall irgendwelche Probleme geben.
Wenn du das mit dem data-Attribut (was eben auch nur eine Namensänderung darstellt) gelöst hast, dann ist das gut. Ich fürchte allerdings, dass dann nicht nur das CSS angepasst werden muss, sondern auch das Script (nicht getestet).

BTW: https://www.adchsm.com/slidebars/

frase
Posts: 2299
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: New: Template „fhs-left-right“

Post by frase » Fri Oct 12, 2018 11:36 am

Noch ein Nachtrag:
Das Firefox-Plugin Html Validator gibt hier nur eine Warnung aus - keinen Fehler.

canvas2.png
You do not have the required permissions to view the files attached to this post.

bca
Posts: 288
Joined: Tue Sep 15, 2009 4:49 pm

Re: New: Template „fhs-left-right“

Post by bca » Fri Oct 12, 2018 11:58 am

Yes I adjusted the script aswell.

It's a bit tidier now :lol:

Although there are 18 css errors to look at. Mainly with the scrollbars bit :shock:

Maybe i'll leave those for now.

B

Post Reply