Re: [marys] Search only specific categories

  • Archived  

By Donna - April 22, 2009

Try this:

<input type="hidden" name="categoryNum" value="12,29,36,44">

I hope this helps. :)
Donna

--
support@interactivetools.com

Re: [Donna] Search only specific categories

  • Archived  

By marys - April 25, 2009 - edited: April 25, 2009

Thanks, Donna, but...

I now get this error:

Error: no category specified! at /home/changed/chan/f/a/666666/html/artman2/modules//IT/ArtMan/CustomMenus/Publish.pm line 486.

(I edited the directory names to protect the info, but all from "/html" is original.)

My hidden values look like this:

<input type="hidden" name="action" value="search"/>
<input type="hidden" name="categoryNum" value="101,19,20,21,22,24,62,67,68">

Re: [marys] Search only specific categories

  • Archived  

By ross - April 27, 2009

Hi marys

Thanks for the feedback.

The error message you are getting there usually means you have a publish rule set to only include certain categories but haven't actually selected any categories for it.

What you'll want to do is go through your article list publish rules and make sure any of them that are set to include or exclude actually have something selected in the category list.

Does that make sense? Have a look and let me know how you make out :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@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/

Re: [ross] Search only specific categories

  • Archived  

By marys - June 25, 2009 - edited: June 25, 2009

I have three article page publish rules:

1 is for public site article pages
2 is for private site article pages
3 is the preview rule

I've tried both ways on both rules: to include only the files on the public site for 1; then to exclude the private site files.

Did the same with 2.

I still get:

Error: no category specified! at /home/cluster1/data/f/a/812545/html/artman2/modules//IT/ArtMan/CustomMenus/Publish.pm line 486.

I also tried adding the category numbers to the search.cgi string:

form action="http://www.website/artman2/search.cgi?&categoryNums=101,19,20,21,22,24,62,67,68"

I get search results, but they include results from categories not specified in the string.

Re: [marys] Search only specific categories

  • Archived  

By Donna - June 26, 2009

Hi Mary,

Instead of including the search string in the form action, you'll want to include it as a separate field like this:

<input type="hidden" name="categoryNums" value="101,19,20,21,22,24,62,67,68">

I hope this helps. :)
Donna

--
support@interactivetools.com