Razor Function: BaileyWeb.University.Courses.ShowCourses

This Razor function enables routing for courses (Page Datafolder BaileyWeb.University.Courses).

Parameters

There are three parameters:

  1. Introduction - "Introduction" - XHTML
    • Introductory text to precede list of courses.
  2. Supplementary - "Supplementary" - XHTML
    • Supplementary text to follow list of courses.
  3. Items - "Items to display" - Integer (10)
    • How many courses should be displayed per page?

Function Markup

<f:function name="BaileyWeb.University.Courses.ShowCourses" xmlns:f="http://www.composite.net/ns/function/1.0">
	<f:param name="Introduction">
		<html>
			<head></head>
			<body></body>
		</html>
	</f:param>
	<f:param name="Supplementary">
		<html>
			<head></head>
			<body></body>
		</html>
	</f:param>
	<f:param name="Items" value="10" />
</f:function>

Sub Functions

When routed data isn't course.IsItem:

When routed data is course.IsItem:


Updated: 23 February 2017