Gossamer Forum
Home : Products : DBMan : Customization :

Display short and long on same page...

Quote Reply
Display short and long on same page...
Right now, I would like to display the short form at the top of the page, and have it link to the bottom, for example on a headline, then have the headline link to the story, but just use a <a name= $count or something to that effect.. any ideas??


also.. is there a way to auto archive.. ... say any records beyond 10 or something? to be able to set a value.. i am using a count field to determine recent"ness" i guess. thanks in advance..

Quote Reply
Re: Display short and long on same page... In reply to
I guess you could go through the loop twice --

Code:
for (0 .. $numhits - 1) {
&html_record (&array_to_hash($_, @hits));
}
for (0 .. $numhits - 1) {
&html_record_long (&array_to_hash($_, @hits));
}
Lois said that she had luck using anchor tags to move within the page.

Someone was setting up an auto-archive mod. I'm not sure what happened to it.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Display short and long on same page... In reply to
Well, I currently don't have the short/long mod added in.. i guess a question i have, is.. how could i display something like just the titles, in terms of a SSI call?

Quote Reply
Re: Display short and long on same page... In reply to
You'd have to do a search in the forum for SSI. There's lots of info there, but I don't know anything about how SSI works.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Display short and long on same page... In reply to
okay... thanks JPDeni.... i think normally i can jsut make a call like

<!--#include virtual="cgi-bin/db.cgi?db=news&uid=default&view_records=1&Title=*&sb=7&so=descend" and that will sort by catagory 7 and in descending order of cat 7... but i guess you could have figured that out =) oh well. im tired.. thanks again..