Forum OpenACS Q&A: Can ETP or modETP do this?

Collapse
Posted by Janine Ohmer on
I have another CMS puzzle...

I'm looking at a site that's currently done in HTML, and wanting to bring it into OpenACS.  It has a fairly typical structure of a left-hand nav bar of links, with a right-hand content block.

From what I have seen, ETP pages have either links or content, not both.  And the placement of the links never seems to vary, which implies that I couldn't shove them over to the left via templating.

An additional wrinkle is that they want to take a set of pages, copy them, and let the admin for each copy turn off some of the pages (in their own copy only).  I figure on adding a "hide" feature for links to do this.  But to avoid having to hide the same link on multiple pages I need that left nav bar to be an include.  So what I'm essentially looking to do is have an ETP page included inside another ETP page.  I have a feeling I'm way beyond what ETP will do here...

I haven't seen much of modETP.  Would it be suitable for this, if ETP won't handle it?

Other suggestions on how to accomplish this within an OpenACS/dotLRN framework are welcome!

Collapse
Posted by Dave Bauer on
Janine.

Sure it can do this.

The OpenACS.org home page is an ETP page.

The way I use ETP is to make a "page" for each navigation element and then include the contents on the "page" in the other templates. The code for the boxes on the OpenACS.org home page is here:

http://dev.openacs.org:8000//cvs/openacs.org-dev/www/templates/widgets/

It would be nice to use a portal-like system to add chunks to pages, but we aren't quite there yet.

I don't think adding/removing template elements is possible with ETP currently.

Collapse
Posted by mark dalrymple on
> So what I'm essentially looking to do is have
> an ETP page included inside another ETP page.

ETP can probably do this. For a prototype I did for my LUG, I stuck ETP contents into a little front-page widget thingie, outside of the usual ETP scope.

etp::get_content_items -packge_id ... can be used to get content items for any arbitrary package, so you ought to be able to in some form.

Collapse
Posted by Dave Bauer on
CVS moved

Example of openacs.org boxes is at

http://cvs.openacs.org/cvs/openacs.org-dev/www/templates/widgets/

Collapse
Posted by Orzenil Silva Junior on
Additional to DaveB link on openacs.org-br i think it could be very useful look at

https://openacs.org/doc/edit-this-page/applications

and

http://cvs.openacs.org/cvs/*checkout*/openacs.org-dev/tcl/openacsorg-init.tcl

on defining applications for etp.

I used etp aplications to get this http://ww2.creditofundiario.org.br (it uses etp application and includes for lars-blogger categories and random-photo)