NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: hectorp on May 29, 2022, 08:02:36 AM
-
Hi,
How can I place a link to a PDF file stored in the /web folder (other way than a button) in the index page?
TIA
-
Hi Hector,
I don't understand the question. A link is just a
<a > tag in the HTML - so, um, you can include <a> tags in your HTML?
But I feel that's too obvious, and I've missed what you are really asking...
cheers
Bruce
-
Hi Bruce,
I'm following NT Web30 example. It shows how to load a PDF file using hyperlinks, but the link to the PDF file is stored in a table field.
I need the link to be in the form instead of been stored in the file.
Regards
-
go to the browse column in the template,
to the "on click" tab
and set the URL field to whatever you like.
like maybe;
'https://capesoft.com'
Is this what you have in mind?
Cheers
Bruce
-
Bruce,
I manage to load the PDF from the URL option of a button. It is not an HTML hyperlink but it works.
In the next future, If I remove the button then I will have to look how to do it with HTML.
Cheers.
-
That link is from a menu.
So I'm not sure what you mean by "button".
Bear in mind that a NetWebPage procedure has no functionality, it's an empty container. So you can add whatever HTML in there that you like. If you want something more powerful use a NetWebForm (memory form) for your indexpage procedure, and then you can use any form field - including buttons or just plain text with URL's in them.
cheers
Bruce
-
Bruce,
If I understand correct, I must use something like this in the XHtml tab:
<a href="DIVULGACION.pdf">ThisTextIsTheLink</a>
And it must be enclosed in a <Div></div> so it can be located in the area where I need it, by using CSS.
Please, correct me if I'm wrong?
Regards
-
that's a regular <a> tag for HTML yes. What you would call a hyperlink. Wrapping it in a div can be useful for layout reasons, although you can add a class attribute to the <a> tag if you like. As in
<a href="something" class="whatever"> and so on.
Cheers
Bruce