Sometimes such situations arise when changes need to be monitored or ignored in any particular area of the web pages. To solve this problem the templates will be useful.

The template is a built-in mechanism that indicates the service area of ignoring or monitoring of the page. Using templates, you can:

  1. Ignore the page areas – it is ability to monitor the entire page except for certain units. This will be useful when you need to block the display of changes in an ever-changing part of the text.
  2. Monitors only certain pages areas – it is needed to monitor changes only in specified location. This feature can be useful to monitor the price or news feed only on the large page where too much unnecessary data are changed.

Within one template you can create a set of rules (selected units) in different areas of the page. The template can be created for any page monitored by the Service. The template rules can be replicated for other similar pages areas, creating new templates automatically for them.

To help you understand better how this operates, at first we create a template on the page, and then we show you how to replicate the rules from it to other pages.

Imagine that we need to block the page area containing the regularly updated news feed. 

Area to be not monitored - Sorge
The area on the page that we want to block and do not monitor the changes.


To do this, shift to the Template editing tab. You will see the website page on which you have to choose the necessary area to create the rule in the template. To do this, just move your mouse cursor to the desired page area and then click on it (the areas to which you can apply a rule, are highlighted when mouseover).
 

Block rule for the template in Sorge
Creating the block rule for the template area.


After clicking on the selected area you will see a frame with two options, and you will need to choose one of two options.

The first: 

  • Consider changes in this area - the changes will be considered only in the selected area.
  • Ignore changes in this area - all changes in the selected area will be ignored.

The second:

  • Apply the rule only on this page - the rule will operate within the current template.
  • Apply this rule to other pages - the Service will find all the pages with a similar layout automatically and apply to them the same rule in the same area.

 After specifying the desired settings for the area, the rule will remain in the template automatically and it will be created.

To check the template creation correctness, you need to go back to the changed page for which the template has been created, and look at the template scope.

Blocked area - working with templates in Sorge
Blocked area.   

   
As can be seen, the changes have been lost despite that other information has been updated on the page, ie the template has been applied correctly.

When you have created a template with the block rule, and if a page has been changed only in the blocked area, the System will not notify you in the Scheme, changes line and reports. If you create a template with the rule to monitor changes in the area, the Service will notify you, but only in case recording the changes in the area specified by you.

If the changes have been not lost in the area, try the following:

  • Specify again the rule in the needed area, and be sure that you have noted both options for the block. If one of them is missed, the rule is applied not completely.
  • Try to select another area in the needed location. The fact is that the different websites are created in different ways. Try to select an area for the rule application, which is close to the desired location.

Now let's try create new templates automatically as per sample from already created template.

To solve this problem, just create one template, and replicate its rule on the similar pages, choosing, when creating the rule, the item “Apply this rule to all pages” (also you can adjust the rules in an existing template).

Change the rule - Sorge
Changing the rules settings.


To see on what pages the created rule has been replicated, you need shift from the Project Content module to the Templates tab. 

Templates map in the project
View templates map in the project.


Behind this tab you will find the Project pages scheme, that shows which pages have templates, and which pages just inherit the rules from them (the “parent” and “child” templates).

The map with the templates in Sorge
The map of the pages with created templates.

On the map the pink color marks the pages, which are the independent templates or the parent templates in relation the child one. The child templates (that inherit the rules) are marked in orange. The pages without templates are marked with blue.

Clicking on the page in the map, you will see a special menu.

For the blue pages only one option is available – “Create a template”. Choosing it the user moves to the template creation mode.

There are two options for the pink pages:  

  • Remove the template – it deletes all rules in the template and the template itself, as well as all inheritance on other pages.
  • Edit Template – it leads to edit page of the existing template.

Two more options are added for the orange pages:

  • Cancel the inheritance on the page - all inheritance of the rules applied to this page will be reset. Inheritance will be saved in other pages.
  • Cancel the inheritance in the group of pages – it cancels all inheritance on the page contained other child pages. If there are no the child pages, the inheritance is canceled only for this particular page.

Management of templates - Sorge
Menu to management of the template in the Map


Note:
More than one rule is permissible within one template, if they are the same. For example, some rules that merely allow or prohibit the area monitoring. You can create prohibiting rules within permissive one, but not vice versa.

“Reset all templates” button - deletes all templates. Attention! This leads to irrevocable removing of the template settings.

Read more: Considering the robots.txt instructions

I know how to improve this documentation page