show thumb photo

florin_salam

No avatar

2007-04-06 21:51

hello i want to be able to show the first photo in the gallery of each page, in the list of subpages )the one with the short descriptions.

i have modified the code in pages_list_1.tpl like this :

<!-- BEGIN LIST_HEAD -->
<div id="pageSubList">
<!-- END LIST_HEAD -->

<!-- BEGIN LIST_LIST -->
<div class="l">

<div id="pagePho">
<!-- BEGIN PHOTO_LIST -->
<a href="?p=p_$aList[iPage]&amp;sName=$aList[sNameUrl]"><img src="$aList[sPhotoSmall]" alt="$aList[sName]" /></a>
<!-- END PHOTO_LIST -->
</div>

<h2><a href="?p=p_$aList[iPage]&amp;sName=$aList[sNameUrl]">$aList[sName]</a></ h2>
<p>$aList[sDescriptionShort]</p>

</div>
<!-- END LIST_LIST -->

<!-- BEGIN LIST_FOOT -->
</div>
<!-- END LIST_FOOT -->


but it shows me the alt instead of the image.

please help :)

» Quick.Cms v1.x

me

treewood (OpenSolution)

Avatar: treewood

2007-04-07 09:12

florin_salam - can You give us screenshot to show what You want and what You have now? I really dont understand what You want to do

florin_salam

No avatar

2007-04-07 11:25

here is the screenshots http://img257.imageshack.us/img257/8932/screenxn0.jpg . the cropped image on top shows what i have now : i managed to put the box for the image but the actual thumb image doesn`t show. it shows the alt=" " value instead.

in the cropped image at the bottom you can see the page where the image is being shown like i want it. that is a subpage that contains the title and full description.


i want to be able to show that image in the list of subpages, and if i added multiple images to each subpage, then to show only one image here (the first one maybe) .

i hope this makes sense to you.
thanks

me

roca

Avatar: roca

2007-05-28 14:37

any solution?

Ersao

merci

No avatar

2007-05-29 11:21

roca - it is impossible to show photos in pages_list_1.tpl because this make pages_list_2.tpl. I'm not sure If I understand you, but try to set in admin panel for this page type of displaying subpages as second type (name, description, photo), and then for subpages upload some photos.

Back to top
about us | contact