Welcome, Guest. Please login or register.
March 20, 2010, 05:27:56 AM

Login with username, password and session length
Search:     Advanced search
WB 2.8.1 veröffentlicht!
Download und weitere Informationen gibt es hier .
110507 Posts in 15959 Topics by 9306 Members
Latest Member: suibian
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Different sections for news groups
Pages: [1] Go Down Print
Author Topic: Different sections for news groups  (Read 194 times)
fboehlandt

Offline Offline

Posts: 61


« on: September 28, 2009, 09:22:53 PM »

Hello everyone,
I defined two distinct news groups: 'News' and 'Other news'. I would like the first group to be displayed in a primary content area (aligned left) defined in my CSS, the 'Other news' items in a secondary content area (aligned right). The news settings apply to all news groups and I cannot make amendments to the display of news groups (except the picture). My first idea was to use something like an if-function in the header of the news settings:

Code:
<?php
If ($group=1) {

I'm not sure how to implement this...Is it easier to define separate blocks for the two news groups? And how would I go about assigning the news groups to the blocks? I'm using the standard WB news module. Any help is greatly appreciated...
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 5560


WWW
« Reply #1 on: September 28, 2009, 10:09:07 PM »

I would say, take a look at the anynews snippet modul for this purpose. You use 2 calls, one for group1 and the other one, you guessed it, for the rest. Then you can call them within DIVs and position those DIVs wherever you want. You could even use the simple template system of anynews and style the output with that.

cheers

Klaus
Logged

http://www.weitzel.biz
PM has been disabled
crnogorac081

Offline Offline

Posts: 1161



« Reply #2 on: September 28, 2009, 10:19:13 PM »

You can find Anynews snippet which with you can define group ID from which you want news to be extracted

Go to AMASP: http://www.websitebakers.com/pages/code-snippets/listings/anynews.php

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!