| Re: Can a file include tag be used in a language file define? |
| by trspice on 2007/4/16 23:26:55 Many thanks :) |
| Re: Can a file include tag be used in a language file define? |
| by Catzwolf on 2007/4/16 18:34:22 Actually there is an easier way of doing this. Do as dave says, and include your define files and use this smarty tag instead: like define('_MY_DEFINE', 'My Text'); and in the html file: <{$smarty.const._MY_DEFINE}> Catz |
| Re: Can a file include tag be used in a language file define? |
| by Dave_L on 2007/4/16 18:26:21 I don't think you can embed an "include" within a "define" value, unless there's a tricky way of doing it with "eval". You could either (1) add the text in main.php: define("_USERPAGE_EMPTY_PAGE"," text more text and more text "); or (2) put it in a separate file other.php: and change main.php: #define("_USERPAGE_EMPTY_PAGE","Disclaimer and rules"); include('other.php'); |
| Re: Can a file include tag be used in a language file define? |
| by trspice on 2007/4/16 17:34:24 Thanks for the suggestions. Both still print the code on the page instead of the text from the file. Here is exactly what I am doing I am using Userpages module and want to add significant amount of text to language/main.php line 38 le="color: #000000"><?php define("_USERPAGE_EMPTY_PAGE","Disclaimer and rules");
|
| Re: Can a file include tag be used in a language file define? |
| by skenow on 2007/4/15 13:10:28 What is the filetype of the language file you are using? If you are using a php file, your include statement would be Quote: include 'path/file.html'; The <{include file="path/file.html"}> would be for use in an html file. |