Page 1 of 1
Custom Pages
Posted: Fri Oct 20, 2023 2:43 am
by kd7eir
I am trying to create either a custom page or menu item that opens
https://www.astrospheric.com/?Latitude= ... c=Forecast
I tried a custom page - I can get a list to display a link, but I would like the menu item or the custom page to automatically show the website. I have an embed for it, but java script is not allowed, so I can't use it.
Any suggestions?
Re: Custom Pages
Posted: Fri Oct 20, 2023 7:57 am
by FSC830
Actually I am not sure if I caught the issue correct.
As an example: if you go to my page and click Weather - Metar Decoder, a new tab is opened.
Is that, what you want to achieve?
Regards
Re: Custom Pages
Posted: Fri Oct 20, 2023 12:20 pm
by lemimi
Hello,
Or perhaps this:
https://lemimi.fr/template/custom/custo ... cod%C3%A9s
If it is this, open your control panel,
Click “Create new custom page”.
Then "New page". In the frame that appears, I enter the following code:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf décodés</h1>
</head>
<body>
<center><object type="text/html" data="
https://www.metar.lemimi.fr/wx7.php" width="98%" height="800">
</object>
</center>
</body>
</html>
You just have to replace the URL...
Re: Custom Pages
Posted: Fri Oct 20, 2023 2:39 pm
by kd7eir
lemimi wrote: ↑Fri Oct 20, 2023 12:20 pm
Hello,
Or perhaps this:
https://lemimi.fr/template/custom/custo ... cod%C3%A9s
If it is this, open your control panel,
Click “Create new custom page”.
Then "New page". In the frame that appears, I enter the following code:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf décodés</h1>
</head>
<body>
<center><object type="text/html" data="
https://www.metar.lemimi.fr/wx7.php" width="98%" height="800">
</object>
</center>
</body>
</html>
You just have to replace the URL...
That worked perfectly. Thank you.
Re: Custom Pages
Posted: Thu Nov 16, 2023 1:50 pm
by amonphi
lemimi wrote: ↑Fri Oct 20, 2023 12:20 pm
Hello,
Or perhaps this:
https://lemimi.fr/template/custom/custo ... cod%C3%A9s
If it is this, open your control panel,
Click “Create new custom page”.
Then "New page". In the frame that appears, I enter the following code:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf décodés</h1>
</head>
<body>
<center><object type="text/html" data="
https://www.metar.lemimi.fr/wx7.php" width="98%" height="800">
</object>
</center>
</body>
</html>
You just have to replace the URL...
Hi @lemimi ,
I'm trying to create the same custom page with the same procedure indicated here but I only get the Namespace of the page I created, the URL I'm interested in viewing is this
https://aviationweather.gov/data/metar/ ... ecoded=yes while the html code I inserted is this:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf decodificato</h1>
</head>
<body>
<center><object type="text/html" data="
https://aviationweather.gov/data/metar/ ... ecoded=yes" width="98%" height="800">
</object>
</center>
</body>
</html>
Can you kindly point out to me where I'm going wrong?
Thank you
Re: Custom Pages
Posted: Thu Nov 16, 2023 1:58 pm
by alexvanuxem
you can also link that page to a new tab in your menu.
login as admin, in administration page, click on menu,
add a new tab, save, update menu
on the line of the new tab, enter your url and it should work
alex
Re: Custom Pages
Posted: Thu Nov 16, 2023 3:09 pm
by amonphi
alexvanuxem wrote: ↑Thu Nov 16, 2023 1:58 pm
you can also link that page to a new tab in your menu.
login as admin, in administration page, click on menu,
add a new tab, save, update menu
on the line of the new tab, enter your url and it should work
alex
Hi,
yes yes that is an alternative which, in the end, is also simpler to obtain but, I was interested in understanding the Custom Pages providing HTML code.
Thanks anyway for the suggestion, surely if I can't get the Custom Pages I will adopt that system!
Re: Custom Pages
Posted: Thu Nov 16, 2023 7:16 pm
by lemimi
Hello,
Many sites prohibit their website from opening in an iframe.
Thus, to block the display of a page in a frame or iframe, the HTTP header option (HTTP Header) X-Frame-Options is used.
Four values are possible for X-Frame-Options:
DENY: The page cannot be displayed in a frame, no matter which site tries to load it.
SAMEORIGIN: The page can only be displayed by a site of the same origin.
ALLOW-FROM uri: The page can only be displayed in a frame from the specified origin.
ALLOWALL: The page can be displayed in a frame by all sites. (by default)
Alexvanuxem's solution will open the site in a new tab...
Good evening... Michel
Re: Custom Pages
Posted: Thu Nov 16, 2023 9:55 pm
by kd7eir
I had the same issue - the page I wanted to link prohibits opening in an iframe. I had to make the URL a menu entry under my Astronomy menu. The link then opens in a new tab.
>>>
>>
#default(moonPhase)
#default(astroCalendar)
#default(sunTimes)
#plugin(sunMoon)
#default(solsticeEquinox)
>>>
>>
#default(dayNight)
#plugin(eclipses)
#plugin(solarSystem)
>>>
>>
#plugin(spaceWeather)
#plugin(nightSky)
Astrospheric Seeing Forecast |
https://www.astrospheric.com/?Latitude= ... c=Forecast | mticon-logo | blank
amonphi wrote: ↑Thu Nov 16, 2023 1:50 pm
lemimi wrote: ↑Fri Oct 20, 2023 12:20 pm
Hello,
Or perhaps this:
https://lemimi.fr/template/custom/custo ... cod%C3%A9s
If it is this, open your control panel,
Click “Create new custom page”.
Then "New page". In the frame that appears, I enter the following code:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf décodés</h1>
</head>
<body>
<center><object type="text/html" data="
https://www.metar.lemimi.fr/wx7.php" width="98%" height="800">
</object>
</center>
</body>
</html>
You just have to replace the URL...
Hi @lemimi ,
I'm trying to create the same custom page with the same procedure indicated here but I only get the Namespace of the page I created, the URL I'm interested in viewing is this
https://aviationweather.gov/data/metar/ ... ecoded=yes while the html code I inserted is this:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf decodificato</h1>
</head>
<body>
<center><object type="text/html" data="
https://aviationweather.gov/data/metar/ ... ecoded=yes" width="98%" height="800">
</object>
</center>
</body>
</html>
Can you kindly point out to me where I'm going wrong?
Thank you
Re: Custom Pages
Posted: Fri Nov 17, 2023 7:14 am
by amonphi
lemimi wrote: ↑Thu Nov 16, 2023 7:16 pm
Hello,
Many sites prohibit their website from opening in an iframe.
Thus, to block the display of a page in a frame or iframe, the HTTP header option (HTTP Header) X-Frame-Options is used.
Four values are possible for X-Frame-Options:
DENY: The page cannot be displayed in a frame, no matter which site tries to load it.
SAMEORIGIN: The page can only be displayed by a site of the same origin.
ALLOW-FROM uri: The page can only be displayed in a frame from the specified origin.
ALLOWALL: The page can be displayed in a frame by all sites. (by default)
Alexvanuxem's solution will open the site in a new tab...
Good evening... Michel
Hi,
thanks for the explanation, unfortunately not knowing the various programming codes and the related problems, often caused by external sources, I thought it was just my problem, but no.
I will follow the alternative solution indicated then.
Thanks again for the confirmation
Pierluigi
Re: Custom Pages
Posted: Fri Nov 17, 2023 7:42 am
by amonphi
kd7eir wrote: ↑Thu Nov 16, 2023 9:55 pm
I had the same issue - the page I wanted to link prohibits opening in an iframe. I had to make the URL a menu entry under my Astronomy menu. The link then opens in a new tab.
Hi,
i understood that the custom page with the indicated code worked for you.
No problem anyway, I use a link via the menu.
Thank you
Pierluigi