Halfagain IM Forums
May 23, 2012, 12:28 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Due to increasing spam we are forced to make this forum "Read Only". If you have an issue, most likely was discussed here. Use the Search function and try to find related discussions. If you can't find any helpful information, just email support at halfagain dot com"
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: blank pages, description tag  (Read 1075 times)
0 Members and 2 Guests are viewing this topic.
pga123
Newbie
*

Karma: 10
Offline Offline

Posts: 22


« on: July 10, 2008, 18:20 »

Google has indexed 3760 of my pages. Fab! However, they all have the same description which google gets out of my featured products description - this is the first text it encounters.

Is it possible to have:
- a description variable that prints out the first N characters of the product description on the page, to be used like so:
- a redirect to home page when the product has disappeared off the database (right now all you get is a white blank page)
Logged
pga123
Newbie
*

Karma: 10
Offline Offline

Posts: 22


« Reply #1 on: September 06, 2008, 18:01 »

The text file 'Template tokens.txt' provides the following code snippet:

{foreach from=$categories item=curr_cat}

     {$curr_cat.name} 

{/foreach}


This lists info for all of the categories. I only want it for the category I am in right now. How do I know which category I am in? I need to do this:



where {$this_cat} is the array index of the category that is being rendered in the template. This is fairly basic stuff. Is it possible that no other StoreStacker users have encountered this need?

Help, please!

Peter
Logged
pga123
Newbie
*

Karma: 10
Offline Offline

Posts: 22


« Reply #2 on: September 06, 2008, 18:07 »

Silly me. It's right there in Template tokens.txt:

{$category.description}

Who would have guessed!? Doh....
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!