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 9 matches
Smarty Forum Index
Author Message
  Topic: {function being displayed as literal rather than grabbing..
guido

Replies: 1
Views: 4466

PostForum: General   Posted: Wed Aug 18, 2004 6:00 am   Subject: {function being displayed as literal rather than grabbing..
I'm building a CMS function and I'd like to have pre-defined smarty plugin calls in the database field structure, but right now it's displaying the code as literal in smarty. Either i'm screwing it up ...
  Topic: calling a variable in a variable confusion
guido

Replies: 1
Views: 4668

PostForum: General   Posted: Fri Nov 07, 2003 5:12 pm   Subject: calling a variable in a variable confusion
as I've done before I've answered my own question Rolling Eyes

on the tpl:

{ezroll front="session" middle=$whatpart back="_amount"}


in a new plugin:

function sm ...
  Topic: calling a variable in a variable confusion
guido

Replies: 1
Views: 4668

PostForum: General   Posted: Thu Nov 06, 2003 8:59 pm   Subject: calling a variable in a variable confusion
I swear I've fixed this before, but right now I"m not sure how Smile

I have a mysql table with fields like:
"buy_amount"
"buy_items"
"hold_amount"
"hold_items"
all in a table called "sessions"
...
  Topic: First/Last values for {foreach}
guido

Replies: 4
Views: 68332

PostForum: Feature Requests   Posted: Tue Jul 15, 2003 1:05 am   Subject: First/Last values for {foreach}
messju, since this isn't documented anywhere ..

what values work for foreach? compared to section..

I tried rownum and it didn't work in the foreach.. a list would be great.
  Topic: 2 variables in a section/for else
guido

Replies: 1
Views: 4162

PostForum: General   Posted: Fri Jul 11, 2003 7:25 pm   Subject: 2 variables in a section/for else
I'm sure there is an answer in the forums somewhere, but i can't find, although i'll leep looking..

but what i'm trying to do is dynamically, call the values in a key..

so the data would be disp ...
  Topic: access a plugin from another plugin? how?
guido

Replies: 4
Views: 7312

PostForum: General   Posted: Thu Jun 19, 2003 6:47 pm   Subject: access a plugin from another plugin? how?
cool, that worked Smile ..

just in case anybody else needs to do this i'll recap here:


# add in this line to include the other function:
# format is ('function name: modifier,functio ...
  Topic: access a plugin from another plugin? how?
guido

Replies: 4
Views: 7312

PostForum: General   Posted: Thu Jun 19, 2003 5:32 pm   Subject: access a plugin from another plugin? how?
I have a plugin that i'm writing that I want to get input from another plugin but I can't seem to get it to work...

say the normal .tpl call would be


{functiona num='1234' data='abc' ...
  Topic: help with a dynamic section variable...
guido

Replies: 1
Views: 9481

PostForum: General   Posted: Fri May 02, 2003 5:33 pm   Subject: help with a dynamic section variable...
i'll answer my own question in case anyone else runs into this:


{foreach item=page from=$pages}
<tr bgcolor="white">
{foreach key=key item=item from=$page}
...
  Topic: help with a dynamic section variable...
guido

Replies: 1
Views: 9481

PostForum: General   Posted: Fri May 02, 2003 3:03 pm   Subject: help with a dynamic section variable...
I've run into a stumbling block that hopefully somebody can help with.

I'm unsure how to access a field in an array that is dynamic and not
pre-defined. (ie display it on the fly)

I have 2 sect ...
 
Page 1 of 1
All times are GMT
Jump to:  


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