Re: Rendering out a page

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15634
interpreted = N
texte = >I have been asked to consider rendering out a page that via a search that >displays some 580 plus items.>Does this mean I can or cannot then create a hyperlink that I currently >generate on the non-rendered page and embed webcat search tags in the >rendered page?You can render anything you like to the file using WriteFile. One 'secret' is to make sure you add secure=F to the context so that outsiders can view your page:[WriteFile file=SomeFile.html&secure=F] ... you stuff here [/WriteFile]It is true that all the WebDNA inside gets executed first, so it does the right thing -- the final page ends up looking like regular HTML, just as if you had displayed a template which didn't have the [WriteFile] embedded in it.Be careful if you want [cart] tags inside there -- they will get substituted (rendered) with whatever cart value you have at the time, so it would be a good idea to manually hit the RenderPage.tmpl with ?cart=[cart], which causes the cart value to become literally [cart] rather than being turned into a number. If you want other WebDNA to remain in its [xxx] (unrendered) form, just wrap [Raw] around it, likeWelcome! Today is [raw][date][/raw] on our server.This will be rendered as Welcome! Today is [date] on our server. instead of substituting the date at the time of rendering.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Rendering out a page (Kenneth Grome 1997)
  2. Rendering out a page-test results (grichter@panavise.com (Gary Richter) 1997)
  3. Re: Rendering out a page (grichter@panavise.com (Gary Richter) 1997)
  4. Re: Rendering out a page (Trevor Crist 1997)
  5. Re: Rendering out a page (John Hill 1997)
  6. Re: Rendering out a page (Grant Hulbert 1997)
  7. Rendering out a page (grichter@panavise.com (Gary Richter) 1997)
>I have been asked to consider rendering out a page that via a search that >displays some 580 plus items.>Does this mean I can or cannot then create a hyperlink that I currently >generate on the non-rendered page and embed webcat search tags in the >rendered page?You can render anything you like to the file using WriteFile. One 'secret' is to make sure you add secure=F to the context so that outsiders can view your page:[WriteFile file=SomeFile.html&secure=F] ... you stuff here [/WriteFile]It is true that all the WebDNA inside gets executed first, so it does the right thing -- the final page ends up looking like regular HTML, just as if you had displayed a template which didn't have the [writefile] embedded in it.Be careful if you want [cart] tags inside there -- they will get substituted (rendered) with whatever cart value you have at the time, so it would be a good idea to manually hit the RenderPage.tmpl with ?cart=[cart], which causes the cart value to become literally [cart] rather than being turned into a number. If you want other WebDNA to remain in its [xxx] (unrendered) form, just wrap [raw] around it, likeWelcome! Today is [raw][date][/raw] on our server.This will be rendered as Welcome! Today is [date] on our server. instead of substituting the date at the time of rendering.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Grant Hulbert

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:

Hyperboard/bulletin board available (1998) Robert Minor duplicate mail (1997) WebMerchant 1.6 and https (1997) WebCat, The Trend, & Consolidating... (1997) "You might also like" Was: Sitebuilder / StoreBuilder - (2008) Transferring textareas (1997) Where is f2? (1997) No Data Results (1997) rotating thumbnails (1997) Price Change Password (2003) How do I send a 404 HTTP header ? (2004) Re:Emailer setup (1997) NTbeta18 corrupted? (1997) Secure server question (1997) New commands in Final candidate (1997) RE: Formulas.db + Users.db (1997) Nested tags count question (1997) [removehtml]? (2000) Setting up shop (1997) Solution: Mult-File Upload w/ Web Star (2000)