[mir-coders] access article type from template?
lotu5 at resist.ca
Thu Dec 29 12:43:43 PST 2005
Ok, I was wrong, it still doesn't like it:
<!-- Couldn't get referent of blogentry: Couldn't get referent of
articleType: freemarker.template.TemplateModelException: MapAdapter: no
key articleType available
it has to be articletype.newswire , without the capital.
>> <If article.type == newswire>
>> Homepage: article.url
>> Read more: article.url
> in a template:
> <if article.to_article_type == ariticleType.newswire>
> <if article.articleType.name == "newswire">
>> Also, where would I look to find this answer myself? I wish I knew this
>> sort of thing by now, but my only mechanism for figuring this out is to
>> look at other templates...
> Right... well... erm...
encrypted mail preferred // gpg key id 0x250E12BF
More information about the mir-coders