Re: Setting depth with the flav_config plugin
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 4 Dec 2004, Stuart Langridge wrote: > > Calling it from cb_filelist works fine. I have one additional problem: > with the depth limited to 1 in a directory, if there are no entries in > that directory then I get the "The page you are looking for is not > available" thing from the renderer. This doesn't seem to be > overrideable: cb_prepare runs before that gets called, and if there are > no entries in the list then the "The page you are looking for is not > available" message is displayed. I suppose I could throw a fake entry > into entry_list from cb_prepare, but that seems really crufty. How > should I get around this? I suppose I could also write a new renderer > that knows to ignore that message, but that seems like a lot of work! I think you have to check cb_prepare to see if the entry list is empty and if so, toss an entry in. I don't think there's another "simple" way to do it. If the entry list is empty, we consider that like a "404" kind of thing: the user is requesting to see things that don't exist. I'm not sure why you'd want to modify that behavior. /will ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/