Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Template printing template code SS 2.4

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 219 Views
  • dylangrech92
    Avatar
    Community Member
    17 Posts

    Template printing template code SS 2.4 Link to this post

    This: <% _t( 'Appeak.Name', 'Name' ) %>
    Prints: <% _t( 'Appeak.Name', 'Name' ) %>

    Any idea why this is happening?

    I have this template in root/themes/themeName/templates/AppeakPokerWidget.ss,
    code in: root/appeakpoker
    lang files in: root/appeakpoker/lang

    Yes I have these in the lang file:
    global $lang;
    $lang[ 'en_US' ][ 'Appeak' ][ 'Name' ] = 'Name';

  • Bereusei
    Avatar
    Community Member
    94 Posts

    Re: Template printing template code SS 2.4 Link to this post

    I think, whitespace is missing, before and after %, isn't it?
    <% _t('Appeak.Name','Name') %>

  • dylangrech92
    Avatar
    Community Member
    17 Posts

    Re: Template printing template code SS 2.4 Link to this post

    Thanks man, it never crossed my mind that, that would have been the problem thanks

    219 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.