Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
search for category as a page/index

 

 


mdb
User

Oct 6, 2006, 1:27 AM

Post #1 of 13 (5955 views)
Shortcut
search for category as a page/index Can't Post

What I was hoping to do was to have a news page which shows up all current news - not just the top 5 - in a format like the index page has with category name, article name summary etc.

So the category is News Updates and when clicked on all news items from that category come up in reverse date order like an index.

I thought this forum covered the problem

http://www.interactivetools.com/forum/gforum.cgi?post=41099#41099

However I am getting a SSI processiong problem with my file

http://southlandmedia.com.au/artman/publish/latest_news.shtml

What I have done is:

1. copied the search/search_results.html file and called it news_search.html and saved it in the search folder

2. I stripped back all html etc as outlined in Mike's forum post

3. copied the index/default.html file and called it news_updates.html

and pasted this include

<!--#include virtual="/path/to/artman/exec/search.pl?search=1&perpage=10&cat=50&template=search/news_search.html" -->

in place of <!-- template insert : $article_list$ --> (again based on the forum)

4. I linked the news updates category to the index/news_updates.html template in category editor

5. I ftp'd the new files

6. I published all

I get an error. I feel it could be linked to the path I am using to search but I have tried so many options and cannot work it out.

BTW my search uses search.pl not .cgi

Am I way off beam?

sorry I have been asking so many questions lately but I am at the near stage of launching this and keep finding unresloved problems

Please help if possible!


Donna
Staff / Moderator


Oct 6, 2006, 12:01 PM

Post #2 of 13 (5948 views)
Shortcut
Re: [margaretmh] search for category as a page/index [In reply to] Can't Post

Hi Margaret,

Thanks for your post.

Can you let me know what error you got? Was it the standard "An error occured while processing this directive"? If so, you're right, the path is probably the culprit.

The easiest way to find the path is to go to your regular search page. For example,

http://www.yoursite.com/path/to/search.pl

Now, remove the part with the domain name, and you're left with:

/path/to/search.pl

That's the bit you want to have in the SSI. If you're still having trouble, let me know what your website address is, and I should be able to give you the correct syntax exactly. :)

Donna

--
support@interactivetools.com


mdb
User

Oct 6, 2006, 10:31 PM

Post #3 of 13 (5943 views)
Shortcut
Re: [Donna] search for category as a page/index [In reply to] Can't Post

Donna

Thanks for your response - I checked the path as suggested.

The error I get is

Error processing SSI file

page is

http://southlandmedia.com.au/artman/publish/news.shtml


I am not even sure I am on the right track, basically what I want to do is when a user clicks on a category link they get all the articles for that category listed (by date - most recent first), 10 to a page in the format like the homepage, with a previous and next button at the bottom - basically as if they had done a search on that category.

anything you can suggest would be much appreciated

Thanks


(This post was edited by margaretmh on Oct 7, 2006, 12:13 AM)


ChetW
Staff


Oct 7, 2006, 5:16 PM

Post #4 of 13 (5931 views)
Shortcut
Re: [margaretmh] search for category as a page/index [In reply to] Can't Post

Hi,

Thanks for the post!

I have taken a look at the link that you provided but can't seem to find the error that you have mentioned. Have you already managed to resolve this issue? Or am I missing it? If I am missing the issue could you possibly guide me towards me to a page where I can see this error, once I can see the issue I will be happy to help you out with solving it. :)

I look forward to hearing back from you!
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


mdb
User

Oct 7, 2006, 6:25 PM

Post #5 of 13 (5929 views)
Shortcut
Re: [ChetW] search for category as a page/index [In reply to] Can't Post

Chet

so sorry - I think I am going mad

This is the link to the page that has the problem

http://southlandmedia.com.au/artman/publish/latest_news.shtml

sorry to be wasting time - is my explanation of what I am trying to do clear?

many thanks - everything you guys have helped me with has been magic so far


ross
Staff / Moderator


Oct 8, 2006, 11:39 AM

Post #6 of 13 (5921 views)
Shortcut
Re: [margaretmh] search for category as a page/index [In reply to] Can't Post

Hi Margaret.

Thanks for the updated link there!

I think I see the problem. From the looks of it, you are running on a windows server and they sometimes need a slightly different SSI syntax. Let’s say your include looks like this:

<!--#include virtual=”/cgi-bin/artman/search.pl?search=1” -->

Try changing that to this:

<!--#exec cgi=”/cgi-bin/artman/search.pl?search=1” -->

It’s basically the same thing but it uses exec and cgi instead of include and virtual.

Give this a shot and let me know how you make out Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

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: http://www.interactivetools.com/consulting/



mdb
User

Oct 8, 2006, 2:36 PM

Post #7 of 13 (5914 views)
Shortcut
Re: [ross] search for category as a page/index [In reply to] Can't Post

Thanks Ross

I now get this error message

Failed to execute CGI : Win32 Error Code = 3

I was using this code

<!--#include virtual="/path/to/search.pl?search=1&perpage=10&cat=50&template=search/news_search.html" -->

and am now using

<!--#exec cgi="/path/to/search.pl?search=1&perpage=10&cat=50&template=search/news_search.html" -->

by the way my other includes seem to work OK - is this different because of the seach facility it is trying to send? Also when I check my exec folder on the remote server I do not have any .cgi files in there - I was told in an earlier request to change the files see

http://www.interactivetools.com/iforum/Products_C2/Article_Manager_F2/cant_search_P49021/


(This post was edited by margaretmh on Oct 8, 2006, 3:04 PM)


ross
Staff / Moderator


Oct 8, 2006, 3:49 PM

Post #8 of 13 (5908 views)
Shortcut
Re: [margaretmh] search for category as a page/index [In reply to] Can't Post

Hi again Margaret.

That’s definitely odd. Would you mind sending me a support request so I can take a closer look at what’s happening?

https://www.interactivetools.com/support/email_support.cgi

I don’t know for sure, but I am assuming that your other include is actually pulling in a static .html (or something similar) file. The exec/cgi combo is something unique to windows servers when trying to include dynamic scripts like search.cgi which is why they are different. So you are on the right line of thought with that one Smile.

The fact that you don’t have any .cgi files in your exec folder is fine. This is another thing unique to some windows server and isn’t going to cause any problems.

I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

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: http://www.interactivetools.com/consulting/



ross
Staff / Moderator


Oct 9, 2006, 4:28 PM

Post #9 of 13 (5897 views)
Shortcut
Re: [margaretmh] search for category as a page/index [In reply to] Can't Post

Hi Margaret.

I actually just sent you an update with the solution in it, so this post is going to be more for anyone else following along Smile.

Basically, the problem here was just a small pathing problem. Here’s what got things going:

<!--#exec cgi="/artman/exec/search.pl?search=1&perpage=10&cat=50&template=search/news_search.html" -->


Notice how the /path/to/ part is substituted out for the actual path to the search engine? That was the fix.

Let me know if you’d like anymore details Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

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: http://www.interactivetools.com/consulting/



(This post was edited by ross on Oct 10, 2006, 9:46 AM)


mdb
User

Oct 9, 2006, 11:07 PM

Post #10 of 13 (5891 views)
Shortcut
Re: [ross] search for category as a page/index [In reply to] Can't Post

Ross

I received your support email Blush

I can't believe I did that - thanks so much fo setting me straight!


mdb
User

Oct 11, 2006, 5:54 AM

Post #11 of 13 (5871 views)
Shortcut
Re: [margaretmh] search for category as a page/index [In reply to] Can't Post

Ross

I just wondered whether you knew what would cause any page with this include script on it to load strangely.

Basically when you click on this page

http://southlandmedia.com.au/artman/publish/latest_news.shtml

which has the include the left column stretches across the page before settling back into the correct position but when this page without the script is loaded

http://southlandmedia.com.au/artman/publish/about_us.shtml

it does not do that column stretch.

This does not seem to happen in IE but certainly does on my mac Firefox.

Is there any way to prevent it as it is quite disturbing and yucky!

Thanks

Margaret

(I know its not an AM thing but throught it might be a known issue)


ChetW
Staff


Oct 11, 2006, 11:43 AM

Post #12 of 13 (5867 views)
Shortcut
Re: [margaretmh] search for category as a page/index [In reply to] Can't Post

Hi Margaret,

Thanks for the post!

I have looked at both the links that you have provided, and this issue appears to be a browser related rendering problem. At the moment I believe that Firfox is running into a width defintion of 100% and trying to span your category list across the full length of the table. :)

One thing that you may want to try is editing your category list html template file so that all instances of this:

width="100%"

are replaced with this:

width="184px"

184px appears to be the set width that you have defined for your search and job vacancy headlines that are also located in the left hand column. :)

Give this a try Margaret and If you have nay other questions please feel free to ask!
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


mdb
User

Oct 11, 2006, 4:22 PM

Post #13 of 13 (5866 views)
Shortcut
Re: [ChetW] search for category as a page/index [In reply to] Can't Post

Thanks for that suggestion Chet - I tried it but still no luck.

For some strange reason it definately is linked with the search include - when I put the include in a table to try to stabilise the width - it actually left the page permanently misshapen - with the category box staying three quarters of the way across the page!

The files with the new search include are the only files that this happens with.

As it is only firefox and it quickly corrects itself I should not waste any more time on it but this sort of thing niggles away at my sanity.