Note: This example may help you understand more about customizing Xinet Portal using PHP. However, if you’re actually interested in filtering metadata, use the alternative example, Code Example: Filtering what users see using Search Engine stored proceduresGoal: Create a boolean metadata field for each group name, and show only files and directories that have the group metadata field checked on (for the logged-in user’s group).Customization method: Create boolean fields, then edit the file:
Site_Directory/templates/local.inc.php.For use with: Exhibit-style sites.
4. Authenticate yourself as the administrative user on your Xinet server or via a Xinet Portal template that doesn’t filter results and set the metadata fields on/off for existing files and folders. (Batch keyword apply may be helpful.)
5. To allow your Xinet Portal site to filter the files and directories, edit the local.inc.php file, as follows. However, please note that this example doesn’t take into account the case where someone doesn’t have a group. In that case, he or she will see no files.