Project

General

Profile

Bug #87104 » example_code.txt

Steffen Mächtel, 2018-12-07 17:02

 
PageTypeSuffix:
type: PageType
default: .html
index: 'home'
map:
.html: 0
.json: 3
/home.html <f:uri.page pageType="0" />
/home.json <f:uri.page pageType="3" />
/home.html <f:uri.page pageType="5" />
expected result: /home.html?type=5

/home.html <f:uri.page additionalParams="{type: 0}" />
/home.json <f:uri.page additionalParams="{type: 3}" />
/home.html <f:uri.page additionalParams="{type: 5}" />
expected result: /home.html?type=5

/home.html?example=1&cHash=8cc81a0a7688c7c43a8c401d2ed62946 <f:uri.page additionalParams="{type: 0, example: 1}" />
/home.json?example=1&cHash=8cc81a0a7688c7c43a8c401d2ed62946 <f:uri.page additionalParams="{type: 3, example: 1}" />
/home.html?example=1&cHash=8cc81a0a7688c7c43a8c401d2ed62946 <f:uri.page additionalParams="{type: 5, example: 1}" />
expected result: /home.html?type=5&example=1&cHash=8cc81a0a7688c7c43a8c401d2ed62946
(3-3/3)