DrLightman Posted December 8, 2012 Share Posted December 8, 2012 Let say I've created a new page "special-deals.php" with its controller and its "special-deals.tpl" file under my theme folder. In this page I've some paragraphs of text that I need to change regulary, but I'm too lazy to go and edit the .tpl file every time so I'd like to have something in the administration area to do that. What is the optimal/fastest/better way to accomplish that? Thank you. Link to comment Share on other sites More sharing options...
mohsart Posted December 8, 2012 Share Posted December 8, 2012 One way is to use the {l s='blablah'} notation, that way you can change the text via the translation tool /Mats Link to comment Share on other sites More sharing options...
NemoPS Posted December 8, 2012 Share Posted December 8, 2012 I agree with mohsart. If it's ina a module, be sure you also add mod='modulename' inbetween the brackets, or it won't show up in back office. Link to comment Share on other sites More sharing options...
mohsart Posted December 8, 2012 Share Posted December 8, 2012 Actually it shows up (if you mean in the translation) but won't work, i.e. the translated string won't show up. So yes, use {l s='Text' mod='module'} :-) /Mats Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now