Pulling the content of the Alt Text field

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
stephenw
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Wed Mar 21, 2012 4:05 pm

Pulling the content of the Alt Text field

Post by stephenw » Mon Apr 16, 2012 9:30 am

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!

stephenw
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Wed Mar 21, 2012 4:05 pm

Re: Pulling the content of the Alt Text field

Post by stephenw » Mon Apr 16, 2012 10:02 am

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!

Post Reply