Help with shopsite tags in includes

General ShopSite user discussion

Help with shopsite tags in includes

Postby natez311 » Fri Oct 30, 2009 10:59 am

Hi,

I am a designer who is just getting feet wet with shopsite. I am a experienced user with php and love includes. I am trying to put both the header and footer each in their own include with shopsite custom tags. I tried this recently and the shopsite custom tags don't seem to be working, should they be? Here is a sample of the header include:


<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Description" CONTENT="[-- PAGE.MetaDescription --]">
<META NAME="Keywords" CONTENT="[-- PAGE.MetaKeywords --]">
<META NAME="robots" CONTENT="index,follow">
<title>[-- PAGE.Name Remove_HTML --]</title>
</head>
<body>
<noscript>
<div class="js_container">
<div class="js_notice">
<span style="font-size: 15px; font-weight: bold;">It looks like JavaScript is disabled in your browser.</span>
<p>Without JavaScript, you won't be able to view our site properly. <a href="https://www.google.com/adsense/support/bin/answer.py?hl=en&amp;answer=12654" target="_blank" title="Click here for instructions on enabling JavaScript.">Click here</a> for instructions on enabling JavaScript.</p>
</div>
</div>
</noscript>
<div class="pageContainer">
<div class="hd">
<h1><a href="[-- MyStoreURL --]" title="[-- STORE.Name --]">[-- STORE.Name --]</a></h1>
<ul class="left">
<li><a href="#" title="Order status">Order Status</a></li>
<li>
<form>
<fieldset>
<label for="deals">Deals and Discounts</label>
<input type="text" value="Email Address" />
<input type="submit" />
</fieldset>
</form>
</li>
</ul><!-- End UL LEFT -->
<ul class="right">
[-- IF SC_Registration --]
<li>Welcome back<a href="#" title="Welcome [-- RegisteredName --]">[-- RegisteredName --]</a> | <a href="#" title="Create New Account">Create New Account</a></li>
[-- ELSE --]
<li><a href="#" title="Sign In">Sign In</a> | <a href="#" title="Create New Account">Create New Account</a></li>
[-- END_IF --]
<li><a href="#" title="My Account">My Account</a></li>
<li><a href="[-- SHOPPING_CART_URL --]" title="Edit Cart">Edit Shopping Cart</a>1 item | <a href="#" title="Checkout">Checkout</a></li>
</ul>




Is there something I'm missing? Thanks in advance!
Thanks!

-Nate
natez311
 
Posts: 26
Joined: Fri Oct 30, 2009 10:52 am
Location: New York

Postby loren_d_c » Fri Oct 30, 2009 11:05 am

An include is treated as just text by default, no template tags in the include file will be processed unless you have the PROCESS parameter in the include tag, like this:

[-- INCLUDE filename PROCESS --]

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby natez311 » Fri Oct 30, 2009 12:03 pm

Thank you Loren!
Thanks!

-Nate
natez311
 
Posts: 26
Joined: Fri Oct 30, 2009 10:52 am
Location: New York


Return to User Forum

Who is online

Users browsing this forum: No registered users and 125 guests