WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • How to make a news entry from a sidebox open in the main page?
  • Print
Pages: [1]   Go Down

Author Topic: How to make a news entry from a sidebox open in the main page?  (Read 4186 times)

Offline Unicornis

  • Posts: 8
How to make a news entry from a sidebox open in the main page?
« 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.
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
Logged

Offline crnogorac081

  • Posts: 2162
  • Gender: Male
Re: How to make a news entry from a sidebox open in the main page?
« Reply #1 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
Logged
Web developer

Argos

  • Guest
Re: How to make a news entry from a sidebox open in the main page?
« Reply #2 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
Logged

Offline Unicornis

  • Posts: 8
Re: How to make a news entry from a sidebox open in the main page?
« Reply #3 on: July 26, 2009, 11:20:15 PM »
Thanks a lot, AnyNews works very well for me.

Cheers.
Danny
Logged

Argos

  • Guest
Re: How to make a news entry from a sidebox open in the main page?
« Reply #4 on: July 26, 2009, 11:30:02 PM »
Good to hear!  :-D
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • How to make a news entry from a sidebox open in the main page?
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2