NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on May 23, 2019, 02:54:04 PM

Title: Insert Link
Post by: osquiabro on May 23, 2019, 02:54:04 PM
how i can insert a link reference visible in all pages?

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">

index page is only procedure that provide W3 Header Override

NT 10.36

thanks
Title: Re: Insert Link
Post by: DonRidley on May 24, 2019, 02:03:51 AM
Look in your WebHandler's SetCustomHTMLHeaders method. I place mine before the parent call.

You can do something like:

self.MetaHeaders('<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous"><13,10>')
Title: Re: Insert Link
Post by: osquiabro on May 24, 2019, 04:00:19 AM
Don Thanks work perfect but with a little change

self.MetaHeaders = '<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous"><13,10>'
Title: Re: Insert Link
Post by: DonRidley on May 24, 2019, 04:07:06 AM
LOL.  Yeah, I have been writing a lot of methods lately.  Too accustomed to parentheses...