NetTalk Central

Author Topic: Link to a PDF in the /web folder  (Read 1643 times)

hectorp

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Link to a PDF in the /web folder
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11158
    • View Profile
Re: Link to a PDF in the /web folder
« Reply #1 on: May 30, 2022, 01:08:13 AM »
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

hectorp

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: Link to a PDF in the /web folder
« Reply #2 on: May 30, 2022, 05:16:57 AM »
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

« Last Edit: May 30, 2022, 08:26:30 AM by hectorp »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11158
    • View Profile
Re: Link to a PDF in the /web folder
« Reply #3 on: May 31, 2022, 04:49:42 AM »
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

hectorp

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: Link to a PDF in the /web folder
« Reply #4 on: May 31, 2022, 08:38:09 AM »
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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11158
    • View Profile
Re: Link to a PDF in the /web folder
« Reply #5 on: May 31, 2022, 10:51:05 PM »
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

hectorp

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: Link to a PDF in the /web folder
« Reply #6 on: June 01, 2022, 07:21:47 AM »
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11158
    • View Profile
Re: Link to a PDF in the /web folder
« Reply #7 on: June 01, 2022, 10:19:53 PM »
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