Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to prevent Text/HTML module being indexed for searchingHow to prevent Text/HTML module being indexed for searching
Previous
 
Next
New Post
10/30/2008 7:56 AM
 

there is a free module "USearchModule" from Eck Two, only download I can find atm is http://www.dnnportal.de/Downloads/tabid/176/ItemID/135/Default.aspx


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/20/2011 1:45 PM
 
This is old but I need to do the exact same thing.

The question is if you diable isearchable on the text/html module. Would that not disable indexing on all text/html modules?

Also my knowledge may be outdated. Maybe this is not how it is done anymore in the current version.

How can this be done on the new 5.6.2 version?
I need to exclude certain modules from being indexed. But not all of them.
All content is public so I cannot use permissions.

Regards
 
New Post
4/20/2011 6:34 PM
 
XCentric

Here's one way I have done this...

Edit the Stored Procedure "AddSearchItem"

Enclose both insert and update in an IF statement:
-- Temporarily disable inputs for selected modules
IF (@ModuleID NOT IN (672,682,673,675))
BEGIN
SQL Statement...
END

If you don't have Sequel Server Management Studio you can run this from the Host SQL page:
Make sure to set the actual Module ID's you want to exclude (You can get that by going to each module's settings and look at the URL for /ModuleID/###/, that's the module id.) and "dbo" to your DNN database instance qualifier (usually dbo)...
ALTER PROCEDURE [dbo].[AddSearchItem]
   @Title       NVARCHAR(200),
   @Description NVARCHAR(2000),
   @Author      INT,
   @PubDate     DATETIME,
   @ModuleId    INT,
   @SearchKey   NVARCHAR(100),
   @Guid        NVARCHAR(200),
   @ImageFileId INT
AS
  DECLARE  @ID INT
  SELECT @ID = SearchItemId
  FROM   dbo.SearchItem
  WHERE  ModuleId = @ModuleID
         AND SearchKey = @SearchKey
  IF @ID IS NULL
    BEGIN
-- Excluded selected modules from search
IF (@ModuleID NOT IN(0,0,0))
BEGIN
INSERT INTO dbo.SearchItem
([Title],
 [Description],
 [Author],
 [PubDate],
 [ModuleId],
 [SearchKey],
 [guId],
 [HitCount],
 [ImageFileId])
VALUES     (@Title,
 @Description,
 @Author,
 @PubDate,
 @ModuleId,
 @SearchKey,
 @Guid,
 0,
 @ImageFileId)
SELECT Scope_identity()
END
    END
  ELSE
    BEGIN
-- Excluded selected modules from search
IF (@ModuleID NOT IN(0,0,0))
BEGIN
UPDATE dbo.SearchItem
SET    [Title] = @Title,
[Description] = @Description,
[Author] = @Author,
[PubDate] = @PubDate,
[ModuleId] = @ModuleId,
[SearchKey] = @SearchKey,
[guId] = @Guid,
[HitCount] = [HitCount] + 1,
[ImageFileId] = @ImageFileId
WHERE  SearchItemId = @ID
SELECT @ID
END
    END


And then to remove those that are already in the search items you could run:
DELETE FROM dbo.SearchItem
WHERE ModuleID IN (0,0,0)

Keep in mind that updates to the site "could" overwrite your changes so you may have to run these again later.

Hope this helps.

Josh
 
New Post
4/22/2011 10:21 PM
 
Thank you for sharing Josh. I do appreciate it very much.

I implemented this and it worked great.
I only had to exclude 15 modules.

I hope the ability to exclude modules gets in a release soon.
It seems senseless to index unimportant modules. Especially if those modules are reused on LOTS of pages.

Regards
 
New Post
11/8/2011 4:44 PM
 
Totally useful and very much appreciated. This solved an essential challenge for me. Thanks Josh!!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to prevent Text/HTML module being indexed for searchingHow to prevent Text/HTML module being indexed for searching


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out