Coast Line
asked on
Images display
Hi Experts, I need an Idea on the way i am displaying Images.
On one of my Page, am showing 6 Images even though Uploaded are 100, The Last Updated are shown.
Now, have added one Column as HeaderImage and I have sets its value to 1. Now what i want is,
If has to detect the 6 Images which has been recently Updated and it will from thoses6 Images which is the headerImage, Now i want to Place that Header Image on the Main Screen and the First Image to be Shown and other Images displayed after wards
Please provide your suggestions what ways i can try out.
I tried using couple of cffif statements but all in vain. so any suggestions
Thanks
On one of my Page, am showing 6 Images even though Uploaded are 100, The Last Updated are shown.
Now, have added one Column as HeaderImage and I have sets its value to 1. Now what i want is,
If has to detect the 6 Images which has been recently Updated and it will from thoses6 Images which is the headerImage, Now i want to Place that Header Image on the Main Screen and the First Image to be Shown and other Images displayed after wards
Please provide your suggestions what ways i can try out.
I tried using couple of cffif statements but all in vain. so any suggestions
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have one query to pull up the Header Image to specifically get the values needed with that record.
A seperate query to pull up the rest of the images.
-- If you do not need all 100 images to display you could use maxrows="6" in the query to limit results
-- If you are displaying the first 6 most recent in a special way and the remainder are to be kept in an array but not displayed then you would not limit it in the query but do so inside a loop using an If statement
I may be misinterpreting what you want but was assuming you are doing something like:
-------------------------- ---------- ---------- --
| |
| |
| Header Image |
| |
| |
-------------------------- ---------- ---------- --
|____|____|_____|_____|___ _|___| <--- smaller 6 most recent images with slider for 7-100
Header Image = <img src="#getHeaderImage.Path# name="headerimage" .../>
Smaller images=
<cfloop from="1" to="#QName.recordcount#" index="i">
<cfif #i# LT 7>
<img src="#getHeaderImage.Path# name="headerimage" .../>
<cfelse>
... store image paths in a JS array ?
</cfif>
</cfloop>
---------------------- This is mostly pseudocode / a thought on how to do ---------------
Do you have a page you could link / code that is not working that may give a better idea of what you are trying to do that is not working?
A seperate query to pull up the rest of the images.
-- If you do not need all 100 images to display you could use maxrows="6" in the query to limit results
-- If you are displaying the first 6 most recent in a special way and the remainder are to be kept in an array but not displayed then you would not limit it in the query but do so inside a loop using an If statement
I may be misinterpreting what you want but was assuming you are doing something like:
--------------------------
| |
| |
| Header Image |
| |
| |
--------------------------
|____|____|_____|_____|___
Header Image = <img src="#getHeaderImage.Path#
Smaller images=
<cfloop from="1" to="#QName.recordcount#" index="i">
<cfif #i# LT 7>
<img src="#getHeaderImage.Path#
<cfelse>
... store image paths in a JS array ?
</cfif>
</cfloop>
---------------------- This is mostly pseudocode / a thought on how to do ---------------
Do you have a page you could link / code that is not working that may give a better idea of what you are trying to do that is not working?
ASKER
yes that's one
ASKER