#1 May 24, 2015 10:00am

visconti
Member
From: Netherlands
Registered: May 22, 2015
Posts: 27

News extension

Think you already developed a news handling extension. Perhaps you could share it in the extension library? Would be much appreciated!

Offline

#2 May 24, 2015 10:18am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: News extension

We generally don't package up extensions with templates due to the nature of front ends being so specific. For that reason we don't really have a news extension ready to package up -- we generally rebuild the news module from scratch for each site we build because it's so simple (and the fields for it vary between clients other than date / title / body copy).

If you're just looking for something to get some implementation ideas from I can package up something from one of our site builds. It wouldn't be an extension, though (packages install into the global "namespace" in BigTree).

Offline

#3 May 24, 2015 10:27am

visconti
Member
From: Netherlands
Registered: May 22, 2015
Posts: 27

Re: News extension

Would be nice if you could pack me one up. Indeed was looking for some input on how to tweak it at best with BigTree ;-)

cheers

Offline

#4 May 28, 2015 12:37pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: News extension

Sorry for the delay in getting back to you -- got swamped with other updates.
You can grab the news package here: http://www.timbuckingham.com/packages/news.zip

It's a fairly old news setup but hopefully it gives you some ideas. It includes a news module, class, and a routed template.

Offline

#5 May 29, 2015 2:47am

visconti
Member
From: Netherlands
Registered: May 22, 2015
Posts: 27

Re: News extension

No worries, was busy setting up the events calendar as well ;-).

Thanks for sharing the package, it's all clear to me now!

Offline

#6 May 12, 2016 9:42am

userbot
Member
Registered: April 22, 2016
Posts: 31

Re: News extension

You can restrict the number of news, for example, show only four last news?

Offline

#7 May 12, 2016 9:43am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: News extension

You can call the getRecent method of the news module's class to return the latest 4 news items.

Offline

#8 May 12, 2016 9:58am

userbot
Member
Registered: April 22, 2016
Posts: 31

Re: News extension

timbuckingham wrote:

You can call the getRecent method of the news module's class to return the latest 4 news items.

How to use the template in the news?
and /news/details/ 8    (id 8 to Tile)

Last edited by userbot (May 12, 2016 10:01am)

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.