Input Formats

For all the content added to the site you can specify a specific input format that will take care of parsing and formatting the generated output. Two input formats are included in Jaris by default which are:

  • Full HTML - Permits all existing html tags to be used.
  • PHP Code - Permits the evaluation and execution of PHP code contained in the <?php ?> tags.

By default when creating a page you can specify if the content is going to be Full HTML or PHP Code. If you are creating a site where users are allowed to post content you may wish to create a more restrictive input format as a security measure. You don't want third party visitors adding malicious php code on your site or html code that includes javascript code that may be used to steal user sessions as other kind of bad behavior.

Here are the steps required to create a new input format:

  1. Click Content.

  2. Click Add Input Format.

  3. Enter a valid machine name that only contains lowercase letters from a-z and dashes to separate words.

    For example: my-input-format

  4. Enter a human readable name like:

    My Input Format

  5. Enter a description.

  6. Enter a comma separated list of tags that are going to be permitted by this input format.

  7. Enable or disable the automatic parsing of url's.

  8. Enable or disable the automatic conversion of new line characters into html breaks.


< Categories Jaris Blocks >

Related Sections

  1. Content
    1. Pages
    2. Content Types
    3. Categories
    4. Input Formats