[ckan-dev] POSSIBLY SPOOFED: Re: How does CKAN get the image name in the hgroup for the masthead header

Judith Moran Judith.Moran at nt.gov.au
Fri Apr 5 01:04:29 UTC 2019


Hi Alex,

Firstly thanks for the reply much appreciated.

Your example had a file link, mine is using a URL link.

We discussed do the same but decided doing the below.



When it is a URL in the Site Logo fiedl it works differently.

I changed the code in header.html.  I retained the original code in case my manager wanted to revert back.
Yellow commented out Code
Green new code.  I just removed the URL test and just left it dislaying text.

    <hgroup class="{{ g.header_class }} navbar-left">
      {% block header_logo %} {% if g.site_logo %}
      {# <a class="logo" href="{{ h.url_for('home.index') }}"><img src="{{ h.url_for_static_or_external(g.site_logo) }}" alt="{{ g.site_title }}" title="{{ g.site_title }}" />"DATA.NT"</a> #}
         <a class="logo" href="{{ h.url_for('home.index') }}"><img src="" />Data.NT</a>
      {% else %}
      <h1>

[cid:image001.jpg at 01D4EB9B.24C49BF0]









From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] On Behalf Of Alex (Maxious) Sadleir
Sent: Thursday, 4 April 2019 6:36 PM
To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
Subject: POSSIBLY SPOOFED: Re: [ckan-dev] How does CKAN get the image name in the hgroup for the masthead header

Hi Judy,

This is something you can customise without changing code; when you are logged in as a sysadmin, you can go to http://opendata.nt.gov.au/ckan-admin/config<http://opendata.nt.gov.au/> (or whatever domain name, you can also click the Gavel icon in the header) to change the header "Site logo" image:
[Screen Shot 2019-04-04 at 8.01.50 pm.png]

On Thu, Apr 4, 2019 at 6:48 PM Judith Moran <Judith.Moran at nt.gov.au<mailto:Judith.Moran at nt.gov.au>> wrote:
Hi,

I am required to change the NT.GOV.AU<http://NT.GOV.AU> to Data.NT

[cid:169e7909dd04cff311]


I have located the HTML in and worked out that script in index.html is also involved.

<script>
if ( window.location.pathname == '/' ){
  document.body.className += ' ' + 'home';
}
</script>



<body class=" home" data-locale-root="http://opendata.nt.gov.au/" data-site-root="http://opendata.nt.gov.au/"><header class="navbar navbar-static-top masthead"><div class="container"><hgroup class="header-image navbar-left">

      <a class="logo" href="/"><img title="NTG Open Data Portal" alt="NTG Open Data Portal" src="https://beta.nt.gov.au/__data/assets/file/0004/517225/ntg-desert-rose-reverse.svg"></a>

    </hgroup></div></header></body>
</html>



Can Someone assist in advising how I change this without a major rewrite of the HTML Code.


Regards,


Judy Moran
Manager Data Strategy
Department of Corporate and Information Services
Northern Territory Government of Australia
T:  892 96550
E:  DataStrategy.NTG at nt.gov.au<mailto:DataStrategy.NTG at nt.gov.au>

_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org<mailto:ckan-dev at lists.okfn.org>
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190405/1386f754/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 11345 bytes
Desc: image001.jpg
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190405/1386f754/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 49810 bytes
Desc: image003.png
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190405/1386f754/attachment-0002.png>


More information about the ckan-dev mailing list