In order to make it possible to display some module-output in the middle of a $Content-block I have successfuly created a shortcodehandler.
The shortcodehandler displays the dataobjects like we expected, execpt for one thing. We would like to use the page variables of the page on which the shortcode is called.
We would like to use $URLSegment and display the pagetitle in the shortcode template. Is this possible in some way? Because the shortcodehandler is not defined in the page controller the $this-variable is not available.
I've got "ClientYouTubeID" as a page variable, rather than as part of the ShortCode, so I need to be able to call the variable $ClientYouTubeID within my YouTube.ss template, and I don't understand how to do it. At the moment it just doesn't return anything.