Fork me on GitHub

pnRender compliant News Module ?  Bottom

  • 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.
  • take a look at the News Mod in the Value Addons package available with the v.8 stuff
  • 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...."
  • 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!
  • Just use Pagesetter to replace News.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • 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 icon_smile

    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...."
  • 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.
  • 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.
  • what if one installed the v4blib from Openstar?
  • 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.
  • 0 users

This list is based on users active over the last 60 minutes.