OpenWaterFoundation / owf-app-infomapper-ng

Open Water Foundation InfoMapper web application for menu-driven maps and visualizations, using Angular
GNU General Public License v3.0
1 stars 2 forks source link

Using a local PDF in content pages does not seem to display. #365

Open smalers opened 3 years ago

smalers commented 3 years ago

I added a funding request link to the Poudre Basin Information website. This is a one-page PDF flier that I put together to make it easy for people to distribute. I tried to add a link to the home.md file to the PDF in content-pages/ folder but when clicked on it opened a new tab but the same home page. I ended up using a full http link to the deployed website rather than relative URL to the local application files. The full URL is ugly because it points to assets, rather than the relative path URL used with other InfoMapper resources. I have the following questions:

  1. Is it possible to use a local PDF document in a Markdown link and have a new tab display for that, similar to an external website? Or, will a full http link need to be used? The popup dialog is not smart enough to display a PDF so a browser tab needs to be used, right?
  2. The popup dialog for showing Markdown works well for Markdown/HTML and referenced images. Are more complex media such as videos, and even text files going to be an issue? I have not experimented but