 | |  |
 |

gfahey
Novice
Jun 23, 2003, 7:55 PM
Post #1 of 7
(1866 views)
Shortcut
|
|
Trouble with links
|
Can't Post
|
|
I have a question regarding where to place my files. I have the AM templates uploaded in the CGI bin directory/folder on my server. I made modifications to the "search query" page with my own CSS, graphics, etc. I then saved it with the default "AutoManager2_30\templates\_search_query.html" name. Now, the link I made to go this page does nothing. Of course, they reside in different folders altogether but, is that the problem? Seems the pages function well from my hard drive. I have checked and rechecked the links, all is where it should be. What am I doing wrong here? When I changed the "search query" template, I simply replaced the one in the CGI Bin folder on my server. Right? Another question: Can I rename this template folder as simply "search" so I don't have the long URL? I'm tired and probably making no sense but, for the life of me, I can't figure why the page links won't function on the server side. TIA Greg
|
|
|  |
 |

Donna
Staff
/ Moderator

Jun 24, 2003, 12:57 PM
Post #2 of 7
(1845 views)
Shortcut
|
|
Re: [gfahey] Trouble with links
[In reply to]
|
Can't Post
|
|
Hi Greg! Thanks for your post. :) Well, the first problem is that you don't want to be linking directly to your template files. The templates are only for use by the program itself. So, to view the search engine, you'll go directly to: http://www.yourdomain.com/path/to/search.cgi This will be in the same place as your admin.cgi. So, if the path to your admin.cgi is... http://www.yourdomain.com/artman/exec/admin.cgi then your path to search will be http://www.yourdomain.com/artman/exec/search.cgi The search.cgi program will automatically pull the _search_query.html template and will format itself accordingly. Let me know if you're still having problems. :) Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

gfahey
Novice
Jun 25, 2003, 7:03 AM
Post #3 of 7
(1832 views)
Shortcut
|
|
Re: [Donna] Trouble with links
[In reply to]
|
Can't Post
|
|
Hi Donna, Thanks for the reply. OK, I am confused a bit here. If I cannot link directly to the templates, do I make a page "shell" so to speak and name it "search.html" for instance and have that linked to the search.cgi directory? You can go here: http://www.mainecarsonline.com/cgi-bin/am/exec/search.cgi And see that I have modified the template to my liking. I removed the top .jpg. I guess my question is: when I make the navigation scheme, what path do I use when creating a link to access this search page if I do not link directly to the modified template? Thanks for your help. I need someone to hold my hand you know. ;-) I appreciate your time. Greg
|
|
|  |
 |

Donna
Staff
/ Moderator

Jun 25, 2003, 8:50 AM
Post #4 of 7
(1829 views)
Shortcut
|
|
Re: [gfahey] Trouble with links
[In reply to]
|
Can't Post
|
|
Hi Greg, Thanks for your post. :) Actually, that link that you supplied is exactly the page that you link to. That's the search page right there. It automatically pulls it's look & feel from the _search_query.html file, and when you click submit, it pulls it's look & feel from the _search_results.html template. So, when you're creating your navigation and you want visitors to be able to search... you send them right to that search.cgi page. I hope this helps... Let me know if you have any other questions. :) Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

gfahey
Novice
Jun 26, 2003, 8:31 AM
Post #5 of 7
(1820 views)
Shortcut
|
|
Re: [Donna] Trouble with links
[In reply to]
|
Can't Post
|
|
Hi Donna, Well, I am going nuts trying to figure out why I cannot link to the "search_query" page again. Go to: www.mainecarsonline.com and check the links out. I only have the index, links and contact links working set up and they function fine. However, clicking on the "search" link gives me a "requested url not found" error!? So, you have my FTP info, perhaps you could check out the paths and see if things are OK. I seem to see everything in it's right place but, obviously something is awry here. Thanks for your time. I appreciate it....I will now go fire up the espresso! Greg
|
|
|  |
 |

gfahey
Novice
Jun 26, 2003, 12:28 PM
Post #6 of 7
(1813 views)
Shortcut
|
|
Re: [gfahey] Trouble with links
[In reply to]
|
Can't Post
|
|
Some more info here; I see that I can go directly to this path http://www.mainecarsonline.com/cgi-bin/am/exec/search.cgi which is the link you provided me with in the email to access my search page. But, I do not see my .jpg banner type logo/navigation on that page. I have used the _search_query template in the templates folder to modify to my needs but, alas, I see that when I click on the link I have made in the nav bar that it goes to the http://www.mainecarsonline.com/cgi-bin/am/exec/_search_query.html page which, of course, is the one that gives the http://www.mainecarsonline.com/error_docs/not_found.html error. As I understood it, I would modify the _search_query.html file with my necessary changes and simply replace the same file located as the _search_query.html file residing on the server which will automatically pull the _search_query.html template and will format itself accordingly. Right? What is also giving me fits is where to put the logo/nav bar .jpg file I want in the search_query page. Oh well. There it is for now. Any help appreciated as always. Regards, Greg
|
|
|  |
 |

Mike R
Staff

Jun 26, 2003, 4:21 PM
Post #7 of 7
(1805 views)
Shortcut
|
|
Re: [gfahey] Trouble with links
[In reply to]
|
Can't Post
|
|
Hi Gary, It looks like you've fixed the problem with the path to your search page... When I click on the "Search" button on your site, it correctly takes me to your search.cgi file (no 404 file not found error). The reason why the header graphic is not displaying correctly in the search.cgi page is because the path to the image has been set incorrectly in the template (_search_templates.html in the /templates directory). This is where the page is trying to find the image: http://www.mainecarsonline.com/cgi-bin/Images/575x75LogoNavBar.jpg You will need to fix the path for that image in the _search_query.html file... For example, the following absolute path would work fine: <img src="http://www.mainecarsonline.com/Images/575x75LogoNavBar.jpg" /> Additionally, if you want to use a relative path, you could use something like this: <img src="../../../images/575x75LogoNavBar.jpg" /> What this means is to go back three levels in the directory structure (../../../).. Each set of ../ means go back a level. And then forward into the /images folder and find the file named 575x75LogoNavBar.jpg. Since your search.cgi file is in the /cgi-bin/am/exec/ directory, the three sets of ../ are required to make a relative path. I hope this helps, and if you have any additional questions, feel free to let me know. :-) Mike Roulston interactivetools.com
|
|
|  |
 | |  |
|