On 7/30/05, William Morgan <[EMAIL PROTECTED]> wrote:
> I think that's a good idea. It's easy to customize comment and trackback
> types at the user level, but for trackbacks in particular, Hobix::Entry
> really doesn't make that much sense.
Okay, I've reworked my patch a little, not quite sure if the
indentation conforms to the desired, but I think so.

Comments and Trackbacks now have their own types. I've broken the
comment template into two (the actual comment list, and the entry
form).

The comment type has pretty much the same field names as those used of
Entry (so your existing templates shouldn't break), with the addition
of "url", "email" and "ipaddress".

The trackback code now automatically drops the RDF comment inline
alongside your entry also, this is improved over the snippet I posted
earlier as it uses REXML to build up the XML, fixing any escaping
issues.

I derived from BaseContent instead of object, to get all the YAML helpers.

You can arrange in which order trackbacks or comments appear in your
blog by shifting the requires ordering in hobix.yaml (they both append
to the same templates for their hooks).

Comments welcome...I think there's nothing blog-specific in my patch
but feel free to point out suck :)

Leon

Attachment: hobix-trackbacks-comments-0.3.patch
Description: Binary data

_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to