List Info

Thread: Adding metadata to a blog entry




Adding metadata to a blog entry
user name
2006-03-15 00:49:05
Hello -

I am trying to add metadata to an entry when it is being
saved. The 
plugin compiles okay and everything else in the plugin works
fine except 
the metadata is not saved to the entry.meta file.  There is
nothing in 
the log files indicating an error occurred. Does anyone have
any ideas 
what I'm doing wrong?


My plugin handleEvent looks something like:


public void handleEvent(BlojsomEvent event) {

       if (event instanceof AddBlogEntryEvent) {
                BlogEntryEvent entryEvent = (BlogEntryEvent)
event;

           ...
           ...
           ...
          
entryEvent.getBlogEntry().getMetaData().put("meta-key-
name", 
"meta-value");
          ...
           ...
           ...
   }
}



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
that extends applications into web and mobile media. Attend
the live webcast
and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Adding metadata to a blog entry
user name
2006-03-15 01:09:20
Move the code to the processEvent(...) method and listen for
the the
ProcessBlogEntryEvent. This is fired before the blog entry
is saved and is
where you can add some meta-data to the blog entry to have
it saved.

The AddBlogEntryEvent is not necessarily misleading in its
name, but it's an
event fired after the blog entry has been added.


On 3/14/06 7:49 PM, "Rich Buchanan" <richnorthcarroll.com> wrote:

> Hello -
> 
> I am trying to add metadata to an entry when it is
being saved. The
> plugin compiles okay and everything else in the plugin
works fine except
> the metadata is not saved to the entry.meta file. 
There is nothing in
> the log files indicating an error occurred. Does anyone
have any ideas
> what I'm doing wrong?
> 
> 
> My plugin handleEvent looks something like:
> 
> 
> public void handleEvent(BlojsomEvent event) {
> 
>        if (event instanceof AddBlogEntryEvent) {
>                 BlogEntryEvent entryEvent =
(BlogEntryEvent) event;
> 
>            ...
>            ...
>            ...
>           
entryEvent.getBlogEntry().getMetaData().put("meta-key-
name",
> "meta-value");
>           ...
>            ...
>            ...
>    }
> }
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a
groundbreaking scripting language
> that extends applications into web and mobile media.
Attend the live webcast
> and join the prime developer group breaking into this
new coding territory!
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

-- 
David Czarnecki

http://www.blojsom.com/b
log/ | http://blojsom.sf.net




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
that extends applications into web and mobile media. Attend
the live webcast
and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )