Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Using Smarty Tags in Txt Labels

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-19-2004, 03:12 PM
 
ghhoz ghhoz is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 40
 

Default Using Smarty Tags in Txt Labels

Hello,

I was wondering if someone can point me in the right direction for the use of smarty tags in Txt Labels.

I am using a mixture of HTML, plain text in my txt language files to allow me to customise the welcoming area on the front of the store and also in areas on new Help Zone pages I have created using the technique of adding lbl and txt files.

I have found that if I use HTML to refer to images in these txt language files when a user is signed in under https the non secure message is displayed as I am referring to these images using the http url.

I would like to do this using the smart tag for the skin1/images folder to call the images required on a page, however when I use any smarty tag inside of a txt language file all i see is the dreaded red X

Is it possible to use smarty tags in the txt language files or is there another way I can acheive my desired result.

I am relatively new to xcart / smarty but after hours of reading and plyaing with the code I am picking it up

I do hope to hear from some one soon. Thanks

Cheers
__________________
Cheers from Melanie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xcart V4.0.4 (Unix) - LIVE
AOM, Fancy Categories
Marketing Manager,
Reward Points & Refer Rewards
Advanced Site Map
Easy Checkout

Gift & Homeware House
www.giftandhomewarehouse.com.au
Reply With Quote
  #2  
Old 12-30-2004, 03:03 AM
 
ghhoz ghhoz is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 40
 

Default

Bump? Can anyone help with this.

I wanted to add images to the txt_** lanague files but dont want the unsecure content message to display for https

Please help??

Thanks

Cheers and Happy New Year everyone
__________________
Cheers from Melanie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xcart V4.0.4 (Unix) - LIVE
AOM, Fancy Categories
Marketing Manager,
Reward Points & Refer Rewards
Advanced Site Map
Easy Checkout

Gift & Homeware House
www.giftandhomewarehouse.com.au
Reply With Quote
  #3  
Old 12-30-2004, 04:31 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Hi ghhoz, are you using this to call the images?

[img]{$ImagesDir}/imagename.jpg[/img]
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 12-30-2004, 08:33 PM
 
ghhoz ghhoz is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 40
 

Default

Hello Ryan,

Thanks for your reply

Yep I sure am but with no luck. When I use this code the images show as a red x. I am starting to think you can not use smart tags in the language files??

Do you think that may be the reason?

This is really got me stumped.
__________________
Cheers from Melanie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xcart V4.0.4 (Unix) - LIVE
AOM, Fancy Categories
Marketing Manager,
Reward Points & Refer Rewards
Advanced Site Map
Easy Checkout

Gift & Homeware House
www.giftandhomewarehouse.com.au
Reply With Quote
  #5  
Old 12-31-2004, 04:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Yea, that would be my guess as well. If you want to use html or images on a page, why not just get rid of the smarty tag in the template you are working on and just put 'regular' text, html and smarty tags?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:38 AM.

   

 
X-Cart forums © 2001-2020