Forum .LRN Q&A: Re: AUBG Plans a .LRN Pilot and Seeks Advice for the Startup Phase

Hey Grigor,

we are using lars-blogger for news and etp as a kind of cms...

We have a *dirty* hack that lets you interpret procedures within an etp page. We are using the following code:

## article-index.tcl and article-content.tcl
foreach element { content } {
    if { [catch {
        set code [template::adp_compile -string $pa($element)]
        set pa($element) [template::adp_eval code]
    } errMsg] } {
        global errorInfo
        ns_log Error "$errMsg while evaluating ETP ADP page at [ad_return_url]: \n$errorInfo"
    }
}

## inside content of an etp page:
<div style="float: right; width: 30%; border: 1px solid #cccccc; padding: 8px;">
<%=[lars_blog_get_as_string -url "/weblog"] %>
</div>

Cheers