I need to consume a webpage in a layout that would take into account which is the display calling it to generate dynamic content.
I tried to modify the Method GetResource of Webpage.module.php adding the displayId as a GET parameter.
// Work out the url
$url = urldecode($this->GetOption('uri'));
$url = (preg_match('/^' . preg_quote('http') . "/", $url)) ? $url : 'http://' . $url;
//added by me
//adding directly get parameters without taking into account others existing GET parameters (others won't exist)
$url .= '?displayId=' . $displayId;
The problem is that while the windows client seems to take it into account, the android client don’t.
Why is this happening?
I have seen also that I can create my own modules. Does the android client support them? Maybe this is the way to go?
Get resource is only called for webpages if they are set to something other than “open natively” - otherwise they… open natively
The displayId is not a GET parameter - if you have used $_GET somewhere, then that won’t work. It is passed into the GetResource call though, so perhaps you are using that?
I have tried to set the webpage to Bestfit and Manual positions. It didn’t work.
I setted a proxy in between and I can see that the android app is never calling getResource SOAP method. Does not matter Webpage Options.
EDIT: I have tested Embed Module also without success. I have overriden the getResource method of Embed Module and the android client is not calling getResource but reading the xml in the database directly.