Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: Filter settings.

Filter settings: Difference between revisions

From MoodleDocs
(content moved from Filters)
m (removing new in 2.9 note)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Location: ''Administration > Appearance > Filter settings''
{{Filters}}
==Site administration settings==


===Common filter settings===


==Text cache lifetime==
A site administrator can change the following settings in ''Settings > Site administration > Plugins > Filters > Common filter settings'':


To reduce load on the server and to speed display of pages, Moodle can store previously processed pages (that have not changed) for a period of time. This setting controls the time for which processed pages are stored. A longer setting may improve performance but has the effect that changes to pages may not become visible for a time. You can switch caching off completely here.
* Text cache lifetime - Text filters can take a lot of processor power to analyse. If you have a large number of courses, the filters may slow your system. The text cache lifetime determines how often the filters run. If you set them to run too frequently, your system may slow down. If you set them to run too infrequently, analysing new content will take too long and users will notice. You should experiment to find the correct amount of time for your server.
==Filter uploaded files==
* Filter uploaded files - This setting enables uploaded files (HTML and text only) to be processed by the filters system. You can choose to have none, only HTML or all files filtered.
* Filter match once per page - This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match on the complete page will be converted to a link. All others will be ignored.
* Filter match once per text - This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match in a discrete block of text will be converted to a link. All others in that text block will be ignored.
* Filter all strings - The filter all strings common filter setting in Moodle 1.9 (which only worked for the multi-language filter) has been replaced by the 'Apply to' setting in Manage filters.


This setting enables uploaded files (HTML and text only) to be processed by the filters system. You can choose to have none, only HTML or all files filtered.
===File activity module setting===


==Filter match once per page==
A site administrator can change the following setting in ''Administration > Site administration > Plugins > Activity modules > File'':


This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match on the complete page will be converted to a link. All others will be ignored.
* Use filters on file content - This applies to content in HTML and XHTML pages.
 
[[File:xhtmlfilters.png]]
==Filter match once per text==
 
This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match in a discrete block of text will be converted to a link. All others in that text block will be ignored.
 
==Filter all strings==
 
When set to yes, almost all Moodle text will be filtered. This is probably only necessary when using the [[Multi language content|multi-language filter]].
 
==Filter settings in Moodle 1.5==
 
For earlier versions of Moodle, the ''filter/config.php'' file will need to be changed.  The following two settings affect the glossary, activity and resource linking filters:
 
To convert only the first matching title on a page, insert or uncomment the  following line in config.php: <code>$CFG->filtermatchoneperpage = true;</code>
 
To convert only the first matching title in a discrete block of text, insert or uncomment the following line in config.php: <code>$CFG->filtermatchonepertext = true;</code>


==See also==
==See also==
*[[Filters]]


[[Category:Filter]]
*[[Managing filters]]


[[fr:Réglages des filtres]]
[[fr:Réglages des filtres]]
[[ja:フィルタ設定]]
[[de:Filtereinstellungen]]
[[es:Configuraciones del filtro]]

Latest revision as of 14:26, 13 October 2015

Site administration settings

Common filter settings

A site administrator can change the following settings in Settings > Site administration > Plugins > Filters > Common filter settings:

  • Text cache lifetime - Text filters can take a lot of processor power to analyse. If you have a large number of courses, the filters may slow your system. The text cache lifetime determines how often the filters run. If you set them to run too frequently, your system may slow down. If you set them to run too infrequently, analysing new content will take too long and users will notice. You should experiment to find the correct amount of time for your server.
  • Filter uploaded files - This setting enables uploaded files (HTML and text only) to be processed by the filters system. You can choose to have none, only HTML or all files filtered.
  • Filter match once per page - This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match on the complete page will be converted to a link. All others will be ignored.
  • Filter match once per text - This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match in a discrete block of text will be converted to a link. All others in that text block will be ignored.
  • Filter all strings - The filter all strings common filter setting in Moodle 1.9 (which only worked for the multi-language filter) has been replaced by the 'Apply to' setting in Manage filters.

File activity module setting

A site administrator can change the following setting in Administration > Site administration > Plugins > Activity modules > File:

  • Use filters on file content - This applies to content in HTML and XHTML pages.

xhtmlfilters.png

See also