Layout Help

6 posts by 2 authors in: Forums > CMS Builder
Last Post: July 3, 2009   (RSS)

By KCMedia - June 29, 2009

Hi

I have this section on a home page of the website i am designing and i want to have it so that it will show 1st picture of random products everytime the page is refreshed the link is http://www.srotechnology.com/index.php down the bottom you will see 3 images this is where i want them to show up.

How can i do this so that just the first image and the name of the product will show up when the page is loaded.

I dont care what section the product is from but i can only show the first image and if the product dosnt have an image then it wont show that product.

thanks

craig
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Layout Help

By ross - June 29, 2009

Hi Craig

Thanks for posting!

There's a little bit of code you can add to your page that will make just one image appear. What you'll want to do first is just setup a default viewer page (copy all the code from your code generator and put it in a page called test.php). Once you have that page setup, post a copy of it for me and I'll show you where to put that bit of code.

From there, you can start copying it all into your actual template.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Layout Help

By KCMedia - June 29, 2009

Hi Ross

Here is the file for you that you asked for.

One thing is i want to be able to show the image side by side not below each other how do you that with the system.

I want to also do that with some other sites that i am building also.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz
Attachments:

test_002.php 4K

Re: [kcmedia] Layout Help

By ross - June 30, 2009

Hi

Thanks for posting that file!

The code you are looking for here is quite simple :). All you need is the following:

<?php break; ?>

It goes right before the endforeach that displays your images. Have a look at the new copy of your test page I attached and you'll see it (line 61 if your editor lets you search by line number).

Let me know how you make out from there. Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/
Attachments:

test_001.php 4K

Re: [ross] Layout Help

By KCMedia - June 30, 2009

Hi Ross

thanks for that worked great but am still having a little problem

With that the 3 images for random products show up but under each other how can i make it so they go side by side and not below each other.

cheers

Craig
Thanks



Craig

KC Media Solutions

www.kcmedia.biz