From Fedora Project Wiki

Line 31: Line 31:
<ol><li>Import this filter as a new filter called ''Fedora Mediawiki Format''.</li>
<ol><li>Import this filter as a new filter called ''Fedora Mediawiki Format''.</li>
<li>In ''Site configuration'' > ''Input formats'', choose ''Add input format''. Name the new input format ''Fedora wiki text''.</li>
<li>In ''Site configuration'' > ''Input formats'', choose ''Add input format''. Name the new input format ''Fedora wiki text''.</li>
<li>Enable this input format only for people in the CMS groups (writers, editors, administrators). Do not enable it for anonymous or simple authenticated users.</li>
<li>Enable the ''Footnotes'' and ''Fedora Mediawiki Format'' filters for this input format. Ensure the ''HTML Filter'' filter is also enabled for this format.</li>
<li>Enable the ''Footnotes'' and ''Fedora Mediawiki Format'' filters for this input format. Ensure the ''HTML Filter'' filter is also enabled for this format.</li>
</ol>
</ol>

Revision as of 14:49, 4 September 2010

This page tracks the setup of content (call it content architecture if you like) for the Fedora Insight system.

There's another page about more general Insight customizations to Drupal.

Taxonomy

Releases

The Releases taxonomy uses the identification F13, F14, and so on for its terms. For each term, a set of synonyms are used to catch alternate forms of tagging. Here's an example of how to enter each:

  • Identification: F13
  • Description: Fedora 13 (Goddard)
  • Advanced options:
    • Parents: none
    • Related: none
    • Synonyms (one per line): Fedora 13, Fedora13, fedora13, Fedora-13, fedora-13, F-13, f13, f-13, Goddard, goddard

Flexifilter

Here is the current content of the specific filter for the Fedora wiki, in serialized form from the filter's Export function:

a:9:{s:5:"label";s:23:"Fedora Mediawiki Format";s:11:"description";s:134:"This filter provides an input format for the Fedora wiki. Use this if you are pasting or writing content that uses Fedora wiki markup.";s:2:"id";s:1:"3";s:7:"enabled";b:1;s:8:"advanced";b:1;s:5:"delta";s:1:"1";s:5:"cache";s:1:"1";s:10:"components";a:10:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:9:"</nowiki>";s:4:"step";s:7:"process";}s:2:"id";s:2:"31";}i:1;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:8:"";s:4:"step";s:7:"process";}s:2:"id";s:2:"32";}i:2;a:3:{s:5:"class";s:22:"flexifilter_chunk_grab";s:8:"settings";a:7:{s:6:"starts";s:5:"<ref>";s:4:"ends";s:6:"</ref>";s:11:"pass_limits";i:0;s:14:"case_sensitive";i:0;s:12:"include_rest";i:1;s:4:"step";s:7:"process";s:10:"components";a:2:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:4:"[fn]";s:4:"step";s:7:"process";}s:2:"id";s:2:"34";}i:1;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:5:"[/fn]";s:4:"step";s:7:"process";}s:2:"id";s:2:"35";}}}s:2:"id";s:2:"33";}i:3;a:3:{s:5:"class";s:42:"flexifilter_existing__footnotes__filter__0";s:8:"settings";a:0:{}s:2:"id";s:2:"36";}i:4;a:3:{s:5:"class";s:22:"flexifilter_chunk_grab";s:8:"settings";a:7:{s:6:"starts";s:9:"";s:4:"ends";s:8:"<nowiki>";s:11:"pass_limits";i:0;s:14:"case_sensitive";i:0;s:12:"include_rest";i:1;s:4:"step";s:7:"process";s:10:"components";a:8:{i:0;a:3:{s:5:"class";s:28:"flexifilter_text_alternation";s:8:"settings";a:3:{s:4:"find";s:5:"=====";s:7:"replace";s:11:"<h5>
</h5>";s:4:"step";s:7:"process";}s:2:"id";s:2:"40";}i:1;a:3:{s:5:"class";s:28:"flexifilter_text_alternation";s:8:"settings";a:3:{s:4:"find";s:4:"====";s:7:"replace";s:11:"<h4>
</h4>";s:4:"step";s:7:"process";}s:2:"id";s:2:"41";}i:2;a:3:{s:5:"class";s:28:"flexifilter_text_alternation";s:8:"settings";a:3:{s:4:"find";s:3:"===";s:7:"replace";s:11:"<h3>
</h3>";s:4:"step";s:7:"process";}s:2:"id";s:2:"42";}i:3;a:3:{s:5:"class";s:28:"flexifilter_text_alternation";s:8:"settings";a:3:{s:4:"find";s:2:"==";s:7:"replace";s:11:"<h2>
</h2>";s:4:"step";s:7:"process";}s:2:"id";s:2:"43";}i:4;a:3:{s:5:"class";s:28:"flexifilter_text_alternation";s:8:"settings";a:3:{s:4:"find";s:3:"'''";s:7:"replace";s:19:"<strong>
</strong>";s:4:"step";s:7:"process";}s:2:"id";s:2:"44";}i:5;a:3:{s:5:"class";s:28:"flexifilter_text_alternation";s:8:"settings";a:3:{s:4:"find";s:2:"''";s:7:"replace";s:11:"<em>
</em>";s:4:"step";s:7:"process";}s:2:"id";s:2:"45";}i:6;a:3:{s:5:"class";s:22:"flexifilter_chunk_grab";s:8:"settings";a:7:{s:6:"starts";s:2:"[[";s:4:"ends";s:2:"]]";s:11:"pass_limits";i:0;s:14:"case_sensitive";i:0;s:12:"include_rest";i:1;s:4:"step";s:7:"process";s:10:"components";a:2:{i:0;a:3:{s:5:"class";s:22:"flexifilter_control_if";s:8:"settings";a:2:{s:10:"components";a:6:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:1:"~";s:7:"replace";s:2:"\~";s:4:"step";s:7:"process";}s:2:"id";s:2:"48";}i:1;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:2:"~~";s:4:"step";s:7:"process";}s:2:"id";s:2:"49";}i:2;a:3:{s:5:"class";s:27:"flexifilter_advanced_append";s:8:"settings";a:2:{s:4:"step";s:7:"process";s:10:"components";a:1:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:2:"~~";s:7:"replace";s:4:"</a>";s:4:"step";s:7:"process";}s:2:"id";s:2:"51";}}}s:2:"id";s:2:"50";}i:3;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:2:"~~";s:7:"replace";s:2:"">";s:4:"step";s:7:"process";}s:2:"id";s:2:"52";}i:4;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:39:"<a href="http://fedoraproject.org/wiki/";s:4:"step";s:7:"process";}s:2:"id";s:2:"54";}i:5;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:2:"\~";s:7:"replace";s:1:"~";s:4:"step";s:7:"process";}s:2:"id";s:2:"56";}}s:9:"condition";a:2:{s:5:"class";s:21:"flexifilter_group_not";s:8:"settings";a:1:{s:10:"conditions";a:1:{i:0;a:2:{s:5:"class";s:23:"flexifilter_text_search";s:8:"settings";a:2:{s:4:"find";s:1:"|";s:8:"is_regex";i:0;}}}}}}s:2:"id";s:2:"47";}i:1;a:3:{s:5:"class";s:22:"flexifilter_control_if";s:8:"settings";a:2:{s:10:"components";a:3:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:39:"<a href="http://fedoraproject.org/wiki/";s:4:"step";s:7:"process";}s:2:"id";s:2:"61";}i:1;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:1:"|";s:7:"replace";s:2:"">";s:4:"step";s:7:"process";}s:2:"id";s:2:"62";}i:2;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:4:"</a>";s:4:"step";s:7:"process";}s:2:"id";s:2:"63";}}s:9:"condition";a:2:{s:5:"class";s:23:"flexifilter_text_search";s:8:"settings";a:2:{s:4:"find";s:1:"|";s:8:"is_regex";i:0;}}}s:2:"id";s:2:"60";}}}s:2:"id";s:2:"46";}i:7;a:3:{s:5:"class";s:22:"flexifilter_chunk_grab";s:8:"settings";a:7:{s:6:"starts";s:5:"<ref>";s:4:"ends";s:6:"</ref>";s:11:"pass_limits";i:0;s:14:"case_sensitive";i:0;s:12:"include_rest";i:1;s:4:"step";s:7:"process";s:10:"components";a:1:{i:0;a:3:{s:5:"class";s:22:"flexifilter_control_if";s:8:"settings";a:2:{s:10:"components";a:6:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:1:"~";s:7:"replace";s:2:"\~";s:4:"step";s:7:"process";}s:2:"id";s:2:"67";}i:1;a:3:{s:5:"class";s:23:"flexifilter_text_append";s:8:"settings";a:2:{s:4:"text";s:2:"~~";s:4:"step";s:7:"process";}s:2:"id";s:2:"68";}i:2;a:3:{s:5:"class";s:27:"flexifilter_advanced_append";s:8:"settings";a:2:{s:4:"step";s:7:"process";s:10:"components";a:1:{i:0;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:2:"~~";s:7:"replace";s:4:"</a>";s:4:"step";s:7:"process";}s:2:"id";s:2:"70";}}}s:2:"id";s:2:"69";}i:3;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:2:"~~";s:7:"replace";s:2:"">";s:4:"step";s:7:"process";}s:2:"id";s:2:"71";}i:4;a:3:{s:5:"class";s:24:"flexifilter_text_replace";s:8:"settings";a:3:{s:4:"find";s:2:"\~";s:7:"replace";s:1:"~";s:4:"step";s:7:"process";}s:2:"id";s:3:"152";}i:5;a:3:{s:5:"class";s:24:"flexifilter_text_prepend";s:8:"settings";a:2:{s:4:"text";s:9:"<a href="";s:4:"step";s:7:"process";}s:2:"id";s:3:"150";}}s:9:"condition";a:2:{s:5:"class";s:23:"flexifilter_text_search";s:8:"settings";a:2:{s:4:"find";s:7:"http://";s:8:"is_regex";i:1;}}}s:2:"id";s:2:"66";}}}s:2:"id";s:2:"65";}}}s:2:"id";s:2:"39";}i:5;a:3:{s:5:"class";s:39:"flexifilter_existing__filter__filter__1";s:8:"settings";a:0:{}s:2:"id";s:3:"193";}i:6;a:3:{s:5:"class";s:39:"flexifilter_existing__filter__filter__0";s:8:"settings";a:4:{s:13:"filter_html_1";s:1:"1";s:14:"allowed_html_1";s:27:"a p h2 h3 h4 h5 ul ol li br";s:18:"filter_html_help_1";i:0;s:22:"filter_html_nofollow_1";i:0;}s:2:"id";s:3:"307";}i:7;a:3:{s:5:"class";s:43:"flexifilter_existing__footnotes__filter__99";s:8:"settings";a:1:{s:29:"footnotes_filter_url_length_1";s:3:"256";}s:2:"id";s:3:"268";}s:7:"id_next";i:346;s:9:"id_prefix";s:22:"flexifilter_component_";}s:3:"fid";s:3:"new";}

Installing the flexifilter

  1. Import this filter as a new filter called Fedora Mediawiki Format.
  2. In Site configuration > Input formats, choose Add input format. Name the new input format Fedora wiki text.
  3. Enable this input format only for people in the CMS groups (writers, editors, administrators). Do not enable it for anonymous or simple authenticated users.
  4. Enable the Footnotes and Fedora Mediawiki Format filters for this input format. Ensure the HTML Filter filter is also enabled for this format.