From tracadmin@urchin.earth.li Sat Nov 19 14:15:37 2005 From: OpenGuides To: openguides-tickets@lists.openguides.org Subject: [openguides-tickets] Re: [OpenGuides] #11: Edit page category/locale selection Date: Sat, 19 Nov 2005 14:15:37 +0000 Message-ID: <083.8bb1e7160d22db963c4d1e43fec5e5c2@urchin.earth.li> In-Reply-To: <074.43dee203f6ebd1b4762b76f248324a20@urchin.earth.li> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6419914452251518568==" --===============6419914452251518568== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit #11: Edit page category/locale selection ------------------------+--------------------------------------------------- Reporter: dom | Owner: Type: enhancement | Status: new Priority: normal | Version: Severity: normal | Resolution: Keywords: | ------------------------+--------------------------------------------------- Changes (by ChristopherSchmidt): * cc: => crschmidt(a)crschmidt.net Comment: Okay, so I've tossed something for this together on the Boston OpenGuides site. * Created CGI::Wiki::Plugin:: Summariser, for generating metadata summary lists, http://crschmidt.net/projects/Summariser.pm * Added some code to wiki.cgi in edit_node(): {{{ my $summariser = CGI::Wiki::Plugin::Summariser->new; $wiki->register_plugin( plugin => $summariser ); my @categories = $summariser->metadata_list( type => 'Category' ); my @locales = $summariser->metadata_list( type => 'Locale' ); my %tt_vars = ( global_categories => \@categories, global_locales => \@locales, ... }}} * Added some code to edit_form.tt: {{{ [% FOREACH category = global_categories %] [% category %] * [% END %] }}} and the same for locales. It's not a *clean* solution by any means, but it works, and should get anyone else who's interested in attacking the problem a running start. -- Ticket URL: OpenGuides The OpenGuides city guides project --===============6419914452251518568==--