Gossamer Forum
Home : Products : Links 2.0 : Customization :

Avoid Overwrite On Build for Specific Pages or Spots in a Template

Quote Reply
Avoid Overwrite On Build for Specific Pages or Spots in a Template
Hello everyone. I have a task to complete which involves a modification to a script running Links SQL 2.1.2

We have a site that was just purchased and taken over by new ownership. The new owners want to be able to place text link ads on some of the pages but they have just realized that on every new build of the site, they overwrite the changes they made to the pages.

So, I have the task of finding out how to add a spot to the templates that will include an area that is not rewritten on each build.

I would need to know how to include some type of a call command for a line of code from an outside template or something. We seem to have hundred of pages that are identical or use the same template, buut we need a way to place ads on these pages, that do not change, while still being able to regenerate the page.

For instance, I added a text ad to this page: http://www.scriptsbank.com/New/ although when we rebuilt the pages, the text ads which we hardcoded in are gone. So I need to find out how to place an ad on this page specifically without interfering with our often need to rebuild the page to update it.

I need to find a way to add advertisements to specific pages of this site, many within similar templates which pull different ads.

Basically, if this sounds confusing, I need a way to place code that does not change regardless of regeneration.
Quote Reply
Re: [clasione] Avoid Overwrite On Build for Specific Pages or Spots in a Template In reply to
Create another template.

Example: extra_content.html

Add your stuff into that template

Go to the template you wish extra_content.html show up.

New.html
and the tag <%extra_content.html%>


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Quote Reply
Re: [clasione] Avoid Overwrite On Build for Specific Pages or Spots in a Template In reply to
You might have received faster help by posting this in the Links SQL forums. This forum is for customization of Links v2.0, not Links SQL. Not that it really matters considering the low volume of message traffic here. I just thought I would mention it.