Closed (works as designed)
Project:
Layar
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2011 at 07:55 UTC
Updated:
12 Jan 2013 at 19:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
juliusvaart commentedI fixed all this in a patch: see this post.
Comment #2
c-c-m commentedThank you, checking patch
Comment #3
juliusvaart commentedComment #4
c-c-m commentedHello,
I'm afraid the patch didn't solve the problem with absolute urls. I edited the new Layar JSON options with no results.
Since I'm afraid I didn't make myself clear I'll attach a screenshot (See here). As you can see there are several problems:
1. Title: I wanted the title node being linked to the node. It does not display a link, but a text, and if you take a look at it the url is not absolute but relative, which means that even the html tags were interpreted, the url would fail.
2. URL: I placed a URL field linking to the node. Unfortunately it is set as plain text, not HTML.
3. I added an imagefield with imagecache to be displayed in layar as an image. Unfortunately image is not being displayed (layar displays a default one), which I'm afraid it's due to a relative url or not interpreting html tags propperly.
Comment #5
juliusvaart commentedI don't have time to look into this. But you should just check the layar_plugin_style.inc file and see if you can add this.
Comment #6
firfin commentedI think wat c-c-m is trying to do is not possible. Or is misconfigured in the view.
In response to #4:
1. Are you sure the view returns the full url (absolute) ? Try using another display of the same view to doublecheck this. Is it mapped correctly in the JSON view settings?
2. As far as I can tell the JSON returned to the layar app does not expect (nor 'handle' ) an URL in the title field. It needs to be plaintext. See Layar documentation:
http://layar.pbworks.com/w/page/28473525/GetPOIs-JSON%20Response#text
I don't think it is just not possible to set a clickable URL as the title.
3. Basically the same is 1. Make sure the views is working correctly. Also check if the image field in the view is set to 'url to file'. Finally make sure it is mapped correctly in 'Layar JSON'-style settings for the feed display. Please doublecheck and report back.
Comment #7
edwbaker commented