New Forum system requires email address which you used to apply for your account to replace your original username. Password stays the same.Please see this post for more details

Yealink Test Club has been officially launched. Please visit post below to get detail information. Come and join us!

Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smarty Template Engine
Author Message
Coredial 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.
line1_name: “x301”
line1_authname: “sip301_abc”
line1_password: “ZAq1XSw2@#”
line1_shortname: “x301”
line1_displayname: “John Smith”

{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}

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 - meyerj66 - 01-29-2013 09:48 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  3cx Phone Provisioning template Chadsuperb 1 12,110 06-28-2017 08:44 AM
Last Post: Paul_Yealink
  Auto provision template variables fraukas 4 2,273 01-19-2017 12:50 PM
Last Post: fraukas
  M7 template & firmware V8x lorn10 1 1,963 03-02-2015 10:11 AM
Last Post: Yealink_James
  Obtaining the M2 template configuration files? c1nco 3 4,820 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