Page 1 of 1
Standard Website Pages Templates Title (weather)
Posted: Wed 25 Jan 2023 8:48 pm
by SJG1976
Hi All,
Probably really basic, but for the life of me I can't find where the page Title is being set.
I thought it was from the Website Data json file.
And that it was being pulled from the setpagedata.js
However I seem to keep having the the page title as
Glemsford Weather weather
I've removed the part where I htough tit was
Code: Select all
// Set some header stuff
$(document).prop('title', cmx_data.location + ' weather ');
$('meta[name=description]').attr('content', cmx_data.location + ' weather data ');
$('meta[name=keywords]').attr('content', $('meta[name=keywords]').attr('content') + ', ' + cmx_data.location);
The prop Title part.
However it still seems to be showing up?
Re: Standard Website Pages Templates Title (weather)
Posted: Wed 25 Jan 2023 9:36 pm
by PaulMy
Hi,
I believe it is from Station settings > General Settings > Location = Name
and index.htm line 60 Weather.
Code: Select all
<div id="Content"> <!-- Start of panel content -->
<div class="w3-row-padding w3-theme-light site-width"> <!-- Page Title -->
<div class="w3-col l12">
<h1><span data-cmxdata="location"></span> Weather <span class="subText"></span></h1>
</div>
</div> <!-- End of title row -->
Enjoy,
Paul
Re: Standard Website Pages Templates Title (weather)
Posted: Thu 26 Jan 2023 12:20 pm
by SJG1976
Hi Paul,
Thanks for the reply.
I thought that bit was for the Change in the Main Heading page.
I've updated that part and it only seems to do the header.
The reason I think it's on the Java 'setpagedata.js' is because of the Lowercase w in Weather.
That is the only Reference I can find to it.
It maybe just cached on mine, but I can't seem to get it to be removed.
It also does it on all the Other Standard Pages as well.
I've just uploaded the FIle, and when I got to view the Source it still says at Line 169 on the setpage.js the 'weather' entry is still there.
Do the .js files get updated on every live update?
Thanks for looking..
Re: Standard Website Pages Templates Title (weather)
Posted: Thu 26 Jan 2023 12:42 pm
by ConligWX
yeap looks like setpagedata
LINE 168 on my file...
Code: Select all
// Set some header stuff
$(document).prop('title', cmx_data.location + ' weather');
however your site shows "Glemsford Weather weather" in the tab title
so your "cmx_data.location" = Glemsford Weather
in default index.htm:
Code: Select all
<h1><span data-cmxdata="location"></span> Weather <span class="subText"></span></h1>
so not sure why it is not showing "Glemsford Weather Weather" on the page unless you ahve added or removed something there too.
can you confirm your setpagedata.js and index.htm are default?
Code: Select all
# Checking CumulusMX file integrity on Linux
# go to your installation directory (eg. /opt/CumulusMX/)
# and run the following command (add --quiet to end of line if only want to see errors):
# ---------------------------------------------------
# md5sum --check hash_md5_3221.txt
# ----------------------------------------------------
#
# Checking file integrity on Windows
# Start a PowerShell session
# go to your installation folder (eg. cd C:\CumulusMX)
# and run the following command:
# ---------------------------------------------------
# .\MXutils\windows\CheckMD5HashFile.ps1 -HashFile .\hash_md5_3221.txt
btw nice part of the country, my family is from round those parts.
Re: Standard Website Pages Templates Title (weather)
Posted: Thu 26 Jan 2023 12:54 pm
by SJG1976
Many Thanks.
I've just uploaded.
Cleared the Cache and all seems to be working now (for me at least) needed to do a Chrome Incognito to get to see the new page.
I've only recently moved here was originally in Chelmsford (CM2Weather) so a bit of a change.
Much nicer Views and way of life, just wish I had better internet, but you can't have everything.
Thanks both for you help!
