Hi,

OK, now I have it saving and generating a URL.  I've changed it
slightly, here is the update:  http://paste.ifies.org/101

It's still only outputting the URL 
http://digitalspaghetti.me.uk/snippet/test-snippet,
which doesn't include the language.  Also when I try view it, it
redirects to 
http://digitalspaghetti.me.uk/test-snippet?entire_match=snippet%2Ftest-snippet&tag=snippet
and gives a 404.

Any ideas what I need to do here?  I try to output the vars, but i
think with the redirect they are not showing

On Oct 4, 7:18 pm, Arthus Erea <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to