Razor Function: BaileyWeb.University.Subjects.ShowSubjects

This Razor function enables routing for subjects (Page Datafolder BaileyWeb.University.Subjects).

Parameters

There are three parameters:

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

Function Markup

<f:function name="BaileyWeb.University.Subjects.ShowSubjects" 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 subject.IsItem:

When routed data is subject.IsItem:


Updated: 23 February 2017