Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
can’t exclude private weblog from searches
Posted: 28 May 2004 11:21 PM   [ Ignore ]  
Summer Student
Total Posts:  20
Joined  2004-04-09

I have three weblogs going. Two I want to be both viewable and searchable (call them “public1” and “public2”), but I want to keep the third (call it “private”) from being either viewed or searched by visitors to the two publicly viewable blogs.

I can modify the advanced search form (search/index template) to exclude the non-viewable site so it doesn’t show up in the Advanced Search page, but there is still the Any Weblog option, and if that is used, the search will pick up entries from all the weblogs, including the “private” blog I want to keep from being viewed or searched.

I have the same problem with the simple search option.

I started with the code from the search/index template from Default Template #1 and then simply modified the line:

{exp:search:advanced_form result_page=“search/results” }

to read as follows (changing the names of the actual weblogs):

<<search:advanced_form weblog=“public1 | public2” status=“open” result_page=“search/results” weblog=“not private”}

When I do this both the simple search and the advanced search (which doesn’t show the private blog as an option for searching) retrieve entries from the private weblog too.

Is this a bug, as Chris Curtis has suggested to me that it might be?

Tom

Profile
 
 
Posted: 29 May 2004 11:36 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

You posted this in the pMachine Bug Reports forum, not the one for ExpressionEngine.  (And, as I mentioned in your other thread, you cannot put more than one “weblog=” parameter in the tag.  You’ll get unexpected results.  So you need to verify how it works if you only specify one instance of the “weblog=” parameter.)

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 64511 Total Logged-in Users: 0
Total Topics: 81070 Total Anonymous Users: 0
Total Replies: 436300 Total Guests: 15
Total Posts: 517370    
Members ( View Memberlist )
Active Members: