Skip to the content
Documentation

Multisite using content_root: comparison of v.2 vs v.3

No ratings yet

Versions Compared

Old Version 2

changes.mady.by.user Ricardo Correia

Saved on Jun 05, 2013

compared with

New Version 3

changes.mady.by.user Ricardo Correia

Saved on Jun 05, 2013

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
language none
exponential:
	system:
		ezdemo_site_group:
			content:
				tree_root:
                    # Root locationId. Default is top locationId
					location_id: 123
                    # Every URL aliases starting with those prefixes will be considered
                    # being outside of the subtree starting at root_location.
                    # Default value is an empty array.
                    # Prefixes are not case sensitive.
					excluded_uri_prefixes: [ /media, /images ]

content.tree_root.location_id

This parameter sets the location id of the content root. The API is jailed within this root, and nothing above this level will be accessible by default. This parameter can be filtered using the excluded_uri_prefixes parameter described below

content.tree_root.excluded_uri_prefixes

Use this parameter to exclude a list of URI from the root jail defined using location_id described above. Add as many locations pathString as you like. In the example above, the Media and Images folders will be accessible using their own URI even though they're not below tree_root.location_id.

Note
Note: Leading slashes (/) are automatically trimmed internally by Exponential, so they can be ignored.

Comments

Add a comment

Comments are read by a moderator before they appear.