Re: [WebDNA] maybe silly suggestion? [founditems]
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 111882
interpreted = N
texte = Code inside the founditems context typically contains both WebDNAand HTML thus making separation practically impossible, doesn't it?You can always repeat your founditems results like this:[search][text]savefounditems=[founditems]whatever ...[/founditems][/text][/search][savefounditems]Maybe I just don't get the point of such a tag/context.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server Management> to help separate my controller logic from my display code it> would be awesome to have a shortcut like: [search> db=allthethings.db&blahblahblah][savefounditems> name=peoplenameddave][/search]> > then later in the page, where i’m rendering the html > [displayfounditems use=peoplenameddave] html things> [/displayfounditems]> > I know it looks like it’s not saving that much code, but I can> see switching which search I want in the controller, and still> being able to use a universal founditems loop lower in the> code. Also the ability to reuse search results (if needed)> without doing the same search again.> > ok, feel free to start telling me how you can do this with a> table (you’re missing the point) or how we don’t need more tags> or whatever :)
Associated Messages, from the most recent to the oldest:
Code inside the founditems context typically contains both WebDNAand HTML thus making separation practically impossible, doesn't it?You can always repeat your founditems results like this:
[search][text]savefounditems=
[founditems]whatever ...[/founditems][/text][/search][savefounditems]Maybe I just don't get the point of such a tag/context.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server Management> to help separate my controller logic from my display code it> would be awesome to have a shortcut like: [search> db=allthethings.db&blahblahblah][savefounditems> name=peoplenameddave][/search]> > then later in the page, where i’m rendering the html > [displayfounditems use=peoplenameddave] html things> [/displayfounditems]> > I know it looks like it’s not saving that much code, but I can> see switching which search I want in the controller, and still> being able to use a universal founditems loop lower in the> code. Also the ability to reuse search results (if needed)> without doing the same search again.> > ok, feel free to start telling me how you can do this with a> table (you’re missing the point) or how we don’t need more tags> or whatever :)
Kenneth Grome
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:
Nested tags count question (1997)
Multiple prices (1997)
set header in DB (no cart) (2003)
FileMaker and WebCat (1999)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Lookup Notfound (1998)
Re:Emailer and encryption (1997)
Emailer errors - repost (2000)
Mail Server Needed. (1998)
[WriteFile] problems (1997)
convert characters (2003)
WebCat2b13 Command Reference Doc error (1997)
Help! WebCat2 bug (1997)
using showpage and showcart commands (1996)
calculating tax rates, mail order solutions and version 2 (1997)
WebCatalog and directory indexing (1998)
Date Math broken on Mac OS X 10.4? (2007)
[OT] My own Hot Mail like e-mail services (2003)
Re:Emailer and encryption (1997)
Using Plug-In while running 1.6.1 (1997)