Forum .LRN Q&A: difference in mounting portlet applets

Hi,

just been studying the code for both the news and calendar portlets , specifically the

dotlrn-news-procs.tcl
dotlrn-calendar-procs.tcl

and realised they mount and add their portlet in different ways , one uses instantiate_and_mount while the other doesnt

is there a reason for this ? how can we tell which one to use when developing our own portlet ?

thanks
abbas

Collapse
Posted by xx xx on
I don't know about the differences, but:

"If you want your code to be well-behaved dotLRN code, the portlet addition should be done from within a dotLRN applet (Ben Adida, Openforce; https://openacs.org/forums/message-view?message_id=58622 )."

Verify that your package is in dotlrn_applets and portal_datasources and both service contracts are added (search for AcsSc on http://yoursystem/api-doc). Restart the server and watch the logs.