marty.net message board
    About cpshop >> Customization Help >> Message started by: Nathan on 06/18/13 at 12:23:01

Title: All Tags
Post by: Nathan on 03/27/03 at 12:17:01
Is there a listing of all the data tags for CPShop, such as <[content]>?  I know there are some that are not listed in the installation FAQ since I can see them in the admin screen!

nathan


Title: Re: All Tags
Post by: Marty on 03/27/03 at 23:40:36
I think this is all of them.

Template Tags:
<[content]> - The main cpshop content.
<[title]> - The title of the current page.
<[breadcrumb]> - Breadcrumb navigation link trail.
<[prev]> - "Previous" text (as set on admin screen), linked to previous item in store.
<[next]> - "Next" text (as set on admin screen), linked to previous item in store.
<[prevname]> - Linked name of previous product in store.
<[nextname]> - Linked name of next product in store.
<[storeid]> - Store ID for current store.
<[productnumber]> - storeid.productnumber of current product (product page only).
<[productno]> - Product number only of current product (product page only).
<[productname]> - Product name of current product (product page only).
<[productcost]> - The price of the product (product page only).
<[storename]>      - Name of current store.
<[cpshop]> - URL of script.
<[cart]> - "View Cart" link.
<[alias]> - Current store ID alias.
<[keywords]> - Keywords for current store.
<[description]> - Description of current store.

Thumbnail Cell Template Tags:
<[linkstarts]> - Opening <a> tag for link to product.
<[linkends]> - </a> tag.
<[thumbnail]> - Thumbnail image for section/product.                              
<[thumbsrc]> - URL of thumbnail image for section/product
<[storename]> - Name of current store.
<[storeid]> Store ID of current store.
<[costconvert]> - Adds a link to a currency conversion page
<[teaser]> - Inserts the section teaser below the section thumbnail title
<[parentsectionno]> - The section number in which the current product/section resides
<[alias]> - The current store ID entry alias (or CRC number if no alias was entered)
<[productypeno]> - The product type number of the product (for product thumbnails only)
<[productstoreid]> - The store ID of the product (for product thumbnails only)
<[productnumber]> - storeid.productnumber of the product (for product thumbnails only)
<[productno]> - The product number of the product (for product thumbnails only)
<[producttext]>  - The product description (for product thumbnails only)
<[sectionstoreid]> - The store ID of the section (for section thumbnails only)


Title: Re: All Tags
Post by: Nathan Rudy on 07/30/03 at 11:42:30
I'd like to suggest a tag for those of us using Premium Shops

<[section]>

This would be the section name we are in, so that you can have that as your title or in the page somewhere without having it look like breadcrumbs.


Title: Re: All Tags
Post by: Tony on 10/29/04 at 06:28:31
We should sticky this topic :)


Title: Re: All Tags
Post by: Tony on 12/03/04 at 15:33:58
Besides product name and number, is there a chance to have tags for each of the items on the product pages?  Like <[cpproddescription]>, <[proddescription]>, <prodthumbnails]>, <[extrapics[>, or something like this?  I was hoping to really customize the product page template.  I know the admin page lets you customize some of it, like having images in 2x2 and so on, but was wondering if I could put them in places I wanted to.  

If not, I'll add it to a feature request list :)  


Title: Re: All Tags
Post by: ihate48 on 10/24/05 at 07:52:49
I agree 110% with Tony's request above. All we can really seem to do is dump the CP output via the Content tag. It would be really, really, really nice to be able to put individual things where we would like.

BTW, is there an update to the above posted tags from 2003, or is that it?


Title: Re: All Tags
Post by: Simon on 02/09/06 at 12:19:23
Look at the bottom of Martys post, it currently reads:

Last Edit: 31.01.2006 at 07:37:25 by Marty

which means the list is very much up to date at the time I'm writing this...

Besides, I like Tonys idea of being able to make our own product page by haveing tags for everything!

Simon


Title: Re: All Tags
Post by: Marty on 02/09/06 at 12:50:35
The product page is much more complicated to configure than thumbnail pages, because the elements are constantly changing, and they all have different content (sizes, colors, stamp values, etc.).

For now, the ability to customize them is highly limited.  If I can think of a way to make it less so, I'll implement it.


Title: Re: All Tags
Post by: Simon on 02/10/06 at 04:46:29
I realize it could be more work than I'm actually willing to take on, to have to update that product page if CafePress chages option, which make cpshop update the interface, which in turn will force me to do some instant tweaking to keep the website running.

It's really great to have you do all the updating for us Marty.

I think one way to do the templated product page is to have a separate tag for size selector, color selector, stamp value selector, printing method and all other selectables.

We would put all those tags into the template and then if that option is not selectable for a product it would simply be left out.

Alternatively there could be the option to have a separate template for different product categories, or even separate for every product type for those that have enough time to maintain that.

Ok, I'm not in a hurry to get these changes, so don't feel any pressure. I will have a lot to do in our greenhouse until August.

Simon


Title: Re: All Tags
Post by: Hex_Angel on 01/23/07 at 21:57:11
Hey Marty,

Ya missed one in the list.

<[producttext]>
Product Thumbnails only: contains the product description text.

Cheers,

p.


Title: Re: All Tags
Post by: brickholius on 01/29/07 at 14:04:04
What about title without breadcrumbs. I have <[title]> that shows the breadcrumbs but how can i show title on the page of just the section without the breadcrumbs as a section header?

brick


Title: Re: All Tags
Post by: mayur on 03/22/07 at 12:45:04
You missed one:

<[productcost]> - Product cost (doi!) on thumbnail page


Title: Re: All Tags
Post by: Hex_Angel on 10/14/07 at 20:50:44
<[parentsectionno]>

What's the possibility of getting this tag to work for product detail pages?

p.


Title: Re: All Tags
Post by: Marty on 10/15/07 at 01:38:15
What would it refer to?  The product's parent section number, or the product's parent section's parent section number?


Title: Re: All Tags
Post by: Hex_Angel on 10/15/07 at 02:26:33
<grin> Yeah that could get loopy.

Let's keep it simple (no grand parents ;-)

As per the product page breadcrumb, the section containing its thumbnail.

That wouldn't quite get me what I want in all situations, but neither will anything else, I think, and at least this one gives the local parent.

p.


Title: Re: All Tags
Post by: flobaby on 07/17/08 at 10:30:30
Hi Marty, I'm dittoing a request for a <[sectionname]> tag if possible.  Would be very useful.


Title: Re: All Tags
Post by: whitewolfspirits on 12/05/08 at 08:36:40
Is there a tag for the new search box?


Title: Re: All Tags
Post by: brickholius on 05/20/09 at 13:59:19
Is there a tag for

1. Search

2. Dropdown of Products


Title: Re: All Tags
Post by: srock on 05/25/09 at 08:14:42
In the Product Thumbnail Grid layout in cpadmin (v 2.7beta3h) I see a tag called [morecolors]

What does this do?


Title: Re: All Tags
Post by: hpandws on 03/22/11 at 10:22:37


on 05/20/09 at 13:59:19, brickholius wrote:
Is there a tag for

1. Search

2. Dropdown of Products


yes, need search box can be taged in template


Title: Re: All Tags
Post by: KaptainMyke.com on 11/25/11 at 16:37:26
On a product page template....How come <[productname]> tag only works in html title tag and not in page content?  I am trying to pass the same tag through inside my html body and so far only <[keywords]> and <[description]> work, but not <[productname]>.


Title: Re: All Tags
Post by: brattytees on 12/26/11 at 19:10:08


on 11/25/11 at 16:37:26, KaptainMyke.com wrote:
On a product page template....How come <[productname]> tag only works in html title tag and not in page content?  I am trying to pass the same tag through inside my html body and so far only <[keywords]> and <[description]> work, but not <[productname]>.

Hmm, works for me in the page title, meta desc and in the page body itself.


Title: Re: All Tags
Post by: depresident on 08/02/12 at 05:30:48


on 11/25/11 at 16:37:26, KaptainMyke.com wrote:
On a product page template....How come <[productname]> tag only works in html title tag and not in page content?  I am trying to pass the same tag through inside my html body and so far only <[keywords]> and <[description]> work, but not <[productname]>.


Having almost the same problem, <[productname]> works but not <[productcost]>. A bit odd :)


Title: Re: All Tags
Post by: YouGotThat on 06/18/13 at 12:23:01
I can't get these to work,
<meta property="og:productcost" content="<[productcost]>"/>
<meta property="og:linkstarts" content="<[linkstarts]>"/>
<meta property="og:linkends" content="<[linkends]>"/>
<meta property="og:thumbnail" content="<[thumbnail]>"/>
<meta property="og:thumbsrc" content="<[thumbsrc]>"/>
<meta property="og:costconvert" content="<[costconvert]>"/>
<meta property="og:teaser" content="<[teaser]> "/>
<meta property="og:parentsectionno" content="<[parentsectionno]>"/>
<meta property="og:productypeno" content="<[productypeno]>"/>
<meta property="og:productstoreid" content="<[productstoreid]>"/>
<meta property="og:producttext" content=" <[producttext]>"/>
<meta property="og:sectionstoreid" content="<[sectionstoreid]>"/>

can anyone?



marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright 2000-2001, X-Null. All Rights Reserved.