Gossamer Forum
Home : Products : Links 2.0 : Customization :

Making includes to create a shorter code

Quote Reply
Making includes to create a shorter code
Hi:

I was thinking about this...
In many pages appear this for example:


------ START -----
<form action="<%db_cgi_url%>/search.cgi" method="GET">
<h2>Search</h2>
<div class="margin">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><strong class="search">Looking for something in particular?</strong></td></tr>
<tr><td><input type="text" size=15 name="query"> <input type=submit value="Search!"></td></tr>
<tr><td><small class="more"><a href="<%db_cgi_url%>/search.cgi">More search options</a></small></td></tr>
</table>
</div>
</form>

<p><small class="update">Pages Updated On: <%date%> - <%time%><br>
Links Engine Powered By: <a href="http://www.gossamer-threads.com/">Gossamer Threads Inc.</a></small></p>

</body>
</html>
-------- END --------

Then...
Why don't create a file with that and then all files call to that as a include ???

So the modifications will be easier...

But the question is... the files are templates read by the cgi...

how can i put a include command ?

Thanx in advance
Quote Reply
Re: Making includes to create a shorter code In reply to
Your idea has already been solved... check out the Enhanced Template mod in the Resource Center.

------------------
The Immuatable Order of Modding
-=-=-=-=-=-=-=-
1. Read the FAQ, 2. Search the board, 2a. Search the board again, 3. ask the question, 4. back-up, 5. experiment, 6. rephrase question (or better yet, post solution to original question)