Page 1 of 1

function with random image and structures

Posted: Wed 14. Apr 2004, 11:50
by cyrano
hi there,

does someone know how difficult it is to make this:

I have 10 sructure levels and wish to have random images on the top of each page.

I don't want to make for every structure level a new template, but want to have a function, that is able to put images dedicated for each structure level per random on the top of the page.

I would like to store the images for e.g. in the phpwcms_filestorage folders and call them for e.g. like this:

for random images in level 1: folder 1
for random images in level 2: folder 2
and so on...

or is it possible to make it like:

imagename: nameoflevel_imgaename.jpg
and the function is able to read the first of the name and all images are stored in e.g. folder 1 of phpwcms_filestorage.

What do you think about?

greetings

Posted: Wed 14. Apr 2004, 11:53
by Pappnase
hello cyrano

i would say palce the pictures ins seperate folder in dthe picture dir! then call the pictures with the random image tag. did you use for every structure an own template!? if not place the image tag in an article!

Posted: Wed 14. Apr 2004, 12:01
by cyrano
hi pappnase,

thank you for answering.

hmm, i have now all images per random in the head of the pages and don't want the function mixed with the main content....

so i don‘t want to use a seperate template for each structure level.

I will be able to change all the behaviours on one function or element.

Posted: Wed 14. Apr 2004, 12:06
by Pappnase
hello cyrano

did you also try the script from jan212!?

Posted: Wed 14. Apr 2004, 12:08
by cyrano
hi pappnase,
i know about , but i know this script works different... :-)

but thank you for rember to this.

i have more trouble with the nav-row.... :-(

Posted: Wed 14. Apr 2004, 12:10
by Pappnase
i have seen that you have trouble with the nav_row tag! but why did you place this problem in the hacks part! :roll: :wink:

Posted: Wed 14. Apr 2004, 12:15
by cyrano
because it is featured in the hacks and enhancements folder, so i thought to ask for help in the support of H&E.... isn't right there?

Posted: Wed 14. Apr 2004, 14:42
by pSouper
you could...
write a simple CASE: function
use a {php:}


... or request someone here to write a simple case: function ;)