Page 1 of 1

Pulling the content of the Alt Text field

Posted: Mon Apr 16, 2012 9:30 am
by stephenw
I'm looking to change up my title, by making what I think would be a quick modification to this bit of code in mention on this thread I had created before: viewtopic.php?f=44&t=16222

Here is the line of code I believe needs changed:

Code: Select all

Page.Title = _Category.Name + " at " + Token.Instance.Store.Name + ".com";
Basically I want to be able to input a text here in Alt Text - http://i.imgur.com/TFXfB.png
and use that instead of _Category.Name in this line of code I provided above, so it's my title.

I'm assuming that to do this it may be something like _Category.AltText, rather than _Category.Name to make this happen.

Is this almost right? I'm pretty much asking what do I type here so it pulls what's in the Alt Text box for a category, instead of the Name box.

Thanks everyone!

Re: Pulling the content of the Alt Text field

Posted: Mon Apr 16, 2012 10:02 am
by stephenw
Alright, I believe I found the fix myself!

Code: Select all

ThumbnailAltText
is what i needed, so i took out

Code: Select all

_Category.Name
and replaced with

Code: Select all

_Category.ThumbnailAltText
and all is works as I planned!