Raw text details printout?

Want to post something that doesn't quite fit into the other forums? This is the place for that.
Post Reply
GregoryGHarding
Posts: 96
Joined: Mon Jan 26, 2015 9:01 am
Location: CYYT

Raw text details printout?

Post by GregoryGHarding » Mon Apr 13, 2015 8:54 am

if i wanted to have a text only print out of the aircraft details for the selected aircraft how would i go about doing that with each field on a new line, no labels?

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Raw text details printout?

Post by agw » Sun Apr 26, 2015 5:31 pm

You would need to write a whole bunch of JavaScript :)

If you are handy with HTML and JavaScript then it wouldn't be very difficult. You would need to use the Custom Content Plugin to add a page to the site that takes the aircraft's ICAO-24 code in the query string, then just fetch AircraftList.json from the server, go through the aircraft list to find the one you're interested in and render the fields on the page.

You would also need to inject a script on the main site to add a link from the aircraft detail panel to your new page.

However, if you're not familiar with HTML and JavaScript then it's going to be a bit of a struggle to get it all going.

Post Reply