Jump to:

3434 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » formatI18n(%B)

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1784 Views
  • dacar
    Avatar
    Community Member
    168 Posts

    formatI18n(%B) Link to this post

    Hi,

    in my Template i use the following control:

    <% control getArtikel %>   
    $Datum.FormatI18N(%B)</div>
    <% end_control %>

    And get the following error: Call to a member function XML_val() on a non-object
    Info from the .cache: $val .= $item->obj("ProjektDatum")->XML_val("FormatI18N",array("%B"),true) ;
    EDIT: using $Created.formatI18N(%B) outside the control works fine?!

    if i use

    <% control getArtikel %>   
    $Datum</div>
    <% end_control %>

    there is no error an $Datum returns "2009-12-09".

    in _config.php i have set: setlocale(LC_ALL, 'de_DE');

    Can anybody explain, what is happening here?

  • dacar
    Avatar
    Community Member
    168 Posts

    Re: formatI18n(%B) Link to this post

    Now i have the same Problem with: $SiteTreeContent.Summary(50)

    I have collected the data via $sqlQuery. Where is the problem? Can anybody help?

    Greetings, Carsten.

    1784 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.