Hello world!
I have just modified my database table so that I can choose an image from a scroll down menu that will appear next to a link. It’s some sort of thumbnail that explains the link a little bit.
I would like the thumbnail image that has been picked (when the record is first created) to link to the category that it represents. I don’t think creating another way of inputting every link when the record is created is the fastest way of doing things. I was thinking of using a conditional loop in the link.html template that would do something like this:
if image name is “image1”, then <a href=”link to category of image1”>
if image name is “image2”, then <a href=”link to category of image2”>
if image name is “image3”, then <a href=”link to category of image3”>
Etc, etc.
I can explain pretty well what I have in mind ,
but really that's is as far as I can go for the moment. I need some help in the coding!
Thank you for your time.
I have just modified my database table so that I can choose an image from a scroll down menu that will appear next to a link. It’s some sort of thumbnail that explains the link a little bit.
I would like the thumbnail image that has been picked (when the record is first created) to link to the category that it represents. I don’t think creating another way of inputting every link when the record is created is the fastest way of doing things. I was thinking of using a conditional loop in the link.html template that would do something like this:
if image name is “image1”, then <a href=”link to category of image1”>
if image name is “image2”, then <a href=”link to category of image2”>
if image name is “image3”, then <a href=”link to category of image3”>
Etc, etc.
I can explain pretty well what I have in mind ,
but really that's is as far as I can go for the moment. I need some help in the coding!
Thank you for your time.