coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: earpit on November 04, 2006, 10:02:31 AM

Title: changing no of columns
Post by: earpit on November 04, 2006, 10:02:31 AM
I use this to disply images on a html page(shtml) ,

i get table with just two columns, and many rows,
i want to increase the no of columns, how?
Title: Re: changing no of columns
Post by: earpit on November 05, 2006, 10:50:04 AM
nothing?  ???

well please see:
http://www.dharmpal.com

there you will see the images are shown in 2X4 bolcks(table)

i want it in 5X4 blocks, ie. i want 5 columns instead of just 2 , how to do this?
Title: Re: changing no of columns
Post by: strog on November 05, 2006, 11:33:25 AM
My friend,

Read the manual PLEASE.

It says explicitly in the quickstart guide what to include on your page to get desired results:

<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?> 

For example, go to your cftest page and locate the following line:

$objCpm->cpm_viewRandomMedia(2,3,$styleguide);

This line controls how many rows/columns you get on the cftest page.

Cheers
Strog