Gossamer Forum
Home : Products : Links 2.0 : Discussions :

some help on adding pages

Quote Reply
some help on adding pages
The question I have is when someone does a search, and it displays the search results, can i use like a:

<%insert filename%> for example:

They search Education. When the search results are displayed there is a section that says Categories:
Education
can i take that and make it open a page called index, with it like <%insert file%><%category_results%>+"/index.htm"

Please Help
Marc Parish
http://www.todayslearning.com
Quote Reply
Re: some help on adding pages In reply to
I am not sure exactly what you are attempting to do.

Please provide more details.

Thank you.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: some help on adding pages In reply to
i already used header and footer, but i want to add my index page to each search topic. for example you search for education, the it displays all the education links right. Now what i want to do is add my education page to the search return for education. if someone searches for online games, then i want the links of online games to appear, plus i want my index page to appear.
Quote Reply
Re: some help on adding pages In reply to
If I understand you correctly, what you need to do is the following:

1) Add the Category Search Mod to your search.cgi script, which is found at the following URL:

jsu7785.hypermart.net/links_mods/

2) Then add the following codes at the top of your sub site_html_search_results:

Code:
if ($in{'category'} eq "Online Games") {
$template = "online_results.html";
}
else {
$template = "search_results.html";
}

3) Then change the following codes:

Code:
print &load_template ('search_results.html', {

to the following codes:

Code:
print &load_template ($template, {

4) Then create a new Template file called online_results.html. This should include codes from your "index page" and also include <%link_results%> so that link results will appear.

BTW: Since this type of question deals with hacking codes in the LINKS files, you should post questions like this in the future in the LINKS MODIFICATION FORUM.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


[This message has been edited by AnthroRules (edited April 14, 2000).]
Quote Reply
Re: some help on adding pages In reply to
Sorry, AnthroRules

I might not have made myself clear, what im tring to do is.

1. You search for education or for something
2. the search links are displayed
3. When the search links are displayed, i want to be able to add a file into different searches. example of what im takening about:

header <--- i already used to display site title
search_results <-- comes with links
footer <--- I already used it for copyright and other information.

now what i want to do is load a file into all this depending on the search results.

I search education, and it displays education links, and another page called education_index.htm
i want it 2 merge search_results + another page by itself.

I hope this helps you figure my question out better.
Quote Reply
Re: some help on adding pages In reply to
This would be complicated with the criteria you have provided...if users type in "education" not just select the category "education", you want something special to be placed in the page, right?

And BTW: The include function will not in the format you've provided.

Good luck!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: some help on adding pages In reply to
right, is there a way to do this?