Forum OpenACS Q&A: Re: integrating i.e. blogger include into etp...

Collapse
Posted by Jun Yamog on
Hi David,

It maybe that you my have to create a custom tag.  Say
<recent item="blog" num="10">.  Put that tag into etp and you have to parse the etp content.  Although I find it not good to have content using those.  Since we should try to make content as content and layout to templates.

I guess a better idea is to put that into template and have the template be editable by the browser.  Current ad CMS and bcms-ui-base is able to edit it via browser.  No fancy stuff still adp stuff and textarea.  Then it saves to the db as like any content item and the content type is content_template.  You then write this template to a dir.  Just write the string into file.  Then when you serve the page, look up which template in the db.  And just ad_returntemplate to that file.

I guess the suggestion above will require some real coding.  But it does work for me.  I don't however have any custom tags.