[GeoNetwork-devel] Change template top-toolbar.html to customized header

The first reply is the one I got from Geonetwork. I don’t actually have the file there.

My own template was in my view but Geonetwork won’t accept it.

It’s only accepted it when I move it up in the actual folder chain right to the overall template folder in the catalog itself. Only then I receive the right view by including the header template in the index.html via ng-include=“…/…/catalog/templates/myView/myheader.html”.
If I set the path to my view folder I got signin.htlm from the default top-toolbar.html included and not my template.

···

On Mon, Apr 25, 2016 at 12:23 PM, gabi9001@…1115… <gabi9001@…1115…> wrote:

Yes, it contains the cache. However, after every tempting with the angular modules I reset the cache and restart tomcat just to be sure that I don’t have any leftovers from that source.

I activate the view via ?view=myView. I also tried it in the settings but then I have an error like this in the default view: “Service not available. The service ‘/geonetwork/srv/eng/myownheader.html’ does not exist or you don’t have privileges to access it. Return to the search page.” and it still is not working with my own view.

That only happens when I try my own files in my own view. If I create a folder in catalog/templates and access any file from it there is no problem at all. Default is fine and my view is intact.

Gabi

-------- Ursprüngliche Nachricht --------

Von: María Arias de Reyna
Datum:25.04.2016 11:33 (GMT+01:00)
An: gabi9001@…1115…, “Devel geonetwork-devel@lists.sourceforge.net
Betreff: Re: Re: [GeoNetwork-devel] Change template top-toolbar.html to customized header

Hi,

Does the war file contains the wro4j cache?

How are you activating your view? Parameter or via settings?

On Mon, Apr 25, 2016 at 11:17 AM, gabi9001@…1115…
<gabi9001@…1115…> wrote:

I found, that if I create a new file into the folder /catalog/templates/
where the original top-toolbar.html is the ng-include works. It stopps
working if I try to reference to any html inside my own view folder.

Gabi

-------- Ursprüngliche Nachricht --------
Von: gabi9001@…1115…
Datum:25.04.2016 11:07 (GMT+01:00)
An: María Arias de Reyna
Betreff: AW: Re: [GeoNetwork-devel] Change template top-toolbar.html to
customized header

Hi Maria,
thank’s for your reply.
I work with the war file on Lubuntu 15.
I tried to create my own view, leaving default as fallback position.
I started quite simple following the documentation ‘create your own view’
and just have an index.html and very rudimentary module. If I put a
‘ng-include’ command in the index I end up with parts of the topbar.
After every change I empty the cache and restart tomcat.
No, debug does not work.
Mmh, I just noticed that it is perhaps not specifically the topbar. In the
response there is definitely included the signin.html, overwriting the
content of my template.
Do you need more information?
Thank you for your help!

Regards,
Gabi


Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492