[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smarty Template Engine
Author Message
Coredial_Support Offline
Junior Member
**

Posts: 3
Joined: Jan 2013
Reputation: 0
Post: #1
Smarty Template Engine
Is anyone using Smarty Template Engine to Dynamically assign Line Key functions instead of Statically assigning? Examples are.
Static:
line1_name: “x301”
line1_authname: “sip301_abc”
line1_password: “ZAq1XSw2@#”
line1_shortname: “x301”
line1_displayname: “John Smith”

Dynamic:
{assign var="position" value=1}
{foreach item=line_key key=id from=$line_key_list}
{if $line_key.line_key_type == 1}
line{$position}_name: "{$line_key.key_label}"
line{$position}_authname: "{$line_key.sip_username}"
line{$position}_password: "{$line_key.sip_password}"
line{$position}_shortname: "{$line_key.key_label}"
line{$position}_displayname: "{$line_key.extension_name}"
{assign var="position" value=$position+1}
{/if}
{/foreach}

I am trying to come up with a template for the T2XP series. Any assistance is greatly appreciated.
01-29-2013 09:48 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
Smarty Template Engine - Coredial_Support - 01-29-2013 09:48 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Template vs Configuration Liberteks 2 7,803 08-07-2020 02:29 PM
Last Post: Liberteks
  Auto provision template variables fraukas 4 15,901 01-19-2017 12:50 PM
Last Post: anonymous1718628087441
  M7 template & firmware V8x lorn10 1 8,493 03-02-2015 10:11 AM
Last Post: James_Yealink
  Obtaining the M2 template configuration files? c1nco 3 14,570 10-10-2014 07:59 PM
Last Post: Wilson_Yealink

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication