Creating search scope’s rule based on scope rule type of web address

  • To create a search scope, goto “Sharepoint Central Administration” site which can be accessed by either typing its URL directly to the web browser or clicking on its icon which can be found inside “Start -> All Programs -> Microsoft Office Server” folder.
  • Inside Central Admin, click on its “Shared Services” and you will find “Search Settings” which is under the “Search”. Then goto “View Scopes” which is under the “Scopes”.
  • Click on “New Scope” to create a new scope.
  • After the scope is created, you must define its rule(s) in order to make it know what to be searched.
  • Click on the scope that will be added rule(s). Then click on “New Rule” which is under “Rules”. For this example, the “Scope Rule Type” will be “Web Address”.
  • For “Web Adress”, the “Folder” will be chosen if you decided to have a result from a certain folder or subfolder (for example: a list, http://{site}/{subsite}/Lists/{List Name}/). Domain or hostname will have all items inside it to be shown in the result.
  • For “Behaviour”, choose “Include” or “Require” if you want any item which match the rule to be included or choose “Exclude” if you want to exclude the item which match the rule from result.
  • Don’t forget to crawl the content source to make an update to the search. To do it, – SharedService (Name of the server’s SharedService) -> Search Settings -> Content Sources
  • Click on the name of the content source and choose “Start Full Crawl”. It will takes a few minutes before the result can be updated depending on how many items to be crawled.

Comments (2) »

How to add more than 1 PublishingWebControls into a single custom page layout

When you add more than 1 publishing web control of a same type (for example: richhtmlfield) in your custom page layout, you will discover that the output of all controls you had added into the page layout will be the same even when it have different ID. This happened because the control is a site column attached to one page layout content type.

So how you going to do when you need to put more than 1 control of a same kind into 1 page layout? By adding more site column into the content type itself!

Before starting to create the new site column for the page layout’s content type, you must know what content type is used by the custom page layout. In case you had forgotten it, you can viewed it from http://{top level site collection}/_catalogs/masterpage/Forms/AllItems.aspx

The page layout content type of the custom page layout can be viewed from the “Associated Content Type” column. Remember it for the time being!

Proceed to “Site Settings” -> “Modify All Site Settings” -> “Site Columns” (under Galleries) and click “Create”

  • “Column Name:”, it will be the name of the control that will be appearing in the Sharepoint Designer (SPD).
  • “Type of Information”, it will be control type that will be created in the SPD content field upon completion. For richHTMLfield, it will be “Full HTML content with formatting and constraints for publishing”
  • “Group”, it is better to create a new group rather than using an “existing group” if you are creating your 1st column here. Then you can use the same group for 2nd or more controls in the future.
  • Add “Description” and choose whether it is mandatory for it to have information (blank or must fillup)
  • Click “OK” to complete the site column creation.

Proceed to “Site Settings” -> “Modify All Site Settings” -> “Site Content Types” (under Galleries)

  • Remember that you go to view your custom page layout’s content type just now. (for example, the custom page layout’s content type that is created is “Article Page” which is under “Page Layout Content Type”)
  • Click on it and you will go to the page where you can view its properties.
  • Click on “Add from existing site columns” because you going to use the column you had created from earlier steps.
  • In the “Select columns from” dropdown menu, choose the column group of the site column you created before. You should be able to see your just created site column.
  • Add the available column and press “OK”.

Open your SPD -> open your custom page layout -> you should be able to see your newly created control while is under the “Content Fields” in the “Toolbox” tab. (You just need to click “refresh” if you already open your SPD before all this step happened.)

Repeat the whole process again in order to create another publishing web control of a same type if you want to add more of it in the same custom page layout.

Leave a comment »