|
|
{{TableOfContents}}
|
|
Here is the test page for the 'GetBlock' processor.
|
Here is the test page for the 'GetBlock' processor.
|
|
This processor gets blocks from other pages (or from the current page)and shows the content where the processor block is defined.
|
This processor gets blocks from other pages (or from the current page)and shows the content where the processor block is defined.
|
|
SamplePage
|
= Test Data =Some data used for these tests is on: [[SamplePage]]
|
|
Here is more data, in the form of normal and hidden blocks on this page:
|
Here is more data, in the form of normal and hidden blocks on this page:
|
HereBlock1this is a non-hidden block, on this page}}}
|
{{{HereBlock1this is a non-hidden block, on this page}}}
|
|
|
{{{#HereBlock2this is a hidden block, on this page}}}
|
|
|
= Test 1 - get block 1 from SamplePage =
|
|
|
== processor block ==Here is the processor block:{{{{{{#!GetBlockSamplePage:SampleBlock}} }}}}
|
|
|
== result output ==Here is the result from the processor:
|
|
|
{{{#!GetBlockSamplePage:SampleBlock}}}
|
|
|
== expected result ==The expected output should be:
|
This is a block of text that appears in the block: SampleBlockon the page SamplePage. It is not very interesting,but shows how a block can be read directly from a page.}}}
|
{{{This is a block of text that appears in the block: SampleBlockon the page SamplePage. It is not very interesting,but shows how a block can be read directly from a page.}}}
|
|
|
= Test 2 - get block 2 from SamplePage =
|
|
|
== processor block ==Here is the processor block:{{{{{{#!GetBlockSamplePage:SampleBlock2}} }}}}
|
|
|
== result output ==Here is the result from the processor:
|
|
|
{{{#!GetBlockSamplePage:SampleBlock2}}}
|
|
|
== expected result ==The expected output should be:
|
This is another block of text}}}
|
{{{This is another block of text}}}
|
|
|
= Test 3 - get non-hidden block from this page =
|
|
|
== processor block ==Here is the processor block:{{{{{{#!GetBlock:HereBlock1}} }}}}
|
|
|
== result output ==Here is the result from the processor:
|
this is a non-hidden block, on this page
|
{{{#!GetBlock:HereBlock1}}}
|
|
|
== expected result ==The expected output should be:
|
this is a non-hidden block, on this page}}}
|
{{{this is a non-hidden block, on this page}}}
|
|
|
= Test 4 - get hidden block from this page =
|
|
|
== processor block ==Here is the processor block:{{{{{{#!GetBlock:HereBlock2}} }}}}
|
|
|
== result output ==Here is the result from the processor:
|
this is a non-hidden block, on this page
|
{{{#!GetBlock:HereBlock2}}}
|
|
|
== expected result ==The expected output should be:
|
this is a hidden block, on this page}}}
|
{{{this is a hidden block, on this page}}}
|