bear Posted October 12, 2007 Share Posted October 12, 2007 All I need is to include a bit of html inside a bock of smarty {if} {/if} code, and I can't figure it out. No matter what I try it alternates between a blank page and displaying the tags literally. All I want is to have part of it wrapped in < strong > and then part of it preceeded by a < br / > (spaces added to both to prevent parsing) {if $productinfo.pid != ""}-add strong here--{$productinfo.name} --end it here and include line return -- {$productinfo.description}{/if} Is that possible? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 13, 2007 Author Share Posted October 13, 2007 Here I go again, answering my own... I simply broke the {if} blocks into 2 separate ones, and wrapped the first in the tags I wanted. Too easy. [b]{if $productinfo.pid != ""}You chose the {$productinfo.name}{/if}[/b] {if $productinfo.pid != ""}{$productinfo.description}{/if} 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted October 13, 2007 WHMCS CEO Share Posted October 13, 2007 Or better yet you could do the following: {if $productinfo}<p align="center">[b]You chose the {$productinfo.name}[/b] {$productinfo.description}</p>{/if} Matt 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.