HT make pr field 1 appear as pr title on web page

General ShopSite user discussion

HT make pr field 1 appear as pr title on web page

Postby minifig » Wed Sep 05, 2007 10:31 am

How can I make the contents of "poduct field 1" appear as product names on web pages instead of the actual product names?

in the pr.vars.sst, I've tried changing:
# Determine what the product name should be #
[-- IF PRODUCT.DisplayName "checked" --]
[-- VAR.pr_name PRODUCT.Name --]
to:
# Determine what the product name should be #
[-- IF PRODUCT.DisplayName "checked" --]
[-- VAR.pr_name PRODUCT.Field1 --]

but that did nothing. Am I editing the wrong file? using incorrect syntax?

...sorry for what seems like a stupid question.
minifig
 
Posts: 6
Joined: Mon Jun 25, 2007 9:37 am

Postby Jim » Wed Sep 05, 2007 3:02 pm

What template are you using? The file pr.vars.sst is not a standard ShopSite provided template although that is part of the name of several ShopSite templates.

The simplest thing to do would be to just use the [-- product.field1 --] where you want the name to appear and put your own style formatting around it.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby minifig » Fri Sep 07, 2007 9:35 am

Jim wrote:What template are you using?

Classy Orange.

The Classy Orange theme is very close to what I want for a final product, but making a few tweaks to adjust it is more challenging than I'd expected. I guess I'm still confused as to how the various files work together to produce the finished pages. I've read through the SS custom templates tutorial, but its simple diagram of the process is a bit too simple to be helpful for me.

I have experience coding HTML, and some css, but not Javascript or php. Unfortunately, when I look at the classy orange template files, my untrained eyes see only spaghetti... SS seems to use its own lingo, like, "include" and ".sst". Can anyone suggest a curriculum for me to follow so that all will eventually become clear? I'm afraid the SS Help alone isn't helping me. With it, I feel as though I'm trying to fix my car with a dictionary.

any advice greatly appreciated.
minifig
 
Posts: 6
Joined: Mon Jun 25, 2007 9:37 am

Postby BFChris » Fri Sep 07, 2007 11:02 am

Well, here is a brief perspective on it.

An "Include" does just that. It basically drops in the complete content of an external file into the page at the exact spot where the "Include" statement appears. Basically, this process occurs when you Publish your page in Shopsite. An include file is useful in that it allows common content (headers, footers, css) to be edited in one place and quickly updated site-wide. Include files can also be used by PHP-based webpages, but the Shopsite program has its own syntax and handling of includes. Includes can be done two ways in Shopsite--A lone "Include" tag just drops the content of the external file into the page verbatim. An "Include" tag with the "Process" parameter will process (fill out/replace with current values) any Shopsite template tags [-- --] which appear in the external file before dropping in the content.

Also, .sst is just a Shopsite file extension (probably for ShopSite template). These should be standard HTML files which include Shopsite custom tags [--TAG.name --] that are processed and "filled in" during a "publish" operation.

A complete webpage should include at least a PAGE template (which formats the basic page content) and a PRODUCT template,which controls the layout for each product that will appear on the page. Additional "Include" files may also be involved to insert common content such as headers, footers, CSS, and scripting.

I hope this is helpful.
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Postby minifig » Fri Sep 07, 2007 11:19 am

Yes, this helps. Thanks.
minifig
 
Posts: 6
Joined: Mon Jun 25, 2007 9:37 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 151 guests