Update: Oops, looks like I posted in the wrong area. Sorry. It's kind of a question, kind of a statement.
I am about 3/4 through converting the standard News module to make it pnRender compliant. News is very busy on my site and I want to take advantage of caching. The application of permissions on the main index page is kind of a pain due to the caching so I started wondering if anybody else has done this or is it available somewhere already? Would hate to duplicate efforts.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pnRender compliant News Module ?
-
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
take a look at the News Mod in the Value Addons package available with the v.8 stuff -
- Rank: Team Member
- Registered: Jan 02, 2003
- Last visit: Oct 21, 2009
- Posts: 800
Even in .762 it is possible to use templates for News. Just check the core theme, e.g. PiterPanv2, and see the News-index.htm and News-article.htm templates.
--
"He is not dangerous, he just wants to play...." -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 68
Ok, I see that version 8 seems to be heading in the right direction. I have to get this working with .762 though, it's kind of a priority.
Landseer, I see that templating is possible but it seems only half-way so. As one example, the comments section that gets dropped at the bottom of an article is built into the PHP code so that has to be manually adjusted. I would rather the entire display logic gets processed in the template. I also don't see where I can get news items to cache (and skip the DB hit if so). Unless I'm missing something...
And one other thing. As the news module was designed, articles could be submitted by non account holders (using the "informant" field). For internet-facing sites, the way the module was designed is just perfect but this has made things a bit tough for me since there is no direct way to correlate an article submitter with the actual account that posted it. My site is used on an intranet and there is no anonymous usage of the site at all per our security policies (my PN instance authenticates to Active Directory) As an example, I needed to adjust the field that shows the article poster so it would show full name instead. It wasn't too hard to pull of but I had to adjust the core code of the module which makes upgrades difficult. I would rather news articles are associated to a specific user account by the user ID. (I see that the "informant" field is still used in ver .8)
Hopefully, this doesn't sound too nitpicky. I'm willing to do the work to pull this off, just wanted to make sure someone hadn't beat me to it! -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
-
- Rank: Team Member
- Registered: Jan 02, 2003
- Last visit: Oct 21, 2009
- Posts: 800
I must admit that the templating of News in .762 is a workaround only. This module is based on the original PHP-Nuke News module - including the DB structure and everything, incl. the security problems we had so far. For .8 it has been completely rewritten from scratch. No one touches the original code if not being forced to do so
Using EZComments instead of the normal .762 Comments module makes it possible to create some appealing layouts (see http://support.pn-cms.de - this one uses News + EZComments in a totally different design as usual).
Pagesetter is an alternative too, it even can import the original News, but with some basic knowledge you can achieve the same without the need to learn Pagesetter.
Frank
--
"He is not dangerous, he just wants to play...." -
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
personofinterest
Ok, I see that version 8 seems to be heading in the right direction. I have to get this working with .762 though, it's kind of a priority.
I haven't tried it, but it probably would work with 762. many modules released int he .76x series came from the .8 codebase. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
It definately won't work with .76x due to to the use of dbutil (part of the Openstar object library).
You can get a pretty good look to the news module even without full templating - for example my site. I use a combination of the standard news module, EZComments with some custom templates, trackback module along with bbcode and smilie hooks.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Not sure - that might work.... But i've not really used the Openstar libraries apart from the ones that we're using in .8x.
-Mark
--
Visit My homepage and Zikula themes.
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
