Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Adding HTML code to Add.html template

Quote Reply
Adding HTML code to Add.html template
Hello,

I am trying to add html code to the add.html template, and it doesn't work.

http://www.mydomain.com/banners.htm

Turns out to be:

http://www.mydomain.com/cgi-bin/page.cgi?g=banners.htm;d=1

I'm pretty sure this is something simple. Any ideas?

Thanks
Quote Reply
Re: [Chrisp] Adding HTML code to Add.html template In reply to
Just checked it again, and the link was working fine. I think a rebuild change took care of it. I didn't think that was needed because the page itself is dynamic, but guess so SmileWinkSmile
Quote Reply
Re: [Chrisp] Adding HTML code to Add.html template In reply to
Nope, I take that back. Previous to the above post, I happened to surf to the add form from via the following url:

http://www.mydomain.com/cgi-bin/add.cgi

The html hyperlink shows up fine there.

However, when browsing to a category, and then click add, I am presented with this url:

http://www.mydomain.com/...in/add.cgi?ID=37;d=1

And this is where the html hyperlink is screwed up.

So, any suggestions? Thanks
Quote Reply
Re: [Chrisp] Adding HTML code to Add.html template In reply to
dump the ".htm"

http://www.mydomain.com/cgi-bin/page.cgi?g=banners.htm;d=1

to

http://www.mydomain.com/cgi-bin/page.cgi?g=banners;d=1

should work.
Quote Reply
Re: [MJB] Adding HTML code to Add.html template In reply to
Hi MJB,

Actually, the code I am adding on the add.html template is:

<a href='http://www.mydomain.com">here</a>

But the hyperlink turns out to be:
http://www.mydomain.com/cgi-bin/page.cgi?g=banners.htm;d=1

Thanks for helping, any other suggestions?

Quote Reply
Re: [Chrisp] Adding HTML code to Add.html template In reply to
Does the code you're trying to add change or is it static?

You might be best off creating a custom banners.html template then use the Include tag in add.html

.....or maybe I'm just not quite sure what you're trying to acheive.
Quote Reply
Re: [MJB] Adding HTML code to Add.html template In reply to
Hi MJB,

Got it! I simply just changed the html code on the add.html template to:

You can grab our banners <a href="/banners.htm">here.</a>

Sorry if I wasn't clear enough with the problem description. Thanks for the help!