solved Proper way to call a template using Smarty?

derrickhand300
@derrickhand300
10 years ago
1,353 posts
I want to create a link that brings back a template indie the user profile page
Would this be the proper way to do it?
{$jamroom_url}/{$profile_url}/{$smarty.template_profile_video_entertainment.tpl}

This part I got from reading the smarty.net site but it doe not look like anything I have seen in JR templates yet so I figure I got it wrong?
{$smarty.template_profile_video_entertainment.tpl}

updated by @derrickhand300: 04/26/15 06:38:51AM
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Of course it does not work, but here is the complete line of code so you can see what I am trying to do
 <li><a href="{$jamroom_url}/{$profile_url}/{$template_profile_video_entertainment.tpl}">Entertainment</a></li>
brian
@brian
10 years ago
10,149 posts
This is not correct. You don't process a smarty template by inserting it into a URL - you have to just link to it:

1) Create a file called "profile_video_entertainment.tpl" in your active skin directory
2) call it like: http://yoursite.com/profile_video_entertainment

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,149 posts
derrickhand300:
Ok got it- thanks

No problem!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags