Hello,

I'd like to display images and urls in layar browser but since it stores relative urls, all the links fail, as well as image display.

Is there any way to solve this issue?

Thank you

CommentFileSizeAuthor
#4 20110503181242.png370.46 KBc-c-m

Comments

juliusvaart’s picture

I fixed all this in a patch: see this post.

c-c-m’s picture

Status: Active » Patch (to be ported)

Thank you, checking patch

juliusvaart’s picture

Status: Patch (to be ported) » Closed (duplicate)
c-c-m’s picture

Status: Closed (duplicate) » Active
StatusFileSize
new370.46 KB

Hello,

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.

juliusvaart’s picture

I 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.

firfin’s picture

Title: Absolute urls » Absolute urls / link as title in layar app / image display
Status: Active » Postponed (maintainer needs more info)

I 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.

edwbaker’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)