PDA

View Full Version : Browse - choosing the category


redshanksnapper
09-09-2006, 07:22 PM
This may be a noddy question and apologies but I'm new to this.

Is it possible to create a link to the browse page, but you can choose which category to go to.

I want to create a new page, based on the browse template, but just to show images that are defined in categories as "For Sale" - is this possible?

Cheers

Vernon.Trent
09-09-2006, 09:00 PM
first create the category "for sale".
bring your mouse over the categorie "for sale" and copy the link.
then edit your template which includes the navigation links and add the link to that category.

redshanksnapper
09-09-2006, 09:24 PM
sorry - I'm not sure I follow.

I've created the page "forsale_template.hmtl" and I want to include in here the thumbnails for images I've categorised as "For Sale".

The link for this is

http://www.captivateme.co.uk/blog/index.php?x=browse&category=9

which is not the page I want it to be.

Are there any tags that I can use to bring the thumbnails for forsale into this new template?

Connie
09-10-2006, 08:08 AM
I am quite sure this is not about creating a new template, but calling the "old" browse-template with more parameters ;=)

when the normal call to the archive is http://www.yoururlhere.xx/index.php?x=browse&pagenum=1 the categorized call could be
http://www.yoururlhere.xx/index.php?x=browse&category=18&pagenum=1

the archive is called with parameters:category=categorynumber

so you should follow Vernon's suggestion:

create the category
find out which category-number this category has
add this category-number to the link

Vernon.Trent
09-10-2006, 09:22 AM
aaah, you want to display the whole category in an extra page, right?
you call the "forsale" template and there should be the category displayed.

I didn't tried that yet. don't know if this works, but try

http://www.yoururlhere.xx/index.php?x=for_sale&category=18&pagenum=1

redshanksnapper
09-10-2006, 12:34 PM
Hi Vernon - thanks for your help. Yes this is what I am trying to do!

A new page "forsale_template" with only the images with the category "for sale" displayed as thumbs. I can then have below detail on costs and how to purchase, etc.

I did try your suggestion but it didn't seem to work - but I'll have another go.

Cheers

redshanksnapper
09-10-2006, 01:40 PM
I've tried taking the template browse_template (which works fine and shows thumbnails no problem) and saved this as forsale_template. Even when I go to ...index.php?x=forsale it doesn't show any thumbnails. If I can get it to show the thumbnails it should be fine with "forsale&category=9".

Any sugestions?!

Thanks to both for your help!

Connie
09-10-2006, 02:23 PM
As I told you, I would not create a separate template, just call the existing browse-template with a specified link

try this and tell me if is ok for you

redshanksnapper
09-10-2006, 05:09 PM
Hi Connie

On the page with just images categorised as "for sale" I want to include details of how to order and pricing, etc but on the normal browse page I do not want these details. I'm not sure whether the way you have suggested will allow this.

Apologies if I'm being a muppet, but I'm new to pixelpost and php.

Cheers

Connie
09-10-2006, 08:00 PM
you are not a muppet at all, but sometimes I'm dumb as well ;=)

yes, if you need other content than on the archive page, my suggestion is not the solution for you

so you should stick with adding a new template to your template-folder and adding the content there, like Vernon suggested

redshanksnapper
09-10-2006, 08:18 PM
Thanks Connie - I've tried Veron's suggestion but the forsale_template doesn't show the thumbnails.

Cheers

Connie
09-10-2006, 08:18 PM
which code did you enter in your template? any URL?

Vernon.Trent
09-10-2006, 11:07 PM
well, the logical way is explained below :)
you call the link as suggested,
in your "forsale" template should be the tags which shows you the thumbnails, something like <THUMBNAILS_WHOLE_PAGED>

the sale informations have to be placed in your image description. as far as I know, you cannot add them under the thumbs.

BUT

as far I can see, there are some lines in the index.php which tells PP how to extract the data from categories and build a browse page. they all belongs to the "command" browse. I think, there is more to do than creating a new template and place some tags.

I tried with my PP... it shows the page but no thumbs.

http://www.xoverip.info/pb/index.php?x=sale&category=20&pagenum=1

redshanksnapper
09-11-2006, 09:51 PM
An extract of my HTML code from forsale_template is:


.....
<body bgcolor="#000000" style="background-color: #000000; " topmargin="0">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="900" id="AutoNumber1" bgcolor="#FFFFFF" height="194">
<tr>
<td height="28" width="146" bordercolor="#000000" bgcolor="#000000" align="left" valign="top">
<p align="center" dir="ltr"><font color="#FFFFFF" size="2"><b>
<a href='http://www.captivateme.co.uk/blog/'>
<img src='http://www.captivateme.co.uk/blog\templates\captivate\captivate.jpg' title='captivate' border='0' width="141" height="40" align="middle" hspace="0" /></a>
</b></font></td>
<td height="22" width="764">
<p align="right"><font size="2">&nbsp;
<a title="What this Photobog is all about and information about me/Captivate" href="index.php?x=about">
about</a>&nbsp; |&nbsp;
<a title="Thumbnails of all the images uploaded so far" href="index.php?x=browse">
thumbnails</a>&nbsp; |&nbsp;
<a title="Link to the latest image" href="index.php">latest image</a>&nbsp; |&nbsp;
<a title="A summary of everything to be covered in this Photobog and progress so far - with links to examples (a growing list)" href="index.php?x=series">
the series</a>&nbsp;&nbsp;&nbsp; </font></td>
</tr>

<tr>
<td height="133" colspan="2" width="898">

<div
id="browse" style="width: 736; height: 81"> <br /><br />
<THUMBNAILS> <br /> &nbsp;<p>
</div>

<div id="title" style="width: 814; height: 36">
<p align="left"> <br /><br /> <!--
Browse archive: <BROWSE_CATEGORIES><br /><br /> -->
<BROWSE_CHECKBOXLIST><br /><br />
</div>

&nbsp;<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p>&nbsp;</p>
<div align="center">
<center>

<table border..........

Vernon.Trent
09-13-2006, 03:38 PM
any news on that?
can someone from the dev team affirm that the "browse" process is controlled by the index.php?

redshanksnapper
09-15-2006, 02:37 PM
Hi Vernon - I don't seem to be able to get this to work.

Cheers