| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
(SOLVED) i need include .jsp file in .tpl file | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi all !!! i am newbie member, & my english is very poor sorry :P
i have one question: i need call .jsp file from .tpl file ... is possible ??? i create a new link embedded in home.php page with the metod of editing home_main.tpl: {elseif $smarty.get.mode eq "revelar"} {include file="customer/main/revelar.tpl"} & creating revelar.tpl: { include file="location.tpl" last_location="Revelar On-Line"} {capture name=dialog} {include file="jsp/login.jsp"} -----> is correct? {/capture} { include file="dialog.tpl" title="Revelado On-Line" content=$smarty.capture.dialog extra="width=100%"} & add new link in corresponding whit necessary file: Revelar but the .jsp file is no ready ![]() i attempt to incorporate one independent module in jsp and to integrate it in x-cart any idea ?? |
|||||||
#2
|
|||||||
|
|||||||
![]() is .jsp a javascript? if so you'll need to use the literal smarty tags like below with the include statement in between the literal tags, try it and see if it works, anythings worth a shot, let us know if it works
{literal} include("http://www.yourwebsite.com/path/to/jsp/login.jsp"); {/literal} |
|||||||
#3
|
|||||||||
|
|||||||||
![]() see http://smarty.php.net for more info on using smarty templates
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#4
|
|||||||
|
|||||||
![]() Quote:
hi !!! i have changed in .tpl file: { include file="location.tpl" last_location="Revelar On-Line"} {capture name=dialog} {literal} include("http://xxx.xxx.xxx.xxx/jsp/login.jsp"); {/literal} {/capture} { include file="dialog.tpl" title="Revelado On-Line" content=$smarty.capture.dialog extra="width=100%"} but what appears it is the text chain: include("http://xxx.xxx.xxx.xxx/jsp/login.jsp"); where i am mistaken? |
|||||||
#5
|
|||||||
|
|||||||
![]() { include file="location.tpl" last_location="Revelar On-Line"}
{capture name=dialog} {fetch file="jsp/login.jsp"} -----> fetch is the command {/capture} { include file="dialog.tpl" title="Revelado On-Line" content=$smarty.capture.dialog extra="width=100%"} :P |
|||||||
|
|||
X-Cart forums © 2001-2020
|