Forum .LRN Q&A: Insert code to a Porlet

Collapse
Posted by Pietro Zuco on
Hi all,

I need to implement some tools to the actual dotLRN platform. I'm not a OpenACS programmer, I'm just starting learning it.

I created a new porlet to use in a comunity and I introduced HTML code with some forms. That forms called an ADP file to insert data in the DB, but I coudn't...

Do I need to implement an OpenACS package or I just can upload code to the integrated porlet editor?

I was looking for develoment documentation about dotLRN but I coundn't find any. Where could I find some documentation about the dotLRN development?

Thank you in advance.

Pietro.

Collapse
2: Insert code to a Porlet (response to 1)
Posted by Risitas Es on
Cuñaooooooooooooooooooooooooooooooooooooo
Collapse
Posted by Rafael Calvo on
Pietro
Have you looked at the dotlrn documentation:
https://openacs.org/doc/dotlrn/

(it is alos in your local dotlrn instal: http://yoursite/doc/dotlrn)

cheers

rafael

Collapse
Posted by Malte Sussdorff on
Harsh as it might sound, the documentation is outdated and does not address the problem on how to write a .LRN Portlet.

Some general hints though:

You have three different packages. The application package where you should store the content that is being displayed in the portal in an include in the /lib directory. Look at project-manager/lib/tasks on how this is done.

The application-portlet package provides a wrapper for the include file in the /lib directory. It knows with which values to call the include and sets up specific portal information. Look at /project-manager-portlet/www/project-manager-tasks-portlet how this is done.

The dotlrn-application package integrates the portlet into .LRN. There is some magic involved (which I did not bother to understand) and the Applet shows up as the installable applets in your community.

In general there are two working modes for a portlet. One within a community where you should limit the display of content in the include to items that have the package_id of the mounted package within the community. And the mode where you display it in "My Space" where you will only limit the items displayed by the ones a user has permission to read.

The code I refer to lies in HEAD, hope this get's you started.

Collapse
Posted by Nima Mazloumi on