WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Unicornis on July 24, 2009, 04:53:44 PM

Title: How to make a news entry from a sidebox open in the main page?
Post by: Unicornis on July 24, 2009, 04:53:44 PM
Hello everybody

I've just started with a new WebsiteBaker page and added a news block in a sidebox away from the maincontent.
now I'd like to have the News entry selected to open from a user to open in the main page but it only opens in the sidebox.

How could I realise?

The page is http://dannyliebig.de/nmni-test (http://dannyliebig.de/nmni-test).
When you click on the news entry on the right hand side you can see what I mean.

The base for this page was WB 2.7 and the Argos1 template, perhaps anyone already has some experience with this.

I'd be happy if you could give me some advice.

Bye and thank you in advance.
Danny
Title: Re: How to make a news entry from a sidebox open in the main page?
Post by: crnogorac081 on July 24, 2009, 05:08:31 PM
the main box in index.pxp should have this code: <?php page_content(); ?>

and sidebox this: <?php page_content(2);  ?>

Also in info.php $block[2]='Right box';    --- additional block must be defined.

If you have some other settings, then attach the template to check it out.

cheers
Title: Re: How to make a news entry from a sidebox open in the main page?
Post by: Argos on July 25, 2009, 01:04:23 AM
Nice version of my template, I like it!

The news problem can be solved by using the AnyNews function in the block, instead of a regular news section.
http://www.websitebakers.com/pages/code-snippets/listings/anynews.php
Title: Re: How to make a news entry from a sidebox open in the main page?
Post by: Unicornis on July 26, 2009, 11:20:15 PM
Thanks a lot, AnyNews works very well for me.

Cheers.
Danny
Title: Re: How to make a news entry from a sidebox open in the main page?
Post by: Argos on July 26, 2009, 11:30:02 PM
Good to hear!  :-D