API: Str
Filename:
fwpStr_captureOutput.ctag
Released With:
5.0.0
Current Version:
1.1.0
Status: Active
Min Lasso Tested: 8.1.0
Max Lasso Tested: 8.5.3
Related:
Still don't get it?
Check out the talk list archives, or join and ask your questions.
Documentation Error or Request?
Email documentation corrections or comments
This is a container tag which can be used to capture all output in the container to store to a variable.
fwpStr_captureOutput:'varToStoreIn';
any output here is stored into $varToStoreIn
/fwpStr_captureOutput;
Requires the name of the var as an unnamed parameter to store the contents of the container tag in.
<?lassoscript
//............................................................................
//
// pageblocks: (c) 2002-2007 http://www.pageblocks.org/
//
//............................................................................
/*
{fileName= fwpStr_captureOutput.ctag }
{rsrcType= tag }
{rsrcName= fwpStr_captureOutput }
{rsrcHTTP= www.pageblocks.org/refc/fwpStr_captureOutput }
{lassoVrsnMin= 8.1.0 }
{lassoVrsnMax= 8.5.3 }
{author= Greg Willits }
{authorEmail= subscribe to pbTalk at www.pageblocks.org/talk/ }
{authorHTTP= www.pageblocks.org }
{desc= Captures output between the container tags and stores it
in the supplied variable name }
{maintvsrn= 1.1.0 }
{maintrelease= 5.1.0 }
{maintdate= 2006-05-30}
{maintauthor= Greg Willits }
{maintnotes= added tagTrace }
{maintvsrn= 1.0 }
{maintrelease= 5.0.0 }
{maintdate= 2006-01-16 }
{maintauthor= Greg Willits }
{maintnotes= initial release }
*/
//.............................................................................
define_tag:'fwpStr_captureOutput',
-container,
-priority='replace',
-required='fw_capture';
$fw_debug ? $fw_tagTracer->(add:'fwpStr_captureOutput');
(var:#fw_capture) = run_children;
/define_tag;
?>
© 2002-2010, pageblocks.org