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 16 matches
Smarty Forum Index
Author Message
  Topic: Delimiter oddness
dpatterson

Replies: 3
Views: 10469

PostForum: Smarty 3   Posted: Fri Sep 13, 2013 8:52 pm   Subject: Delimiter oddness
Okay. I'm obviously missing something here as regards Smarty 3 delimiter handling.

Delimiters are default ({ and }).
Template variable $a = 'AAAA'
Template contains {{$a}}
I would expect the out ...
  Topic: Determining "scope" within a compiler tag function
dpatterson

Replies: 9
Views: 20554

PostForum: Plugins   Posted: Tue Jul 23, 2013 4:38 am   Subject: Determining "scope" within a compiler tag function
Unfortunately, changing the old system is out of the question.
I have to work within those boundaries.
Even if I decided to try, the "process" to approve and release such changes could tak ...
  Topic: Determining "scope" within a compiler tag function
dpatterson

Replies: 9
Views: 20554

PostForum: Plugins   Posted: Mon Jul 22, 2013 10:01 pm   Subject: Determining "scope" within a compiler tag function
As I mentioned in my original post, I'm working with an older system.
My tags need to call functions in that system.
There are many cases where there is a my_whatever() function and a get_my_whateve ...
  Topic: Determining "scope" within a compiler tag function
dpatterson

Replies: 9
Views: 20554

PostForum: Plugins   Posted: Mon Jul 22, 2013 9:27 pm   Subject: Determining "scope" within a compiler tag function
Yes, I know I can implement assign tags (is there a way to make it automatic?).

I would like to let the designers use short-hand assignments, though.
  Topic: Assign flag for compiler tag functions
dpatterson

Replies: 1
Views: 24672

PostForum: Feature Requests   Posted: Mon Jul 22, 2013 9:02 pm   Subject: Assign flag for compiler tag functions
It would sometimes be very handy if there was a flag that could be checked or a method that could be called that would indicate whether the results of the current compiler tag will be assigned to a va ...
  Topic: Determining "scope" within a compiler tag function
dpatterson

Replies: 9
Views: 20554

PostForum: Plugins   Posted: Mon Jul 22, 2013 7:39 pm   Subject: Determining "scope" within a compiler tag function
Drat. Crying or Very sad

I'm working with an underlying system that I can't change.
Certain tag implementations need to call a different function if the result will be assigned to a variable.
I'm implement ...
  Topic: Determining "scope" within a compiler tag function
dpatterson

Replies: 9
Views: 20554

PostForum: Plugins   Posted: Mon Jul 22, 2013 7:19 pm   Subject: Determining "scope" within a compiler tag function
Is there any way for a compiler tag function to determine whether it is within a "short-hand assignment"?

Example:
{$x = {myCompilerTag}}

Is there any way for the function that imple ...
  Topic: Creating block compiler function
dpatterson

Replies: 7
Views: 14700

PostForum: Plugins   Posted: Mon Jul 22, 2013 7:14 pm   Subject: Creating block compiler function
Ah. Got it.

Yep. I've already run into the parameters as strings thing.
Generally speaking, it seems to make things much easier in compiler functions.

Thanks for all of your help. Very Happy
  Topic: Creating block compiler function
dpatterson

Replies: 7
Views: 14700

PostForum: Plugins   Posted: Mon Jul 22, 2013 6:54 pm   Subject: Creating block compiler function
I'm sorry. I don't understand what you mean about the $params array.
Could please expand upon that?

Thanks.
  Topic: Creating block compiler function
dpatterson

Replies: 7
Views: 14700

PostForum: Plugins   Posted: Mon Jul 22, 2013 6:27 pm   Subject: Creating block compiler function
Thanks for the info.

As a note, I don't see any reference to the close version of a tag at
http://www.smarty.net/docs/en/plugins.compiler.functions.tpl.

But with this info I should be able to ...
  Topic: Creating block compiler function
dpatterson

Replies: 7
Views: 14700

PostForum: Plugins   Posted: Mon Jul 22, 2013 5:03 pm   Subject: Creating block compiler function
Question one: Is it currently possible to create a block compiler function (e.g., {myTag}...{/myTag}) with Smarty 3?

Question two: If so, where can I find documentation and/or examples of how to do ...
  Topic: Shorthand attributes in function plugins
dpatterson

Replies: 4
Views: 13195

PostForum: Plugins   Posted: Mon Jul 08, 2013 4:11 pm   Subject: Shorthand attributes in function plugins
Great! Thanks.
  Topic: Shorthand attributes in function plugins
dpatterson

Replies: 4
Views: 13195

PostForum: Plugins   Posted: Sun Jul 07, 2013 6:01 pm   Subject: Shorthand attributes in function plugins
Thanks for the quick response!

using empty() did the trick.

Would it be worthwhile to make a feature request for shorthand attributes in function plugins?

Thanks
  Topic: Shorthand attributes in function plugins
dpatterson

Replies: 4
Views: 13195

PostForum: Plugins   Posted: Sun Jul 07, 2013 12:31 am   Subject: Shorthand attributes in function plugins
I have a number of functions that accept a single string parameter and return a value associated with that string (e.g., the option named 'siteName').

I would like to provide Smarty function plugin ...
  Topic: Content management systems
dpatterson

Replies: 1
Views: 4113

PostForum: General   Posted: Tue Apr 16, 2013 11:19 pm   Subject: Content management systems
Okay. Posted this in the Frameworks forum and got zero responses. Thought I'd try it here.

I see that the last content management system discussion was some time ago.
I'd like to re-open the discu ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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