I can not think of a better option and this would be the easiest way.
If you have followed so far and modified your code then run your site you will see the category browse has attempted to display Images. Basicly Everything Is now there to display the images and I will post the image handler code shortly. So if you have the
images all you need to do is decide if you want to Name them according to categoryId or categoryName
I have choosen to name them by Id simply because I may rename the category later leaving only the Id of the Image to Match.
So in a folder of your choice you need Images. (On my site they are like this (~/System/Images/Category/203.Sm.jpg)
Here is the best way to go about naming the Images.
<div mce_keep="true">Create the small 16x16 (approx pixel) image and choose a file type for the images (recommend jpg) if you have the images then ensure they are all the same size and file extension.</div>
<div mce_keep="true">Formatting should look like this CategoryId . Size . Extension</div>
<div mce_keep="true">The name of the Image should Result as for categoryId 1 = 1.Sm.jpg and for 2 = 2.Sm.jpg</div>
If everything iso far s working and you now have the images located in a folder on your site. I can then help you modify further code to link to your Images with either a new Handler or your current Handler. Once this is done then you are finished. You will
get the hang of this and will look back and think. That was easy as [:P]
Classifieds Starter Kit
Trading Center is a Continuation of the Classifieds Starter Kit onCode Plex.
Spider Maste...
Participant
1664 Points
483 Posts
Re: adding images to category text on default.aspx
Mar 14, 2009 11:53 PM|LINK
I can not think of a better option and this would be the easiest way.
If you have followed so far and modified your code then run your site you will see the category browse has attempted to display Images. Basicly Everything Is now there to display the images and I will post the image handler code shortly. So if you have the images all you need to do is decide if you want to Name them according to categoryId or categoryName
I have choosen to name them by Id simply because I may rename the category later leaving only the Id of the Image to Match.
So in a folder of your choice you need Images. (On my site they are like this (~/System/Images/Category/203.Sm.jpg)
Here is the best way to go about naming the Images.
If everything iso far s working and you now have the images located in a folder on your site. I can then help you modify further code to link to your Images with either a new Handler or your current Handler. Once this is done then you are finished. You will get the hang of this and will look back and think. That was easy as [:P]
Trading Center is a Continuation of the Classifieds Starter Kit onCode Plex.