Massively 2.1 - "Jump In" Point for static pages

Post Reply
Philipp
Jr. Bludit
Posts: 4
Joined: Mon Feb 24, 2020 7:54 pm

Thu Mar 05, 2020 9:36 pm

Hello Bludit Board...
I´m very new to Bludit, and even more new to this forum... so this is my first question to this board.
Please excuse me, if I ask a stupid or easy question.
I really did my best solving it on my own... but without the desired outcome.
Hopefully, someone can give me a hint, where I could search for the parameters to achieve the following change in behavior:
With Bludit 3.11.0 and Massively 2.1 the following behavior seems to be standard:
On site-load, or on re-load by clicking on "Homepage" the site loads with the nav-bar on the very bottom.
It has a bit the look of the OSX Dock...
Image

If a static page, in this example "About" is clicked, the page is loaded but moved just under the navigation bar...
Image

How can I modify the Theme, that a static page is loaded with the nav-bar just shown?
Like this:
Image

Or like the Massively Demo is suggesting:
Image

I already spent days searching the right code to modify, but my limited capabilities in ... there the problem starts... is it a jquery-thing? js?
If somebody could give advice, would be highly appreciated!
Many thanks in advance!
Best
Philipp

--edited (Adding photos to board messages also seems difficult to me)
Last edited by Philipp on Fri Mar 06, 2020 5:58 pm, edited 4 times in total.
User avatar
Edi
Site Admin
Posts: 1836
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Fri Mar 06, 2020 12:50 am

It seems that the upload of images didn't work...
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Philipp
Jr. Bludit
Posts: 4
Joined: Mon Feb 24, 2020 7:54 pm

Fri Mar 06, 2020 1:31 pm

Thanks for the Info, Edi...
Now the pictures should be visible :-)
Philipp
Jr. Bludit
Posts: 4
Joined: Mon Feb 24, 2020 7:54 pm

Mon Mar 09, 2020 5:59 pm

Ok... I found out, that I can change the"#main" tag in the page-links to "#header" to get the result as shown on the Massively Demo Page.
I did this on the Theme index.php line 61

Code: Select all

<li class="<?php echo ($staticPage->permalink()==$page->permalink())?'active':'' ?>"><a href="<?php echo $staticPage->permalink() ?>#main"><?php echo $staticPage->title() ?></a></li>
This does, at least, half of the job for me :-)
The page loads now like this:
Image
Is there a way to define the position more exact?

As I understand it, the #header tells the page to jump to a position by focusing the header section, right?
Would it be possible, to add an empty "object" called i.e. "jumppoint" and use this as the desired load position?
Any advice is highly appreciated!
Many Thanks in advance
Philipp
Philipp
Jr. Bludit
Posts: 4
Joined: Mon Feb 24, 2020 7:54 pm

Fri Mar 13, 2020 10:42 pm

I solved it...
added an additional tag in the nav area and pointed to that.
Post Reply