|
Post by stryker on Oct 4, 2007 9:57:38 GMT -5
Hi,
I'm redesigning a greymatter site so went in and put a comment at the start and end of every template to aid debugging.
The Author Smartlink Target template was blank, and since I didn't intend to change that I went back in to remove the two comments. But rather than clear the contents of that template, every time I rebuild, the comments are back again.
I just overkeyed the comments with target="_blank" but after rebuild it's not replaced the comments with it, but appended the new text to the comments. I've been playing with this a bit more and now I have this result:
<!-- Author Smartlink Target -->
<!-- end Author Smartlink Target --> target="_blank" target="_blank" target="_blank" <!-- Author Smartlink Target -->
<!-- end Author Smartlink Target --> target="_blank" target="_blank"
Other templates are editing and updating fine. Is this template held in a different file that I might have messed up the permissions on? Has anyone seen anything like this before ?
Thanks for any advice in advance...
|
|
|
Post by Carlos Phelps on Oct 4, 2007 11:12:08 GMT -5
stryker,
All the templates are in one file.
You might try this, open the template in question and right click in the text area then 'Select All' and delete it.
Now enter the new text you would like in the template then save it and rebuild all pages.
Hope this helps, Carlos
|
|
|
Post by coldstone on Oct 4, 2007 17:21:22 GMT -5
Otherwise, if you are very carefull, you can edit the gm-templates.cgi file directly, simply remove the text and be sure to save as text.
The line should be: gmlinktargettemplate=...
so, just delete upto the '=' (but be sure to leave it).
|
|
|
Post by stryker on Oct 5, 2007 7:18:40 GMT -5
Hi guys,
Thanks to you both for your rapid suggestions. It appears if I select all, delete and rebuild I'm just appending nothing to the end of the existing content. ie what happens after a rebuild is I end up with the same old content again.
Editing the cgi directly has done the trick. I had figured that would be my fallback position granted courage and a backup ;D
Strange one. Cheers! Geoff
|
|
|
Post by coldstone on Oct 7, 2007 21:11:33 GMT -5
Kudos Geoff, you found a bug! For some reason, the value of that textfield (Author Smartlink Target Template) was being hidden on the page, as well as having a edit box. Greymatter was squashing it all together when saving. This will be fixed in 1.7.4.
|
|
|
Post by stryker on Oct 11, 2007 5:06:51 GMT -5
ah...finally one that's not me ;D Now there's a satisfying feeling!
|
|