I am using this module since version 1.0, but I never been able to perform "actions" with it.
Under the style plugin settings is still present a field for Layar Actions, but there is no reference to it in the readme file. I followed the guideline given: "Set this to a text field which has a separate action URL on each line." but the actions are not displayed into the layar browser.
In addition, is not specified how to set the "Activity type" required by layar: http://layar.pbworks.com/w/page/26912785/Second Layar Tutorial - layer with Actions
Can someone explain how to use Actions with this module?
Thanks

Comments

smoothk’s picture

StatusFileSize
new16.02 KB

Hi mato,

actions are currently not working correctly with the code provided by the module author.
I'm attaching my modified version of layar_plugin_style.inc as an example of the very rough solution I've come up with for now: basically you'll see that the actions are an array of objects, so they have to be structured like that in order work with the layar APIs.

Cheers!

juliusvaart’s picture

Is the patch for the 6.x-1.1 version?

smoothk’s picture

While it's not really a patch (it's just some custom code that does what I need, it's very specific!), yes, it's based on the 1.1 version.

juliusvaart’s picture

Can you post the parts that you changed/added? Maybe i can use it and add the possibility for actions.

firfin’s picture

Category: support » feature
StatusFileSize
new6.64 KB

Here is a git diff from file in #1 and 6.x-1.1
There seems to be more going on then just adding actions.
I have not tested this, just made the diff / patch. Like requested in #4.