[ 
http://jira.magnolia-cms.com/browse/MGNLSTK-656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Ringele updated MGNLSTK-656:
--------------------------------------

    Description: 
Is:
[#if model.website?has_content]
    <div>
        <h3>${i18n['contact.web.title']}</h3>
        <dl class="url">
            <dt>${i18n['contact.web']}</dt>
            <dd class="url"><a 
href="${model.website?html}">${model.contact.web?html}</a></dd>
        </dl>
    </div>
    [/#if]



Should be:
[#if model.contact.web?has_content]
    <div>
        <h3>${i18n['contact.web.title']}</h3>
        <dl class="url">
            <dt>${i18n['contact.web']}</dt>
            <dd class="url"><a 
href="${model.website?html}">${model.contact.web?html}</a></dd>
        </dl>
    </div>
    [/#if]


Or without a website defined in the contact, a freemarker error occurs:
freemarker.core.InvalidReferenceException: Expression model.contact.web is 
undefined on line 104, column 63 in ...
        at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)

Or the website method of the model should not return something if no web 
property defined.

  was:
Is:
[#if model.website?has_content]
    <div>
        <h3>${i18n['contact.web.title']}</h3>
        <dl class="url">
            <dt>${i18n['contact.web']}</dt>
            <dd class="url"><a 
href="${model.website?html}">${model.contact.web?html}</a></dd>
        </dl>
    </div>
    [/#if]



Should be:
[#if model.contact.web?has_content]
    <div>
        <h3>${i18n['contact.web.title']}</h3>
        <dl class="url">
            <dt>${i18n['contact.web']}</dt>
            <dd class="url"><a 
href="${model.website?html}">${model.contact.web?html}</a></dd>
        </dl>
    </div>
    [/#if]


Or without a website defined in the contact, a freemarker error occurs:
freemarker.core.InvalidReferenceException: Expression model.contact.web is 
undefined on line 104, column 63 in css-intranet/paragraphs/contact.ftl.
        at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)

Or the website method of the model should not return something if no web 
property defined.


> extrasContactTeaser: wrong checking of the website property in template
> -----------------------------------------------------------------------
>
>                 Key: MGNLSTK-656
>                 URL: http://jira.magnolia-cms.com/browse/MGNLSTK-656
>             Project: Magnolia Standard Templating Kit
>          Issue Type: Bug
>          Components: paragraphs
>    Affects Versions: 1.3.1
>            Reporter: Christian Ringele
>            Assignee: Ondřej Chytil
>
> Is:
> [#if model.website?has_content]
>     <div>
>         <h3>${i18n['contact.web.title']}</h3>
>         <dl class="url">
>             <dt>${i18n['contact.web']}</dt>
>             <dd class="url"><a 
> href="${model.website?html}">${model.contact.web?html}</a></dd>
>         </dl>
>     </div>
>     [/#if]
> Should be:
> [#if model.contact.web?has_content]
>     <div>
>         <h3>${i18n['contact.web.title']}</h3>
>         <dl class="url">
>             <dt>${i18n['contact.web']}</dt>
>             <dd class="url"><a 
> href="${model.website?html}">${model.contact.web?html}</a></dd>
>         </dl>
>     </div>
>     [/#if]
> Or without a website defined in the contact, a freemarker error occurs:
> freemarker.core.InvalidReferenceException: Expression model.contact.web is 
> undefined on line 104, column 63 in ...
>       at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
> Or the website method of the model should not return something if no web 
> property defined.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to