[ic] Displaying cat field in title tag

Steve Bronson steve at airdelights.com
Thu Mar 29 18:48:52 UTC 2018




Steve Bronson 
Air Delights, Inc.
http://www.airdelights.com
steve at airdelights.com
Phone: 1-800-440-5556
Fax: 1-503-643-8224

Air Delights, Inc. is a National Distributor of Plumbing Products and Restroom Accessories. Please visit our website at http://www.airdelights.com


-----Original Message-----
From: "David Christensen" <david at endpoint.com>
Sent: Thursday, March 29, 2018 11:15am
To: interchange-users at icdevgroup.org
Subject: Re: [ic] Displaying cat field in title tag

_______________________________________________
interchange-users mailing list
interchange-users at icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
>  Yes, I have the flypage but not sure of the code to display the field contents.  The mysql location of the field is cat::title_head_format.
> 
> What code would I use to display this field in my title tag?
> 
> this is the url of the page, it's a category page:
> http://www.airdelights.com/workplace-safety-signs-category.html?cat=5839 <http://www.airdelights.com/workplace-safety-signs-category.html?cat=5839>
> 
> thanks David!
> steve at airdelights.com <mailto:steve at airdelights.com>

Hi Steve,

If the page in question already has something setting the page title (most do, via the [tmp page_title]…[/tmp] construct) you could adjust it in there.

So if it’s already a flypage or similar construct, you can access the item’s properties, say:

[tmp page_title][either][item-param title_head_format][or]__COMPANY_NAME__[/either][/tmp]

You would need to match the PREFIX-param against the other ones in this page if they appear; not being familiar with your specific setup I can’t offer much more than general guidance.

Best,

David
--

This worked!!!
[tmp page_title][data base=cat col=title_head_format key="[cgi cat]"][if scratch content][scratch content][/if] | Air Delights[/tmp]

Thanks David!







More information about the interchange-users mailing list