设置动态 _DEFAULT_PI_VARS

Set dynamic _DEFAULT_PI_VARS

我必须设置plugin.tt_news._DEFAULT_PI_VARS.tt_news默认显示最新消息。所以我通过CONTENT.

得到了最新消息的uid
temp.newsUid = CONTENT
temp.newsUid {
    table = tt_news
    select {
        pidInList = 12345
        orderBy = datetime DESC
        join = tt_news_cat_mm ON tt_news_cat_mm.uid_local = tt_news.uid
        where = tt_news_cat_mm.uid_foreign = 4711 AND tt_news.deleted = 0 AND tt_news.hidden = 0
        max = 1
    }

    renderObj = COA
    renderObj {
        10 = TEXT
        10.field = uid
    }
}

plugin.tt_news._DEFAULT_PI_VARS.tt_news = temp.newsUid

将不起作用。但是我该怎么做呢?

这会起作用:

plugin.tt_news._DEFAULT_PI_VARS.tt_news.stdWrap.cObject < temp.newsUid