restricting retroactively

WorldFallz - October 16, 2007 - 21:03
Project:Restricted Search
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:rconstantine
Status:closed
Description

is the module supposed to be form-altering the advanced search form? I still see content types listed there that I have blocked. I installed & enabled the module, set block/enable for all my content types, then reindexed the whole site. Is there something else I need to do (there wasn't a readme.txt)? Do I need to customize the form myself?

Great MODULE-- i was trying to figure out how to do this myself when I found it-- gonna save me a lot of time. Thanks.

#1

deviantintegral - November 5, 2007 - 01:18
Category:support request» feature request
Priority:normal» minor
Assigned to:Anonymous» deviantintegral

It currently doesn't alter the advanced search form - but that's a good idea to implement. If you block a content type, you could still search for it, but no results would be found.

--Andrew

#2

rconstantine - December 7, 2007 - 22:40
Assigned to:deviantintegral» rconstantine
Status:active» needs review

This patch may need to have its file references adjusted. Or just do it by hand since it is small. This includes the other patch I submitted as well.

This patch removes the options from the advanced menu for content types which have been blocked.

AttachmentSize
search_block.module2.patch 2.98 KB

#3

Dimm - December 10, 2007 - 17:34

+1

#4

deviantintegral - December 10, 2007 - 21:43

Thanks!

I've tested this out and looks good. I had to add a line for the advanced search form to handle dealing with cases where the form element doesn't all ready exist. I've committed this to CVS.

--Andrew

#5

deviantintegral - December 10, 2007 - 21:43
Status:needs review» fixed

#6

rconstantine - December 11, 2007 - 01:18

Yep. I caught that on mine too. I think I just wrapped the whole thing in an 'if' testing the first element of the subsequent 'foreach'.

#7

drupalgirl - December 18, 2007 - 03:22
Title:functionality question» restricting retroactively
Priority:minor» normal
Status:fixed» active

Changed to active. Not sure issue is fixed.

Just installed today. Specifically using restrict mod with Job Search mod including both jobs and resumes types. Installed, restrict mod, enabled and edited content type resumes to restrict search, re-indexed and ran cron. Performed search on a resume node and it still comes up in basic results.

Note: Resume node was already indexed prior to installing your mod but not restricting retroactively. Any idea how to work with re-indexing?

Drupalgirl

#8

alfredd - January 10, 2008 - 19:25

I ran the re-index and the cron twice and it seems to work. Running once does not do the trick.

#9

rconstantine - January 10, 2008 - 22:26

IIRC reindexing happens in chunks so the server doesn't time out. There may be a setting somewhere. So it could take more than two runs of cron, depending on the number of nodes. But I could totally be wrong on that.

#10

WorldFallz - January 11, 2008 - 17:55

Settings for reindexing are at admin/settings/search

#11

deviantintegral - January 14, 2008 - 20:02
Status:active» closed

Yes, the module can do things in chunks if the script times out. You can look in the database table to see which nodes still have the 'dirty' flag set.

Closing this issue. Next time if you have a problem that is not likely related, please open a new issue instead of changing the subject of an existing issue.

--Andrew

 
 

Drupal is a registered trademark of Dries Buytaert.