Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

Problem with editing of templates

Quote Reply
Problem with editing of templates
[I should have posted this in the Unix installation forum, sorry!]

Hi, I am using Links 2.0 for a couple of months now, I used the edit option to modify the templates to my own webpage's layout and all worked well. However I recently changed to a new webdesign with lots of fireworks/javascript features. I managed to edit the template to the new layout without any problems, my home.html runs fine but there are script-errors while viewing the file in my browser. This causes my drop-down menu not to work. How is this possible, cause the page does work without Links 2.0. Doesn't the template editor support javascript or macromedia fireworks tags?????

please find my links-site @ http://www.adsl-online.net/links/pages and see for yourself that the drop-down menu doesn't work.

I hope anyone can help me out!
Quote Reply
Re: Problem with editing of templates In reply to
As far as I know it shouldn't be a problem. I've used Javascript before and it's been fine. I had a quick look at your code and don't think that the template editor has altered any tags. The error message 'undefined' seems to point to something else.

Incase your interested the error comes up at line 30:

window.fw_menu_0 = new Menu("root",140,20,"Times New Roman, Times, serif",12,"#6699cc","#ffffff","#006699","#6699cc");



Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Quote Reply
Re: Problem with editing of templates In reply to
Glenn,
this is a link to a page with excactly the same Links2-code as in my home.html, but not created by the template editor:
http://www.adsl-online.net/test/tryout.htm

I don't get the error messages with this page and its the exactly the same source-code! Could it bee that the form width of the template editor field should be larger??

I mean, the code is good, why is it screwed up after I hit the "save this template" button in the admin menu? Possible bug perhaps?
Quote Reply
Re: Problem with editing of templates In reply to
I don't get the error messages with this page and its the exactly the same source-code!

Yeah it's weird because I get 2 error messages one at line 30 and the other at line 106. (I'm using IE 5.00)

Could it bee that the form width of the template editor field should be larger??

I don't think it's that.

Possible bug perhaps?

Possibly, I know in the past sometimes when I save a page in it, it seems to insert extra line spaces between the code.

In any case I always do my editing offline now a days as it's quicker/easier, especially when using interdevs' find and replace option!

Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Quote Reply
Re: Problem with editing of templates In reply to
I don't know how but after removing the index.html file from the links/pages directory and then building the pages again from the admin section, solved the problem.

<--note to admin: please close this topic-->