Relative paths in HTML report

Started by casacde, October 18, 2019, 08:26:04 AM

Previous topic - Next topic

casacde

Hi.

I would like to publish the HTML report from Archi on an intranet with links to important external files.
I often entered links to PDF files in "Documentation" in the original archi file (for example: "file:///D:/SP/a_file.pdf"). Then I get a link in the browser and can open the file with a click. This works very well with absolute paths.

Now to my question: How can I specify relative paths here so that I can publish all documents in a directory on the web server?

Can someone help me? Thank you in advance!

Phil Beauvoir

The generated report doesn't do anything special with URLS in text fields, so it's not possible to do this. For example, a documentation field looks like this in the report's HTML:

<textarea id="docsrc" style="display:none">Here's a URL, it's just text - https://www.archimatetool.com</textarea>
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Steven Bradley

I have encountered a similar issue.
I regularly publish the model to the intranet as an HTML report as an organisation-wide read-only reference.
Independently, I also generate Excel workbooks or other bespoke reports for other stakeholders and would like to be able to embed URL links that point to specific views on the web site.

Is there any way to predict the relative path of a specific HTML view from inside the Archi model, such that a generated report, when given the URL root, can be populated with navigable links?

Alberto

The HTML report uses the View ID.  The URL will look something like this: index.html?view=id-7a7cf13a024046b796ac5bba0a2b3f83

You should be able to write a jarchi script to retrieve the ID. console.log("ID: " + view.id)