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 8 matches
Smarty Forum Index
Author Message
  Topic: First letter / substr or truncate
alouty

Replies: 3
Views: 25268

PostForum: General   Posted: Sun May 04, 2014 11:37 am   Subject: First letter / substr or truncate
Looking to have code for first char for any words:

company_name : Smarty Php
The output is SP

company_name : Two Words
The output is TW
  Topic: i=i+1
alouty

Replies: 2
Views: 4727

PostForum: General   Posted: Thu Oct 18, 2012 1:19 pm   Subject: i=i+1
complexElementKey is 1,2,3...
  Topic: i=i+1
alouty

Replies: 2
Views: 4727

PostForum: General   Posted: Wed Oct 17, 2012 1:30 pm   Subject: i=i+1
i=0. I would like to make tab1, tab2,tab3, and so on inside foreach and also if i=1 then echo class="active" at first <li>. How to make it?

{elseif $complexField == "KeySkills& ...
  Topic: Multiple calling same smarty var slow down website?
alouty

Replies: 0
Views: 3127

PostForum: General   Posted: Mon Oct 08, 2012 3:16 pm   Subject: Multiple calling same smarty var slow down website?
If I calling same smarty var multiple time on same page will it slow down my website?

Let say I call {stats type='job views' period='months' employer=$GLOBALS.current_user.username} many times, usi ...
  Topic: Smart var inside Javascript for Google Map
alouty

Replies: 2
Views: 9966

PostForum: Smarty 3   Posted: Mon Oct 08, 2012 4:10 am   Subject: Smart var inside Javascript for Google Map
Solved. I will put {literal}{/literal} until the smarty var then again after the smarty var...
  Topic: Sum given array
alouty

Replies: 0
Views: 3400

PostForum: General   Posted: Mon Oct 08, 2012 4:04 am   Subject: Sum given array
<script type="text/javascript">
{stats type='applications' period='days' employer=$GLOBALS.current_user.username}
</script>
will output:
<script type="text/java ...
  Topic: Smart var inside Javascript for Google Map
alouty

Replies: 2
Views: 9966

PostForum: Smarty 3   Posted: Fri Sep 07, 2012 5:07 am   Subject: Smart var inside Javascript for Google Map
Instead of {ldelim}, I have put many {literal} and {/literal} for any smarty var...

Any way to replace them?
  Topic: Smart var inside Javascript for Google Map
alouty

Replies: 2
Views: 9966

PostForum: Smarty 3   Posted: Fri Sep 07, 2012 3:20 am   Subject: Smart var inside Javascript for Google Map
Not sure how to put smarty var to the address in smarty template file...

http://gmap.nurtext.de/documentation.html
------------------------------------------------------
{$listing.City}
{ldelim} ...
 
Page 1 of 1
All times are GMT
Jump to:  


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