Page 1 of 1

Raw text details printout?

Posted: Mon Apr 13, 2015 8:54 am
by GregoryGHarding
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?

Re: Raw text details printout?

Posted: Sun Apr 26, 2015 5:31 pm
by agw
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.