Hi, its been a while since i've been "in" Drupal (and mostly for that i'm sure( not been a programmer helps to, lol), and i would apreciate as i'm shure many other would more in depth tutorial, i must say i got everything going for now, and it took me 2 hours to get here, but i seem to be stuck...
I'm in the point
2. Add a display of the type "Feed" and set this displays style plugin to "Layar JSON"
The thing is that i installed and activate json server module and all the dependicies are installed concerning the other modules, but either when choosing:
"Location" or "Node"
I only get:
Defaults: How should this view be styled
GMap
Grid
HTML List
Table
Unformatted
On the styles options...
what am i missing?
Thanks for your time!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | archive.tar_.gz | 185.7 KB | callum |
| #3 | archive.tar_.gz | 185.73 KB | callum |
Comments
Comment #1
alphaxs commentedOK that last part is solved, still i'm having a hard time figuring out what fields to select and how.
Can anyone export one as an example?
Comment #2
callum commentedEDIT: I now realize in the view export the proximity filter is left out. Just add the "proximity filter" to the filters section of views in the layar section to complete it. If you look at comment #3, i've reattached the archive with the change made.
The "layar json" style plugin is only available to displays of the type "feed". Create a display of that type and the "layar json" style should become available. To map fields you need to edit the styles settings by clicking on the gear next the currently selected style in the "basic settings" region on the views gui.
I've attached a tar which contains a screenshot of how to get to the field mapper. And i've also attached an working exported view i made.
In order to get your layar up and running you don't need many fields. At a minimum you'll need to fill in: unique id, latitude, longitude and a title (the ones denoted with a * for compulsory in the mapper). Unique id just needs to be a unique value, set it to your node id. Latitude and longitude are fields with your location information in, theres a HUGE GOTCHA here, if your using the location fields from the location module you need to set the lat and long fields to have their display style as "decimal degrees", the title can just be any old text field in the node you like. It's worth noting that fields may not appear in the field mapper until the view has been saved.
Once you've created your view, create a node of type layar, give it a name and then select the view you created in the node creation screen. Then use the POI url your given when viewing the node on the layar website. The reason i've done it like this is you can multiple views selected for each layar, However, in hindsight i think setting the POI url in the path section of the view would've been more elegant. Implementing that is something i intend to do.
The module is very messy atm, it's very much a homebrewed module i was using for my own projects that i spent a few days abstracting so some other people *could* use it. As soon as i get some time i'm going to make the process simpler and write a much more in-depth and user-friendly tutorial than just a readme file, with example views .etc
Comment #3
callum commentedComment #4
Anonymous (not verified) commentedStep-by-step tutorial available on SlideShare: http://slidesha.re/gck5dN
Comment #5
wessex commentedI've followed all of the instructions above, including the helpful presentation, but there's one part that I cannot figure out"
"Once you've created your view, create a node of type layar, give it a name and then select the view you created in the node creation screen. "
When I create a new node of type "Layar" I cannot see any Views listed to select, or indeed any sign of any kind of View. Is there something that I may not have set up correctly?
If I create a Layar node anyway, I am given the URL http://www.mydrupalurl.tld/layar/2978 which Layar's tools confirm. Of course no POIs are returned, but also, no errors, as that node isn't attached to the View.
Any tips gratefully received!
Comment #6
firfin commentedWessex are you sure the view was created correctly ? If so and the problem still occurs I suggest you open another issue for this problem. (something along the lines of 'views selection does not appear during layar creation' ? )
Your reply seems off-topic here. It only confuses the issue.
The slideslow might not be entirely up-to-date. But together with Callums reply in #2 and #3 I think it resolves the original issue.