[new free template] fhs-megamaker

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

Moderator: mikey

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

Re: [new free template] fhs-megamaker

Post by frase » Sun May 24, 2020 1:29 pm

cmb wrote:
Sun May 24, 2020 12:20 pm
Hmm, it seems to me that a toplevel page without any visible subpages should not even be shown in the menu. To realize that, BwMenuLi::renderMenuItem() (templatefunctions.php line 71ff) can be changed to:
Danke. Kann ich womöglich erst morgen testen. Melde mich dann.

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

Re: [new free template] fhs-megamaker

Post by frase » Sun May 24, 2020 3:47 pm

cmb wrote:
Sun May 24, 2020 12:20 pm
Hmm, it seems to me that a toplevel page without any visible subpages should not even be shown in the menu. To realize that, BwMenuLi::renderMenuItem() (templatefunctions.php line 71ff) can be changed to:
Ich habe das jetzt mal getestet.
Prinzipiell funktioniert das, wenn es eine Level1-Seite ist ohne Unterseiten.
Wenn es "hidden" Unterseiten hat, stört es weiterhin das Menü.
Viel schlimmer ist aber, dass der Link im Menü zwar wirklich nicht erscheint, aber es ist ein leerer <li>...</li>-Tag vorhanden, was das Menü eigentlich noch mehr stört - eine Riesen-Lücke im flex-Container.

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: [new free template] fhs-megamaker

Post by roze » Sun May 24, 2020 4:21 pm

Christoph,

Thanks for you answer.
but unfortunately the is stil a disturbance in the looks of the menu.

Grtz, Rob
Rob Zeijen,

Valkenswaard (NL)

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: [new free template] fhs-megamaker

Post by roze » Wed Jun 03, 2020 10:53 am

I want a previous-next-top in the middle under my pages. In Dutch: vorige-Top-Volgende

after my modification it looks like this:
vorigevolgende.png


I've made a change in the template like this:

Code: Select all

</article>
</main>
</div>

<div id="tplge_prevtopnext" class="tplge_prevtopnext">

<span><?php echo previouspage('prev.gif');?></span>
<span><?php echo top('top.gif');?></span>
<span><?php echo nextpage('next.gif');?></span>


</div>
<footer class="row-full-width" id="footer">

And in the CSS like this:

Code: Select all

abbr {
	text-decoration: none;
	border: 0;
}

/* prev-top-next */
.tplge_prevtopnext {clear: both; text-align: center; border-top: 0px solid #aaa; padding: 8px 0 0 0; margin: 36px 0 16px 0;}
#tplge_prevtopnext span {padding: 0 16px;}


/*** Footer ***/
What do I have to change to position in the center?

This is my start page: http://nieuw.perfectsound.org/?Vocalgro ... d/Over-ons
You do not have the required permissions to view the files attached to this post.
Rob Zeijen,

Valkenswaard (NL)

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: [new free template] fhs-megamaker

Post by Tata » Wed Jun 03, 2020 1:12 pm

Try to find it here https://css-tricks.com/snippets/css/a-guide-to-flexbox/.
About so:

Code: Select all

tplge_prevtopnext:{width: 100%;
dislpay:flex;
justify-content:center; 
}
Eventually try justify-content: space-between, space-around, or space-evenly.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: [new free template] fhs-megamaker

Post by roze » Wed Jun 03, 2020 3:08 pm

thank you tata,

I've changed the CSS like this:

Code: Select all

}
abbr {
	text-decoration: none;
	border: 0;
}

/* prev-top-next */

tplge_prevtopnext:{width: 100%;
dislpay:flex;
justify-content:space-evenly; 
}



/*** Footer ***/
and also tried:

justify-content: space-between;
justify-content: space-around;
justify-content: center;


without result :cry:
Rob Zeijen,

Valkenswaard (NL)

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

Re: [new free template] fhs-megamaker

Post by lck » Wed Jun 03, 2020 5:48 pm

roze wrote:
Wed Jun 03, 2020 3:08 pm
without result
There are a few bugs in the code, try:

Code: Select all

.tplge_prevtopnext {
	width: 100%;
	display: flex;
	justify-content: space-evenly;
}
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: [new free template] fhs-megamaker

Post by roze » Thu Jun 04, 2020 11:52 am

Thank you.

It works! 👍🏻
Rob Zeijen,

Valkenswaard (NL)

Post Reply