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 12 matches
Smarty Forum Index
Author Message
  Topic: truncate - this correct ?
garryhs

Replies: 1
Views: 4474

PostForum: General   Posted: Wed Feb 21, 2007 4:06 am   Subject: truncate - this correct ?
Hi

Going to truncate the length in the template based on config setting defined in php

$smarty->assign("articleTitle","The mouse ran up the clock")
$smarty->assign(&qu ...
  Topic: Variable inside a variable
garryhs

Replies: 2
Views: 9120

PostForum: General   Posted: Wed Feb 21, 2007 3:57 am   Subject: Variable inside a variable
Not sure on the correct answer, but I am sure you can do it as a replace.

---------------------------------------------------------------------

In php

$smarty->assign("text1", &q ...
  Topic: Complex Question - {include file="filename.tpl"}
garryhs

Replies: 5
Views: 7550

PostForum: General   Posted: Wed Nov 22, 2006 11:24 pm   Subject: Complex Question - {include file="filename.tpl"}
i thought about modifing the compiler and inserting another case inc and sort or replicating the include file code., but will need to keep this all in the one section in the case as i do not want to h ...
  Topic: Complex Question - {include file="filename.tpl"}
garryhs

Replies: 5
Views: 7550

PostForum: General   Posted: Wed Nov 22, 2006 3:51 am   Subject: Complex Question - {include file="filename.tpl"}
And I guess I have that wrong as well, maybe I should just be looking at something like {inc 34} ????
  Topic: Complex Question - {include file="filename.tpl"}
garryhs

Replies: 5
Views: 7550

PostForum: General   Posted: Wed Nov 22, 2006 3:47 am   Subject: Complex Question - {include file="filename.tpl"}
Just to add to this, the existing {include file="directory/template.tpl"} r not to change.

Any better ways of doing this then just let me know, I just want minimal change to the original ...
  Topic: Complex Question - {include file="filename.tpl"}
garryhs

Replies: 5
Views: 7550

PostForum: General   Posted: Wed Nov 22, 2006 3:39 am   Subject: Complex Question - {include file="filename.tpl"}
Hi all,

I want to replicate the {include file="xxxx.tpl"} into a more compress form.

I also want to do it with as minimal change to smarty files as possible.

What I want it to look ...
  Topic: Help Needed - Problem with Variables
garryhs

Replies: 1
Views: 3791

PostForum: General   Posted: Fri Feb 03, 2006 4:27 am   Subject: Help Needed - Problem with Variables
Hi all,

I have a problem which I cannot figure out.

I have a large array of language variables, which are reference as per below in smarty.

{$language.post_code}
{$language.country}

Now m ...
  Topic: Smarty Expect Required - { include file="....
garryhs

Replies: 1
Views: 3905

PostForum: General   Posted: Thu Dec 08, 2005 1:44 am   Subject: Smarty Expect Required - { include file="....
Hi all,

Is it possible to have the following in a template...

Normally, you would have

{ include file="test.tpl" }

which could collect it from the current template directory.

What I wa ...
  Topic: Has anybody written any code to detect mobile device
garryhs

Replies: 1
Views: 9668

PostForum: Smarty Development   Posted: Mon Nov 07, 2005 1:03 am   Subject: Has anybody written any code to detect mobile device
Hello all,

Has anyody written some PHP or Smarty code to determine mobile device.

Example: Phone, PDA (Pocket PC).

I am interested in reading the UA-OS and UA-pixels, so a alternate skin can ...
  Topic: Several template directories
garryhs

Replies: 5
Views: 10178

PostForum: General   Posted: Mon Oct 10, 2005 12:01 am   Subject: Multiple Template Directories
Boots,

Just wondering, I was going to create a new template directory and put it in front of my standard directory, however the new directory will only have a few templates, as I do not want to alt ...
  Topic: math problem with arrays ?
garryhs

Replies: 1
Views: 4599

PostForum: General   Posted: Sat Oct 23, 2004 2:22 pm   Subject: math problem with arrays ?
Hi,

I seem to have a problem with some math equations...

{math equation="x+y" x=$abc.amount y=$xyz.amount assign="abc.amount"}

I have also tried...

{math equation="x+y" x=$abc.amount y=$xy ...
  Topic: Complax Arrays & Templates ?
garryhs

Replies: 1
Views: 9538

PostForum: Tips and Tricks   Posted: Sun Jun 20, 2004 12:04 pm   Subject: Complax Arrays & Templates ?
Hi all,

Can anybody help me.

Say I have an array in PHP like,

$colour["blue"]["dark"] = "bd";

Then I assign it so it can be used in my template...

$smarty->assign("colour", $colour); ...
 
Page 1 of 1
All times are GMT
Jump to:  


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