17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1856 Views |
-
Tag Selector Field for blog

1 November 2007 at 1:53pm Last edited: 1 November 2007 1:56pm
Hi,
Just thought I'd share something I've been working on: a new form field, TagSetField, for selecting tags when you're posting with the blog module, inspired by the tagging in the del.icio.us plugin for Firefox.
To make it go you can put TagSetField.php into the project's /code folder and copy the styles from tagsetfield.css into you're theme's stylesheet (they're for BlackCandy).
In blog/code/BlogHolder.php's BlogEntryForm method replace
new TextField("Tags","Tags"),
with
new TagSetField("Tags","Tags", $this->Children()->toDropDownMap('Tags', 'Tags')),
to enable it for front-end blog editing.
It needs refining, but it works.
Hey, I can't see the attached files...is that not how it works? You can get the files here
-
Re: Tag Selector Field for blog

1 November 2007 at 10:13pm
great idea! just one suggestion: we prever to have javascript in external files (rather that customScript()). at the moment, this means an additional http-request and slows things down, but it leaves the opportunity to implement a serverside minifying/combining/caching in a future release (something we're currnently discussing to make the CMS load faster)
| 1856 Views | ||
|
Page:
1
|
Go to Top |



