Author Topic: OnePage demo template  (Read 16196 times)

Offline Ruud

  • Posts: 3660
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: OnePage demo template
« Reply #25 on: October 12, 2015, 02:03:15 PM »
What you are suggesting is just not possible..

The call $op->page_content() gives all content for all pages into a one-pager template.
If the class would generate separate sections you would get a full website section(2) output in that call.

Doing it the way you are suggesting you should use something like globalBlocks for all blocks/sections in your template and create the menu hardcoded.

You are making a mistake in thinking you need a content section for the full screen images.
In this template these images are backgrounds, set by CSS, not set as content.
The output of the onepager class does generate a perfect output to do exactly what you want.
You just need to remove the .wrap and .container from the template/index.php and understand the CSS included in your template and modify it with the correct id and class selectors.

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: OnePage demo template
« Reply #26 on: October 12, 2015, 02:56:33 PM »
Thank you Ruud, I guess I understand what you mean, but I don't realy know how to achieve this with css I tried what you said and gave all my pages it's own css id so that the image is shown but it is shown as a background to a whole content. And when I do that I lose the content that should be in those three columns.


Oh, ..I guess I will have to pass on that one, just can't figure it out. ;)




Thank you


R



Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: OnePage demo template
« Reply #27 on: October 12, 2015, 03:14:38 PM »
Ok, I actualy did it with a simple, not realy good but working method. I put the html from the template into the wysiwyg section and I can now do exactly what I wan't and it's working as I need. I just have to be careful not to delete the divs out of the wysiwyg area, hehe ;)




Thank you


R

Offline quinto

  • Posts: 103
    • http://www.clubnumeric.org/
Re: OnePage demo template
« Reply #28 on: December 07, 2015, 02:39:48 PM »
thanks a lot Ruud it's a very elegant way to make a "new design" one page site without changing anything in the content, WB is a very very flexible CMS, one time again WB amazed me :)


 

postern-length