RE: [WebDNA] Styling search results
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102380
interpreted = N
texte = I use something like this frequently. I forgot if I wrote this code or if Ichanged someone else's to work for my purpose. In any case, it works :)BTW...This is for 3 col output. Just change the number in the math var tothe number you need.[search db=../dbs/member.db&neskudatarq=0&lastNamesort=1&lastNameType=text][math show=f]cols=ceil([numfound]/3)[/math][math show=f]offset=cols[/math]
[loop start=1&end=[cols]][math show=f]offset=offset-1[/math][founditems][showif [math]([index]+[offset])\[cols][/math]=1][namePrefix] [firstName] [middleInitial][hideif [middleInitial]=].[/hideif][lastName] [namesuffix] [hideif [nickName]=]([nickName])[/hideif] | [/showif][/founditems]
[/loop]
[/search]Michael -----Original Message-----From: cw@e-wave.net [mailto:cw@e-wave.net] Sent: Thursday, April 09, 2009 1:17 PMTo: talk@webdna.usSubject: [WebDNA] Styling search resultsSo, my search works when I just list the results in a single column and theCSS layout works with static data. But, what I need to do is to display 2columns (or rows) of results, like this: 1 3 2 4or: 1 2 3 4Any suggestions are greatly appreciated.Thanks,-Chris--------------------------css:#box{ width:690px; overflow:hidden; }#box li{ float:left; width:350px; overflow:hidden; }#box .col2{ width:340px; }#box li img{ float:left; }#box li .breif{ float:left; width:230px; }code:
[search db=data.db][founditems] -
[data]
-
[data]
[/founditems] [/search]
###---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
.To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
I use something like this frequently. I forgot if I wrote this code or if Ichanged someone else's to work for my purpose. In any case, it works :)BTW...This is for 3 col output. Just change the number in the math var tothe number you need.[search db=../dbs/member.db&neskudatarq=0&lastNamesort=1&lastNameType=text][math show=f]cols=ceil([numfound]/3)[/math][math show=f]offset=cols[/math][loop start=1&end=[cols]][math show=f]offset=offset-1[/math][founditems][showif [math]([index]+[offset])\[cols][/math]=1][namePrefix] [firstName] [middleInitial][hideif [middleInitial]=].[/hideif][lastName] [namesuffix] [hideif [nickName]=]([nickName])[/hideif] | [/showif][/founditems]
[/loop]
[/search]Michael -----Original Message-----From: cw@e-wave.net [mailto:cw@e-wave.net] Sent: Thursday, April 09, 2009 1:17 PMTo: talk@webdna.usSubject: [WebDNA] Styling search resultsSo, my search works when I just list the results in a single column and theCSS layout works with static data. But, what I need to do is to display 2columns (or rows) of results, like this: 1 3 2 4or: 1 2 3 4Any suggestions are greatly appreciated.Thanks,-Chris--------------------------css:#box{ width:690px; overflow:hidden; }#box li{ float:left; width:350px; overflow:hidden; }#box .col2{ width:340px; }#box li img{ float:left; }#box li .breif{ float:left; width:230px; }code: ###---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold archives: http://dev.webdna.us/TalkListArchive/
"Michael A. DeLorenzo"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
Help name our technology! (1997)
WebDNA Solutions ... sorry! (1997)
[url] - question (2000)
Logging purchases (1997)
PIXO support (1997)
Trigger Problems (2001)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
[WebDNA] WebDNA app (2013)
What is WebDNA (1997)
Frames and WebCat (1997)
[WebDNA] Syntax Error? (2009)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
[WebDNA] upgrading to 8.1 or 8.2? (2016)
Expert tech support -- a fast and simple solution (long) ... (2000)
Bug Report, maybe (1997)
WebTen and WebCat (1997)
I need to get a [grep] (2003)
Is this possible, WebCat2.0 and checkboxes (1997)