Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 11 matches
Smarty Forum Index
Author Message
  Topic: Beyond the template engine
fbronx

Replies: 11
Views: 120174

PostForum: Article Discussions   Posted: Mon Mar 15, 2004 10:28 am   Subject: Re: XLST is not good for presentation
in XSLT to display a table, you'd have to create the following syntax:

<xsl:element name='table'>
<xsl:element name='tr'>
<xsl:element name='td'>

</xsl:element& ...
  Topic: looping an include file
fbronx

Replies: 0
Views: 7610

PostForum: Feature Requests   Posted: Fri Jan 23, 2004 10:07 am   Subject: looping an include file
Wouldn't it be nice to allow looping on included templates?
An example of what I mean:

{foreach name=book item=book from=$books}
{if $smarty.foreach.book.first}
<table& ...
  Topic: refering to conf-file values using variables from tpl-files
fbronx

Replies: 3
Views: 8040

PostForum: General   Posted: Thu Jan 08, 2004 10:39 am   Subject: refering to conf-file values using variables from tpl-files
The way I solved this problem is by creating a plugin:


function smarty_dynamic_config($params, &$smarty)
{
extract($params);

if ( isset($var) )
&# ...
  Topic: best way to build a multi-language site with smarty
fbronx

Replies: 210
Views: 1207624

PostForum: Tips and Tricks   Posted: Thu Aug 21, 2003 7:38 pm   Subject: best way to build a multi-language site with smarty

I'm currently working on a script that scans the template files and dumps the strings inside C gettext() calls so the gettext tools such as xgettext can use the strings from smarty.

Could it be p ...
  Topic: A plugin for redisplaying form input
fbronx

Replies: 4
Views: 16386

PostForum: Tips and Tricks   Posted: Wed Jul 02, 2003 7:33 pm   Subject: A plugin for redisplaying form input
LuCarD,

The problem I have with your solution is that is too much templated Laughing

I like to work with an HTML editor and look in a browser how it will look before I integrate it.

Franky.
  Topic: A plugin for redisplaying form input
fbronx

Replies: 4
Views: 16386

PostForum: Tips and Tricks   Posted: Tue Jul 01, 2003 9:31 pm   Subject: A plugin for redisplaying form input
I use the following plugin to redisplay forms (when an error occurs for instance) with the input of the user.

function smarty_form_value($params, &$smarty)
{
extract($params& ...
  Topic: Nested Directories containing templates
fbronx

Replies: 6
Views: 18330

PostForum: Installation and Setup   Posted: Fri May 30, 2003 9:21 am   Subject: Nested Directories containing templates
Hi,

I'm working also on a CMS like you're doing and I have the following structure:

/
/modules
/modules/user
/modules/user/templates
/modules/user/config
/themes
/themes/default
/themes/d ...
  Topic: {include} and compile_id
fbronx

Replies: 5
Views: 9819

PostForum: General   Posted: Thu May 29, 2003 6:35 pm   Subject: {include} and compile_id
Ok. I just found out that I can set the compile_id after reading the template like this:

function theme_get_template ($tpl_name, &$tpl_source, &$smarty_obj)
{
global $g_settings;
$fname ...
  Topic: {include} and compile_id
fbronx

Replies: 5
Views: 9819

PostForum: General   Posted: Thu May 29, 2003 5:43 pm   Subject: {include} and compile_id
Do you mean that the following code :

function theme_get_template ($tpl_name, &$tpl_source, &$smarty_obj)
{
global $g_settings;
$fname = dirname(__FILE__) . '/themes/' . $g_settings-> ...
  Topic: {include} and compile_id
fbronx

Replies: 5
Views: 9819

PostForum: General   Posted: Thu May 29, 2003 4:47 pm   Subject: {include} and compile_id
I'm using template resources and the {include} statement for the themes of my CMS I'm currently developping. My question is: how can I use a compile_id for the templates that come from a resource? At ...
  Topic: Themeing - best practices ?
fbronx

Replies: 21
Views: 48378

PostForum: Tips and Tricks   Posted: Wed May 28, 2003 8:21 pm   Subject: Theme resource
I use themes also for my CMS I'm working on and I've got the following problem:

Themes can be applied for several blocks on the page. That's why I always use {capture} and pass the content of the c ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP