Working with External Data and OU Campus Tags Tucker Stone, Web Developer
Our Goal Include an external header file onto our page. Create a news listing from an RSS feed using the XSL. Use Tag Management to add a list of pages that have similar tags.
External Data Working with external data sources involves two main functions: doc() unparsed-text() Error handling: what if the file isn’t accessible? doc-available() unparsed-text-available()
External Data Utilizing the doc() function, create a news feed from an external RSS/XML feed. Check if the file is accessible. Load the feed and iterate through item nodes. Output HTML structure with RSS item content.
Including content with unparsed-text() External Data Including content with unparsed-text() 1. Check if the file is accessible. 2. Grab the file and inject into HTML structure
Tags Overview Tags in OU Campus are used to sort and filter pages, files, and assets to make them easier to locate. Not site-specific, shared account wide. Managed via Setup > Tags Can group into collections or merge tags to consolidate. Tag Access Settings.
Tag Management Using tags in OU Campus: Webpages, binary files (images), and assets. Filtering when searching for files. Grouping files with similar content.
Tag Management Using tags in OU Campus: Tag-related Calls: GetAllTags – all tags in site GetTags – manually-applied tags from page GetFixedTags – fixed tags in directory GetCombinedTags – manual & fixed tags for a page GetParents – collections a tag belongs to GetChildren – children of a given collection
Tag Management Query Parameters Tag-related Calls: File-related Calls: Site Path File-related Calls: Tag(s)
Using the API Working with Tag Management and XSL Grab Tags from current page (GetTags) Search for pages with like tags. (GetFilesWithAnyTag)
Thank you. tstone@omniupdate.com outc18.com/surveys