Hi Tane, Well, it looks like you don't have a hook which will be used for the display of snippets.
Your rewrite rule tries to run the 'display_snippets' action. So, you'll need to add a hook like this: action_handler_display_snippets. Any code in that function will be executed when your rule is called. On Oct 4, 2008, at 2:12 PM, Tane Piper wrote: > > Hey folks, > > I'm working on a new plugin called 'Snippet'. It's a pastebin-like > application that allows you to collect snippets of code in an > organized fashion. > > I've started writing the basic outline here: http://paste.ifies.org/ > 100 > > In it, I have the form to create the snippet type and the options area > for it, but when I try view it it just shows me the form again. > > I don't want the snippet type to show up in the blog, in the initial > version they are more like pages and I want to view them by: > > /snippet/<slug> > > Anyway, I've pasted my latest code and it doesn't seem to be working. > Can anyone point out how I can link my content type with a view? > > Thanks, > Tane > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/habari-dev -~----------~----~----~----~------~----~------~--~---
