Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

'Front Page' Option For Perl News Items

by Old_Gray_Bear (Bishop)
on Aug 20, 2007 at 17:46 UTC ( #633885=monkdiscuss: print w/replies, xml ) Need Help??

Every so often something like Map places, people, and relationships inside a building with open source software comes along and I'd like to give it more exposure in the Monastery. But, short of opening a SoPW item ("Has anyone else read Item xxxx? What do you think?"), I don't know of another way to give a Perl News item a wider audience. I think this is the thing that the 'Front Page' option is intended to provide, but FP is not an option for News; would it possible to add FP to news-items? (Note: I do not know how big a can-of-worms I am opening here. I would hope that "Front-Page" is a simple setting available at the individual node level. But, if it a function of a category of nodes (SoPW, Discussion, Poetry, etc.), then I can see why it would be more difficult to add the ability. I have not poked around the Code&Doc enough to know.)

Comments? Brick-bats?

I Go Back to Sleep, Now.


  • Comment on 'Front Page' Option For Perl News Items

Replies are listed 'Best First'.
Re: 'Front Page' Option For Perl News Items (work)
by tye (Sage) on Aug 21, 2007 at 03:11 UTC

    This came up before and I mentioned that I clearly recall documenting all of the steps that I didn't do which are why Perl News doesn't require approval and can't be front-paged. The people who were interested in changing that could not find what I wrote. So I looked (again) and found only a small part of it. Quoting myself from the "pm-port wiki":

    tye 2002-05-24
    I fixed several things wrong with Perl News which included changes to perlnews (the node type), Perl News, perlnews display page, preview settings, vote settings, writeupmover, and perhaps a few others.

    The first problem was that adding new Perl News actually added new poetry. Of course, I noticed this because someone added news so I wanted to move it into the proper section. However, the node type of perlnews uses the dbtable of perlnews in order to add a linklocation field which makes it impossible to simply "move" to/from that node type. But search internal code shows that this extra field is not used currently so I changed the node type to not use that dbtable and then made "Perl News" one of the available move-to types. And I made it so you can vote on "Perl News" nodes.

    Since the work to set up the (unduely complicated) "approval link type" and related baggage has not been done, you can't "approve" Perl News nodes. This means that the approval nodelet won't show. Which means that some ppl can move a node to Perl News after which only editors will be able to move it anywhere else. The best solution is probably to create all of the baggage and make Perl News items require approval.

    Unfortunately, that was before patches were well used. And it isn't really much like what I remember writing (which I probably wrote about fixing approval so that it did work for some other section).

    So, anyway, someone besides me needs to either learn the really old (and ugly) approval system and the newer (flawed) approval system that ar0n wrote in hopes of replacing the old one (we currently use both of them) and then create the ugly hacks required to make the old one work on one more section and the probably minor changes to make the new one work (as well as it does) on it also.

    Or someone could pick up the new approval system that would eliminate some really expensive SQL queries. I mostly wrote it years ago and castaway finished writing it and then even tested it (years ago now as well). It has been sitting around about 1/3 implemented hoping someone would start up on the next step again.

    If we get that deployed, then making news approvable doesn't require ugly hacks.

    Unfortunately, I'm barely finding spare time to finish some much more important PM work since I still have a job and a family, so I won't be spending time on either of those tasks any time soon.

    - tye        

      Hmm, so the implication is that the sections are hard coded in to Perl Monks and thus things like adding a new section, cloning one, or even merging sections, etc. would also be very difficult and/or time consuming? Mostly a rhetorical question but it doesn't hurt to ask.
Re: 'Front Page' Option For Perl News Items
by Gavin (Archbishop) on Aug 20, 2007 at 18:14 UTC
    Sounds like a good idea to me
    I for one wasn't aware that News could not be "Front Paged".

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://633885]
Approved by liverpole
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2022-12-01 14:34 GMT
Find Nodes?
    Voting Booth?