Roger Posted August 15, 2008 Share Posted August 15, 2008 I can not get this piece of code to display: <div id="contact" class="post" style="display:none;"> <h2 class="title">Contact Us</h2> {include file='contact-us.tpl'} </div> The "Contact Us" displays but the Smarty included tpl file does not. Would any of you Smarty experts offer a suggestion. Edit: Let me qualify this a bit. This is in my homepage.tpl file and the display:none style is countered with a javascript to display the division when the correct link is clicked. Thanks in advance, -Roger 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted August 15, 2008 Share Posted August 15, 2008 Wouldn't you have to remove style="display:none;" ? 0 Quote Link to comment Share on other sites More sharing options...
Roger Posted August 15, 2008 Author Share Posted August 15, 2008 No, that ensures it is not displayed until the link is clicked and a java script then displays it. Thats why it's called a hidden <div>.The Header is displayed but not the smarty included file. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted August 16, 2008 Share Posted August 16, 2008 You need the full path change the include to {include file="`$smarty.env.DOCUMENT_ROOT`/templates/$template/contact-us.tpl"} 0 Quote Link to comment Share on other sites More sharing options...
Roger Posted August 16, 2008 Author Share Posted August 16, 2008 Thanks I will give that a try. 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.