List Info

Thread: Programatic Addition of Categories (Coreblog2)




Programatic Addition of Categories (Coreblog2)
user name
2006-04-03 22:19:49
Another quick, but probably slightly less simple question.

I am adding a CoreBlog to each members folder on creation of
said 
folder, however my attempts to create a default
"general" category have 
not entirely worked - the CoreBlog doesn't list it as a
category on the 
front page (in the portlet on the left).

Obviously I've neglected to properly follow the creation
code. Any tips 
on what I've missed?

Current code is as follows (as stunningly unexciting as it
is):

> blog_folder = member_folder['blog']
> categories_folder = blog_folder['categories']
> _createObjectByType('COREBlogCategory',
categories_folder, 
> id='personal-reflections')
>
categories_folder['personal-reflections'].setTitle('Perso
nal 
> Reflections')

Cheers

---
Edward J. Pollard, B.Sc
Webmaster, University of Lethbridge

_______________________________________________
COREblog-en mailing list
COREblog-enpostaria.com
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en

Unsubscription writing to coreblog-en-leavepostaria.com
[1]

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