 |

Tony
User
Dec 23, 2002, 8:08 AM
Post #1 of 12
(6203 views)
Shortcut
|
Homepage Index listing by column, not row (RM)
|
Can't Post
|
|
My client wants me to display the agent homepage index in a table with a column and row pattern, not row by row. They have close to 50 agents and I do think it would make a cleaner display for their purpose. I do know now how to sort alphabetically - thanks for the addon - but is this possible? Thanks!
|
|
|  |
 |

RobK_itools
Staff

Dec 23, 2002, 3:48 PM
Post #2 of 12
(6189 views)
Shortcut
|
|
Re: [Tony] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
Hi Tony, Yes, it is possible to change how the agent homepage index is designed. I think from what you stated, that you are looking for something like what has been done by one of our featured clients. Here is a url to that clients page who designed something close to what you have been talking about; http://www.bayhomes.net/ If you check the agents page out you will see how they have designed it. Is this what your looking for? Cheers, Rob interactivetools.com
|
|
|  |
 |

Tony
User
Dec 23, 2002, 4:07 PM
Post #3 of 12
(6187 views)
Shortcut
|
|
Re: [Cosmo] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
I did look at that, but that index is still populated in rows. What I would like to do to is populate the index in rows and columns. Instead of having one column 50 rows of agents, it would be 3 columns of 16-or-so. The RM script populates the index like: First Agent next Agent next Agent next Agent I want to populate a table of, say 3 columns, and rows like: First Agent | next Agent | next Agent next Agent | next Agent | next Agent next Agent | next Agent | next Agent next Agent | next Agent | next Agent and so on with the agent's photo, and contact info, and a link to listings. I know it can be done if I hard code the page, but is there a way to do it with the scripting of the RM? Cheers, Tony
|
|
|  |
 |

RobK_itools
Staff

Dec 24, 2002, 2:13 PM
Post #4 of 12
(6167 views)
Shortcut
|
Re: [Tony] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
Tony, There are two possible methods available to do this other than hard coding . One possible method would be to use JavaScript to write the tables out and the other method would be to use server side includes. Which one would you prefer to use? We will be back on Friday and will be working on this for you. Happy Holidays! Rob interactivetools.com
|
|
|  |
 |

Tony
User
Jan 9, 2003, 11:41 AM
Post #5 of 12
(6124 views)
Shortcut
|
|
Re: [Cosmo] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
Happy new year, Rob. Not to look a gift horse in the mouth, but can you suggest a JavaScript solution to this at this time? Thanks, Tony T
|
|
|  |
 |

Benjamin
Staff

Jan 14, 2003, 11:40 AM
Post #6 of 12
(6102 views)
Shortcut
|
|
Re: [Tony] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
Hi Tony! Happy New Year to you too. Sorry for the belated reply. We've come up with a javascript solution which will hopefully work for you. Here's what you'll need to do: - first, download a copy of our search_homepage.cgi addon script. This script gives you control over ordering your homepage index file - the one containing your list of client info. It contains instructions on how and where to install it on your server. - next, download the attached _column_sort.html file, and place it in your /templates directory. (And make sure the permissions are propertly set: 644 should be fine). What it is is a custom template containing a snippet of javascript controlling how the table is drawn. I've rigged it to draw the table in three columns, like you need. Now, in order to have it work with your homepage, you'll need to link to the following URL (try just pasting it in your browser). It will look something like this: http://www.yoursite.com/path/to/search_homepage.cgi?search=1&perpage=10&sort_order=1%2Cabc%2Cforward&template=_column_sort.html Once this is up and running, you can edit the _column_sort.html file to make it fit your site style - it's pretty barren right now; I've trimmed it down to only highlight the columns. Finally, any references to your "homepage index" / "view all agents", will have to be changed to point to the above link. And you're done! I hope this helps. If you have any problems, just post me back and we can work them through. Ben interactivetools.com
(This post was edited by Benjamin on Jan 14, 2003, 12:20 PM)
|
|
Attachments:
|
_column_sort.html
(3.47 KB)
|
|
|  |
 |

Tony
User
Jan 14, 2003, 12:15 PM
Post #7 of 12
(6096 views)
Shortcut
|
Re: [Benjamin] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
Wow, thanks Benjamin. I'll give it a try. Speaking of a try, can you please try to attach the _column_sort.html file again? It was't there. I continue to be impressed by InteractiveTools and your customer service. Keep up the good work! Cheers, Tony
|
|
|  |
 |

Benjamin
Staff

Jan 14, 2003, 12:19 PM
Post #8 of 12
(6094 views)
Shortcut
|
|
Re: [Tony] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
Oops. That's about the fifth time I've forgotten to attach a file... I'll add it to the above post. Ben interactivetools.com
|
|
|  |
 |

Tony
User
Jan 15, 2003, 6:45 PM
Post #9 of 12
(6076 views)
Shortcut
|
Re: [Benjamin] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
Thanks for the work on this, but I am having problems. I've 'installed' it with the search page, and I can get the page to display, but the columns seem to be blown out, and with 10 per page (my client has over 70 agents) it displays 1 in the first row, 3 in the second row, and 6 in the third row. I played around with the per page to 40 in the url, and the results continue like that with # per row as follows: 2,6,9,2,7,1,3. Can you tell what is going on, and is there a way to sort by last name if I add a last name field to the users? Thanks! Tony T.
|
|
|  |
 |

Benjamin
Staff

Jan 16, 2003, 11:40 AM
Post #10 of 12
(6062 views)
Shortcut
|
|
Re: [Tony] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
Tony! I just spent half an hour staring between your post and my template in utter perplexity, and then it dawned on me what was going on. I'll spare you the technical details, but enough to say I made a boo-boo. I'm so sorry! I've attached a modified column_sort.html file. Try it out. I'm pretty sure it'll work fine now, but again - if you have any further trouble, just post. And yes, if you were to add a last name field, you could order the page by that field. You'd just change the sort_order part of the query string to - &sort_order=x%2Cabc%2Cforward - Where "x" corresponds to the the homepage field number of the surname field. Again, so sorry about the above! Ben interactivetools.com
(This post was edited by Benjamin on Jan 16, 2003, 11:40 AM)
|
|
Attachments:
|
_column_sort.html
(3.59 KB)
|
|
|  |
 |

Tony
User
Jan 23, 2003, 11:13 AM
Post #11 of 12
(6027 views)
Shortcut
|
|
Re: [Benjamin] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
This works like a charm. Is there an easy way to have the first 1-10 appear on one page, then 11-20 on the next page, and 21-30 on the next, and so on? Thanks, Tony T.
|
|
|  |
 |

Benjamin
Staff

Jan 23, 2003, 11:36 AM
Post #12 of 12
(6024 views)
Shortcut
|
|
Re: [Tony] Homepage Index listing by column, not row (RM)
[In reply to]
|
Can't Post
|
|
Hi Tony, Sure! You'll need to place the following code into your _column_sort.html file: <p align="center"><b><a href="$cgiurl$?$query$&pagenum=$lpage$" title="Last Page"> <<</a> Page $cpage$ of $pcount$ <a href="$cgiurl$?$query$&pagenum=$npage$" title="Next Page">>></a></b></p> This just splits up the results into however many pages it takes. Secondly, in the URL linking to the homepage index, you'll need to specify the "perpage" attribute. e.g. http://www.yoursite.com/path/to/search_homepage.cgi?search=1&perpage=10&template=_column_sort.html If you have any trouble, just post me back. Ben interactivetools.com
|
|
|  |
|