Hi lads,

Is there a best practice for making flow values available at
the sitemap level (instead of being directly sent to
sitemap components)?

AFAIK, there are at least two ways of doing this at the moment.

1. Embed information within the URL:

sendPage*(calculated_value+"/hello-world",{})

  match pattern="(.*)/hello-world"
  generate...
  transform src="client/stylesheet-{1}.xsl


2.Use of cgi variables:

sendPage*("hello-world?value="+calculated_value,{})

  match pattern="hello-world"
  generate...
  transform src="client/stylesheet-{{request-param:value}}.xsl

However the above two solutions seem more like hacks. A more
appropriate solution might the introduction of "jpath input module"
as follows:

sendPage*("hello-world",{"value" : calculated_value})

  match pattern="hello-world"
  generate...
  transform src="client/stylesheet-{{jpath:value}}.xsl

So im thinking of implementing a jpath input module to facilitate the
3rd option.

Cheers,
Michael

Reply via email to