Versions Compared

Key

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

Table of Contents

Documentation to do:

Tooltips

HTML

Unique content types

Region: domestic vs international

Uploading images - allow access unrestricted

How to find the asset id of a page

Shared blocks

JSON structures

content-plain

Default content type. Used in most standard cases. Provides a Heading and content block underneath.

Code Block
{
    "contentType": "content-plain",
    "heading": "Text here",
    "content": "Text here."
}

 

content-plain-images-triplecrown

 

used specifically for content to display the triple crown association images. Normally uses a shared object, but sometimes has some variation.

 

Either use the block below, or link the asset 342525 in the appropriate place.

 

...

Table of Contents


Documentation to do:

Tooltips

HTML

Unique content types

Region: domestic vs international

Uploading images - allow access unrestricted

How to find the asset id of a page

Shared blocks


JSON structures

content-plain

Default content type. Used in most standard cases. Provides a Heading and content block underneath.

Code Block
{
    "contentType": "content-plain",
    "heading": "Text here",
    "content": "Text here."
}

 

content-plain-images-triplecrown

 

used specifically for content to display the triple crown association images. Normally uses a shared object, but sometimes has some variation.

 

Either use the block below, or link the asset 342525 in the appropriate place.

 

Code Block
{
	"heading"     : "International recognition",
	"contentType" : "content-plain-images-triplecrown",
	"content"     : "Victoria's MBA programme is accredited to the British-based <a href='http://www.mbaworld.com/'>Association of MBAs (AMBA)</a>, an internationally recognised global standard for all MBA programmes.\nVictoria Business School is also one of just 75 business schools worldwide that hold the 'Triple Crown' of international business education accreditations. You can be confident your degree will stand up against the best around the world.\n<a href='http://www.victoria.ac.nz/vbs/about/welcome/accreditation'>Find out more about accreditations and what they mean for you.</a>",
	"images"      : ""
	}, [{
		"imageAssetId" : "340058340052",
		"imageSrc"     : "%globals_asset_url:340058^json340052^json_encode%",
		"altText"      : "AASCBEQUIS Logo",
		"linkTitle"    : "",
		"link"         : "",
		"linkUrl": ""
	}, {
		"imageAssetId" : "340057",
		"imageSrc"     : "%globals_asset_url:340057^json_encode%",
	}]
}

 

 

 

Similar to the content-plain object, but allows buttons for linking. We try and use this where possible instead of using inline links.

 

An important distinction between "links" and "externalLinks" - Graphically, "links" will be displayed with a big blue button, while "externalLinks" will display a bullet list of links with an 'external link' symbol next to it - Image Removed

 

 

Code Block
{
   "contentType" : "content-plain-links",
   "heading"		"altText"      : "AMBA Logo",
		"linkTitle"    : "",
		"link"         : "",
   "content"		"linkUrl"      : ""
	}, {
		"imageAssetId" : "340058",
		"linksimageSrc"       : [: "%globals_asset_url:340058^json_encode%",
		"altText"      : "AASCB  {Logo",
		"linkTitle"             "linkText"  :"Text",: "",
		"link"         :    "linkTitle",
:		"TextlinkUrl",      :       "link"
     :"%globals_asset_url:ASSETID^json_encode%"
        }
   ],
	"externalLinks": [{
		"linkText"   : "Text",
		"linkTitle"  : "Text",
		"link	}]
}

 


 

 

Similar to the content-plain object, but allows buttons for linking. We try and use this where possible instead of using inline links.

 

An important distinction between "links" and "externalLinks" - Graphically, "links" will be displayed with a big blue button, while "externalLinks" will display a bullet list of links with an 'external link' symbol next to it - Image Added

 


 

Code Block
{
   "contentType" : "content-plain-links",
   "heading"     : "",
  : "http://www.careers.govt.nz/content"  	}]
}

 

 

content-facts

 

This is used exclusively on the degree-about pages. They supply the data for the "Level of study", "Length of full-time study", and "Useful secondary school subjects" contents.

 

This block does not change here. If these values are to change, they need to be done in the metadata of the degree. If this block changes from what is contained here it will most likely break things. Please don't do that... :(

 

Code Block
{
   : "",
    "contentTypelinks" : "content-facts",     "heading": [
   : "",    {
"content"     : {      "linkText"   :"levelOfStudyText": {,
            "contentTypelinkTitle" : "levelOfStudyText",
            "headinglink"      : "%asset%globals_metadataasset_ProgrammeId^as_asset:asset_metadata_postOrUndergradHeading^jsonurl:ASSETID^json_encode%",
        }
   ],
	"contentexternalLinks": [{
		"linkText"   : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_postOrUndergrad^json_encode%"
        },
Text",
		"linkTitle"  : "Text",
		"link"       : "studyLength": {
            "contentType" : "studyLength",
            "heading"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_LengthOfFulltimeStudyHeading^json_encode%",
            "contenthttp://www.careers.govt.nz/"

	}]
}

 



 

content-facts

 

This is used exclusively on the degree-about pages. They supply the data for the "Level of study", "Length of full-time study", and "Useful secondary school subjects" contents.

 

This block does not change here. If these values are to change, they need to be done in the metadata of the degree. If this block changes from what is contained here it will most likely break things. Please don't do that... :(

 

Code Block
{
    "contentType" : "content-facts",
    "heading"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_LengthOfFulltimeStudy^json_encode%",
    "content"     : {
 "contentSub" : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_LengthOfFulltimeStudySubHeading^json_encode%"
       "levelOfStudy": {
       },
        "fees": {
            "contentType" : "feeslevelOfStudy",
            "heading"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_CourseFeesHeadingOverride^jsonpostOrUndergradHeading^json_encode%",
            "content"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_EstimatedYearlyCourseFees^jsonpostOrUndergrad^json_encode%"
        },
        "usefulSubjectsstudyLength": {
            "contentType" : "usefulSubjectsstudyLength",
            "heading"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_UsefulSecondarySchoolSubjectsHeading^jsonLengthOfFulltimeStudyHeading^json_encode%",
            "content"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_UsefulSecondarySchoolSubjects^jsonLengthOfFulltimeStudy^json_encode%",
        }     }
}

 

course-examples

On a study-area subject page. To display the example courses in a different spot (normally they are automatically added at the end of the subject), insert the following json object

Code Block
{ "contentType": "course-examples" }

entry-requirements

Used exclusively on the degree-requirement pages. Used for displaying the entry requirements for a degree/major.

The following is the normal usage for this block, however the reqWithLink and reqOther can be empty.

reqWithLink allows the first element to be supplied with a blue button linking to another page.

The reqOther is simply an array of strings.

Code Block
{"contentSub" : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_LengthOfFulltimeStudySubHeading^json_encode%"
    "contentType" : "entry-requirements",  },
  "heading"     : "Entry requirements",fees": {
            "contentType" : "contentfees",
    : "To be accepted into this degree you need:"heading",     "reqWithLink" : {: "%asset_metadata_ProgrammeId^as_asset:asset_metadata_CourseFeesHeadingOverride^json_encode%",
            "content"     : "University Entrance, or to meet the requirements of another admission type and"%asset_metadata_ProgrammeId^as_asset:asset_metadata_EstimatedYearlyCourseFees^json_encode%"
        },
        "linkTextusefulSubjects": {
:  "University admission",         "linkTitlecontentType" : "University admissionusefulSubjects",
            "linkheading"      : "%globals%asset_metadata_ProgrammeId^as_asset_url:194328^json:asset_metadata_UsefulSecondarySchoolSubjectsHeading^json_encode%"
    },
    "reqOther"    : [   "content"     : "A Guaranteed Entry Score of 180 points from your NCEA."%asset_metadata_ProgrammeId^as_asset:asset_metadata_UsefulSecondarySchoolSubjects^json_encode%"
        }
    ]}
}

...

 

course-

...

Used for fun facts. Provides a Heading and content block.

...

examples

On a study-area subject page. To display the example courses in a different spot (normally they are automatically added at the end of the subject), insert the following json object

Code Block
{ "contentType": "funcourse-factexamples",
    "heading": "29%",
    "content": "Proportion of MBAs employed at or above the board level within six to ten years of graduating. Source: The Association of MBAs 2010 Career Survey"
}

important-info

Currently only used in undergraduate degrees pages. (For example in tourism-management)

On requirements pages, the last two values are nearly always:

  • The academic [Calendar] is the authoritative source of programme and course information.
  • If you have questions talk to a <a href='%globals_asset_url:186845%'>Liaison Officer</a>. If you’re already a student here, contact a <a href='%globals_asset_url:59208%#student-advisers'>student adviser</a>.

 With the href for the "student adviser" replaced with the appropriate faculty for that degree. See

Jira Legacy
serverJIRA (victoriauniversity.atlassian.net)
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId27f93f26-1c92-33a3-8ce5-991824ed6542
keyWIP-1390
for the appropriate asset number and anchor link to use.

Code Block
{
   "contentType" : "important-info",
   "heading"     : "Important information ",
   "content"     : [ }


entry-requirements

Used exclusively on the degree-requirement pages. Used for displaying the entry requirements for a degree/major.

The following is the normal usage for this block, however the reqWithLink and reqOther can be empty.

reqWithLink allows the first element to be supplied with a blue button linking to another page.

The reqOther is simply an array of strings.


Code Block
{
    "contentType" : "entry-requirements",
    "heading"     : "Entry requirements",
    "content"     : "To be accepted into this degree you need:",
    "reqWithLink" : {
        "content"   : "University Entrance, or to meet the requirements of another admission type and",
        "linkText"  : "University admission"If,
you are transferring from another university and applying for"linkTitle" direct: entry into the second year you'll need to supply a portfolio along with an official academic transcript. These must reach the <a href='http://www.victoria.ac.nz/fad/about/contact'> Faculty of Architecture and Design Office </a> by 10 December.",
    "University admission",
        "link"      : "%globals_asset_url:194328^json_encode%"
    },
    "reqOther"    : [
       "<a href='Portfolio'>http://www.victoria.ac.nz/fad/pdf/portfolio-requirements-2012.pdf'>Portfolio requirements</a> (PDF 284 KB)",
            "The academic [Calendar] is the authoritative source of programme and course information."A Guaranteed Entry Score of 180 points from your NCEA."
    ]
}


fun-fact

Used for fun facts. Provides a Heading and content block.

Code Block
{
    "contentType": "fun-fact",
    "heading": "29%",
    "content": "Proportion of MBAs employed at or above "Ifthe youboard havelevel questionswithin talksix to aten <a href='%globals_asset_url:186845%'>Liaison Officer</a>. If you’re already a student here, contact a <a years of graduating. Source: The Association of MBAs 2010 Career Survey"
}


important-info

Currently only used in undergraduate degrees pages. (For example in tourism-management)

On requirements pages, the last two values are nearly always:

  • The academic [Calendar] is the authoritative source of programme and course information.
  • If you have questions talk to a <a href='%globals_asset_url:186845%'>Liaison Officer</a>. If you’re already a student here, contact a <a href='%globals_asset_url:59208%#student-advisers'>student

...

  • adviser</a>.

...

intro-about

Used exclusively on the topic-about pages. Is basically the same as a content-plain container, but will also display a list of all the subjects next to it. Similar to the intro-degree container.

Code Block
{
	"contentType"    : "intro-about",
	"content"        : ""
}

intro-degree

...

 With the href for the "student adviser" replaced with the appropriate faculty for that degree. See

Jira Legacy
serverJIRA (victoriauniversity.atlassian.net)
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId27f93f26-1c92-33a3-8ce5-991824ed6542
keyWIP-1390
for the appropriate asset number and anchor link to use.


Code Block
{
   "contentType" : "introimportant-degreeinfo",
   "heading"     : "Important information ",
   "content"     : ""
}

intro-major

Used at the start of each major on the degree>requirements page. Is basically the same as a content-plain container, but historically used to have other formatting as well. May be deprecated in future releases, but for now is still used at the start of each major. Similar to the intro-about container.

Code Block
{
	"contentType" [
            "If you are transferring from another university and applying for : "intro-major",
	"heading"                  : "",
	"content"        direct entry into the second year you'll need to supply a portfolio along with an official academic transcript. These must reach the <a href='http://www.victoria.ac.nz/fad/about/contact'> Faculty of Architecture and Design Office </a> by 10 December.",
         :   ""
}

intro-subject

Used at the start of each subject on the topic-study options page. Is basically the same as a content-plain container, but historically used to have other formatting as well. May be deprecated in future releases, but for now is still used at the start of each subject. Similar to the intro-about container.

Code Block
{
	"contentType" : "intro-subject",
	"heading"<a href='Portfolio'>http://www.victoria.ac.nz/fad/pdf/portfolio-requirements-2012.pdf'>Portfolio requirements</a> (PDF 284 KB)",
          : "", 	"content"The academic [Calendar] is the :authoritative ""
}

intro

Used at the start of each degree>requirements and topic>people & stories page. Is basically the same as a content-plain container, but historically used to have other formatting as well. Will hopefully soon be replaced by a content-plain block as it is confusing for it to be allocated to those specific areas. Similar to the intro-about container.

Code Block
{
	"contentType" : "intro",
	"heading"source of programme and course information.",
           : "",
	"content"     : ""
}

postgrad-apply

Used for the application/starting content block on postgraduate apply pages.

E.g. http://stage.victoria.ac.nz/explore/postgraduate-programmes/master-of-commerce-by-thesis/apply-contact?mode=admin&subject=accounting

Code Block
{
    "contentType" : "postgrad-apply",
    "content"     : {If you have questions talk to a <a href='%globals_asset_url:186845%'>Liaison Officer</a>. If you’re already a student here, contact a <a href='%globals_asset_url:59208%#student-advisers'>student adviser</a>."
        "startStudying" : {
            "type]
}


intro-about

Used exclusively on the topic-about pages. Is basically the same as a content-plain container, but will also display a list of all the subjects next to it. Similar to the intro-degree container.

Code Block
{
	"contentType"     : "studyLengthTrimesterintro-about",
	"content"        :    "heading"  : "Start Studying","
}


intro-degree

Used at the start of each degree-about page. Is basically the same as a content-plain container, but will also display a list of all the majors next to it. Similar to the intro-about container.

Code Block
{
   "contentType" : "intro-degree",
      "appendixheading" : "If you’ve missed the apply deadline: "",
don’t worry—it’s still possible to make a late application. Contact the Programme Director to discuss your options.", "content"     : ""
}

intro-major

Used at the start of each major on the degree>requirements page. Is basically the same as a content-plain container, but historically used to have other formatting as well. May be deprecated in future releases, but for now is still used at the start of each major. Similar to the intro-about container.

Code Block
{
	"contentType"              : "contentintro-major",
	"heading" : [                : {
"",
	"content"                  :  "startDate"      :"%globals_asset_attribute_start_date_short:355524%",
"
}


intro-subject

Used at the start of each subject on the topic-study options page. Is basically the same as a content-plain container, but historically used to have other formatting as well. May be deprecated in future releases, but for now is still used at the start of each subject. Similar to the intro-about container.

Code Block
{
	"contentType" : "intro-subject",
	"heading"     : "",
	"content"     : ""
      "startTrimester" :"%globals_asset_metadata_trimesterNumber:355524%",
}


intro

Used at the start of each degree>requirements and topic>people & stories page. Is basically the same as a content-plain container, but historically used to have other formatting as well. Will hopefully soon be replaced by a content-plain block as it is confusing for it to be allocated to those specific areas. Similar to the intro-about container.

Code Block
{
	"contentType" : "intro",
	"heading"     :   "",
	"content"     : ""
}


postgrad-apply

Used for the application/starting content block on postgraduate apply pages.

E.g. http://stage.victoria.ac.nz/explore/postgraduate-programmes/master-of-commerce-by-thesis/apply-contact?mode=admin&subject=accounting

Code Block
{
    "applyBycontentType" : "postgrad-apply",
     :"%globals_asset_attribute_start_date_short:365079%"content"     : {
        "startStudying" : },{
            "type"    {    : "studyLengthTrimester",
                "startDateheading"  :    :"%globals_asset_attribute_start_date_short:355515%"Start Studying",
            "appendix" : "If you’ve missed the apply deadline, "startTrimester" :"%globals_asset_metadata_trimesterNumber:355515%",
              don’t worry—it’s still possible to make a late application. Contact the Programme Director to discuss your options.",
     "applyBy"        :"%globals_asset_attribute_start_date_short:365077%"content"  : [
             },
                {
                    "startDate"      :"%globals_asset_attribute_start_date_short:355523%355524%",
                    "startTrimester" :"%globals_asset_metadata_trimesterNumber:355523%355524%",
                    "applyBy"        :"%globals_asset_attribute_start_date_short:365078%365079%"
                },
            ]    {
    },         "fees" : {     "startDate"      :"%globals_asset_attribute_start_date_short:355515%",
 "contentType" : "fees",             "heading"    "startTrimester" : ""%globals_asset_metadata_trimesterNumber:355515%",
                    "contentapplyBy"        : """%globals_asset_attribute_start_date_short:365077%"
          }     }
}

The startDate and startTrimester asset numbers are either:

Trimester 1: 355515

Trimester 2: 355523

Trimester 3: 355524

The applyBy asset numbers are either:

Trimester 1: 365077

Trimester 2: 365078

Trimester 3: 365079

Using the globals_asset keywords ensures that these values will return the correct results. At some point these lists will be automatically sorted by the angular app so that the closest date appears first, but for now they should be manually specified. (e.g. after the applyBy date for the second trimester has finished, make sure that the third trimester is the first one in the list).

For graduate qualifications, you need to specifically include a reference to the internationalApiCode in the content block. For example Graduate Diploma in Science, ID# 373377.

It looks like this:

Code Block
{
    "contentType" : "postgrad-apply",
    "heading"     : "International fees",
    "region"      : "international",
    "content"     : { },
                {
                    "startDate"      :"%globals_asset_attribute_start_date_short:355523%",
                    "startTrimester" :"%globals_asset_metadata_trimesterNumber:355523%",
                    "applyBy"        :"%globals_asset_attribute_start_date_short:365078%"
                }
            ]
        },
          "startStudyingfees" : {
            "typecontentType"    : "studyLengthTrimesterfees",
            "heading" : "Start Studying",             "content" : [: "",
                  {
                    "startDate"content"     : :"%globals_asset_attribute_start_date_short:355524%",
        }
           "startTrimester" :"%globals_asset_metadata_trimesterNumber:355524%",
                    "applyBy"        :"%globals_asset_attribute_start_date_short:365079%"
                },
    }
}

The startDate and startTrimester asset numbers are either:

Trimester 1: 355515

Trimester 2: 355523

Trimester 3: 355524

The applyBy asset numbers are either:

Trimester 1: 365077

Trimester 2: 365078

Trimester 3: 365079

Using the globals_asset keywords ensures that these values will return the correct results. At some point these lists will be automatically sorted by the angular app so that the closest date appears first, but for now they should be manually specified. (e.g. after the applyBy date for the second trimester has finished, make sure that the third trimester is the first one in the list).


For graduate qualifications, you need to specifically include a reference to the internationalApiCode in the content block. For example Graduate Diploma in Science, ID# 373377.

It looks like this:

Code Block
{
    "contentType" : "postgrad-apply",
    "heading"     : "International fees",
    "region"      : "international",
    {"content"     : {
        "startStudying" : {
   "startDate"      :"%globals_asset_attribute_start_date_short:355515%",   "type"    : "studyLengthTrimester",
            "startTrimesterheading" :"%globals_asset_metadata_trimesterNumber:355515% "Start Studying",
            "content" : [
     "applyBy"        :"%globals_asset_attribute_start_date_short:365077%"   {
             },                 {
                    "startDate"      :"%globals_asset_attribute_start_date_short:355523%355524%",
                    "startTrimester" :"%globals_asset_metadata_trimesterNumber:355523%355524%",
                    "applyBy"        :"%globals_asset_attribute_start_date_short:365078%365079%"
                },
            ]    {
    },         "fees" : {     "startDate"      :"%globals_asset_attribute_start_date_short:355515%",
 "contentType" : "fees",             "heading"    "startTrimester" : ""%globals_asset_metadata_trimesterNumber:355515%",
              "content"     : "applyBy"         },
:"%globals_asset_attribute_start_date_short:365077%"
                },
             "internationalApiCode" :    {
                    "startDate"      :"%globals_asset_attribute_metadatastart_ProgrammeId^asdate_asset:asset_metadata_internationalApiCode^json_encode%"short:355523%",
              }
}

Used exclusively on subject pages. Is how the subject links to the degree pages.

For "undergrad" contents:

...

      "startTrimester" :"%globals_asset_metadata_

...

The leadsIntoLink, leadsIntoText, leadsIntoExtraPreText, leadsIntoExtraLink, leadsIntoExtraLinkText are all to do with postgraduate degrees the subject links to.

  • If they are all blank, no leads into will be shown.
  • If the leadsIntoLink and leadsIntoText are present, then there will be a "Leads to a" piece of content with leadsIntoText as the text, and leadsIntoLink as the url.
  • If the leadsIntoExtraPreText, leadsIntoExtraLink and leadsIntoExtraLinkText are present, then there will also be a second link provided in the "Leads to a" element.

This is a bit confusing, so see Architecture>Interior Architecture for a good example of how it is used. (Asset id 309042)

The content element is used to provide extra information about the related degree where necessary. This is just a plain text field. See Economics and Finance>Actuarial Science for a good example of this (asset number 309568).

For "postgrad" contents:

These are used solely for postgrad links. The assetid in asset_assetid and asset_metadata_WebPath should both be the same. Everything else gets edited in the json object.

A good example of this is Biomedical Sciences>Clinical Immunology (asset id 309688).

Code Block
{
    "contentType": "related-degrees",
    "content": {trimesterNumber:355523%",
                    "applyBy"        :"%globals_asset_attribute_start_date_short:365078%"
                }
            ]
        },
        "fees" : {
            "contentType" : "fees",
            "heading"     : "",
            "content"     : ""
        },
        "internationalApiCode" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_internationalApiCode^json_encode%"
    }
}


Used exclusively on subject pages. Is how the subject links to the degree pages.

For "undergrad" contents:

The asset_assetid, asset_metadata_ProgrammeCode, asset_metadata_LengthOfFulltimeStudy, asset_metadata_WebPath, and asset_name should all use the same asset id value. This is the degree that the subject is linking to, and should always be the asset number of a degree page.

The leadsIntoLink, leadsIntoText, leadsIntoExtraPreText, leadsIntoExtraLink, leadsIntoExtraLinkText are all to do with postgraduate degrees the subject links to.

  • If they are all blank, no leads into will be shown.
  • If the leadsIntoLink and leadsIntoText are present, then there will be a "Leads to a" piece of content with leadsIntoText as the text, and leadsIntoLink as the url.
  • If the leadsIntoExtraPreText, leadsIntoExtraLink and leadsIntoExtraLinkText are present, then there will also be a second link provided in the "Leads to a" element.

This is a bit confusing, so see Architecture>Interior Architecture for a good example of how it is used. (Asset id 309042)

The content element is used to provide extra information about the related degree where necessary. This is just a plain text field. See Economics and Finance>Actuarial Science for a good example of this (asset number 309568).

For "postgrad" contents:

These are used solely for postgrad links. The assetid in asset_assetid and asset_metadata_WebPath should both be the same. Everything else gets edited in the json object.

A good example of this is Biomedical Sciences>Clinical Immunology (asset id 309688).

Code Block
{
    "contentType": "related-degrees",
    "content": {
        "undergrad": [{
			"asset_assetid"                        : "%globals_asset_assetid:339832^json_encode%",
			"asset_metadata_ProgrammeCode"         : "%globals_asset_metadata_ProgrammeCode:339832^json_encode%",
			"asset_metadata_LengthOfFulltimeStudy" : "%globals_asset_metadata_LengthOfFulltimeStudy:339832^json_encode%",
			"asset_metadata_WebPath"               : "%globals_asset_metadata_WebPath:339832^json_encode%",
			"asset_name"                           : "%globals_asset_name:339832^json_encode%",
            "content"                              : "undergrad":,
[{
			"asset_assetidleadsIntoLink"                        : "%globals_asset_assetidurl:339832^json62170^json_encode%",
			"asset_metadata_ProgrammeCode"leadsIntoText"                        : "%globals_asset_metadata_ProgrammeCode:339832^json_encode%",
			"asset_metadata_LengthOfFulltimeStudy" : "%globals_asset_metadata_LengthOfFulltimeStudy:339832^json_encode%",
			"asset_metadata_WebPathMaster of Architecture (Professional)",
            "leadsIntoExtraPreText"               : "%globals_asset_metadata_WebPath:339832^json_encode%",
			"asset_name": "and other",
            "leadsIntoExtraLink"                   : "%globals_asset_nameurl:339832^json62166^json_encode%",
            "contentleadsIntoExtraLinkText"               : "postgraduate programmes"
        }],
       : "postgrad",: [{
			"leadsIntoLinkasset_assetid"                        : "%globals_asset_urlassetid:62170^json296680^json_encode%",
			"leadsIntoText"asset_metadata_ProgrammeCode"          : "MClinIm",
			"asset_metadata_LengthOfFulltimeStudy" : "1-2 years (180 points)",
			"asset_metadata_WebPath"                : "Master of Architecture (Professional)%globals_asset_url:296680^json_encode%",
			"asset_name"            "leadsIntoExtraPreText"                : "andMaster other",of Clinical Immunology"
        }]
 "leadsIntoExtraLink"             }
}


Used exclusively on subject pages for non-major subjects. (e.g. Linguistics>Text Technologies). Allows the subject to link to the victoria search page with the appropriate subject selected.


Code Block
{
     "contentType": "%globals_asset_url:62166^json_encode%related-nonmajor-courses",
            "leadsIntoExtraLinkText"               : "postgraduate programmes""content": {
         }],
        "postgrad"undergrad": [{
			"asset_assetid"                        : "%globals_asset_assetid:296680^json_encode%",
			"asset_metadata_ProgrammeCode""subjectCode":"127",
          :  "content"MClinIm",
			"asset_metadata_LengthOfFulltimeStudy" : "1-2 years (180 points)",
			"asset_metadata_WebPath":"Learn more about the undergraduate courses available in Science in Society"
        }],
       : "postgrad"%globals_asset_url:296680^json_encode%",
			"asset_name": [{
            "subjectCode":"139",
            "content":"Learn more about the postgraduate courses :available "Masterin ofScience Clinicalin ImmunologySociety"
        }]
    }
}

Used exclusively on subject pages for non-major subjects. (e.g. Linguistics>Text Technologies). Allows the subject to link to the victoria search page with the appropriate subject selected.

Code Block
{
    "contentType": "related-nonmajor-courses",
    "content": {
        "undergrad": [{
            "subjectCode":"127",
            "content":"Learn more about the undergraduate courses available in Science in Society"
        }],
        "postgrad": [{
            "subjectCode":"139",
            "content":"Learn more about the postgraduate courses available in Science in Society"
        }]
    }
}

slide-show

(architecture has a good example of a slideshow)

See the appropriate confluence page on how to properly form a slideshow. But basically, the heading and caption are displayed above the images.

For the image objects, the caption, altText, and url are all provided via the globals_asset_attribute keyword. So if they are to be changed, it must be done on the details screen of the image asset.

Only the 'heading' is specified here, because the heading on the image asset might be different to what we want to display on the image itself, and in many cases is explicitly left out.

...


slide-show

(architecture has a good example of a slideshow)

See the appropriate confluence page on how to properly form a slideshow. But basically, the heading and caption are displayed above the images.

For the image objects, the caption, altText, and url are all provided via the globals_asset_attribute keyword. So if they are to be changed, it must be done on the details screen of the image asset.

Only the 'heading' is specified here, because the heading on the image asset might be different to what we want to display on the image itself, and in many cases is explicitly left out.

Code Block
{
	"heading"     : "Designing ideas",
	"contentType" : "slide-show",
	"caption"     : "",
	"images"      : [
		{
			"heading"       : "",
			"caption"       : "%globals_asset_attribute_caption:340296^json_encode%",
			"altText"       : "%globals_asset_attribute_alt:340296^json_encode%",
			"buttonText"    : "",
			"buttonLink"    : "",
			"buttonTitle"   : "",
			"imageUrl"      : "%globals_asset_url:340296^json_encode%",
			"imagesimageAssetId"  : "340296"
	   : [},
		    {
			"heading"       : "",
			"caption"       : "%globals_asset_attribute_caption:340296^json340276^json_encode%",
			"altText"       : "%globals_asset_attribute_alt:340296^json340276^json_encode%",
			"buttonText"    : "",
			"buttonLink"    : "",
			"buttonTitle"   : "",
			"imageUrl"      : "%globals_asset_url:340296^json_encode%",
			"imageAssetId"  : "340296"
	    },
	    {
			"heading"       : "",
			"caption"       : "%globals_asset_attribute_caption:340276^json_encode%",
			"altText"       : "%globals_asset_attribute_alt:340276^json_encode%",
			"buttonText"    : "",
			"buttonLink"    : "",
			"buttonTitle"   : "",
			"imageUrl"      : "%globals_asset_url:340276^json_encode%",
			"imageAssetId"  : "340276"
	    }
    ]
}

video

Embeds a video. Currently only supports youtube videos. Make sure that the videoLink value is only the 'key' part of the video url. For example, https://www.youtube.com/watch?v=NYP5hSRiqBw becomes NYP5hSRiqBw.

The heading2 value was originally provided to supply sub-headings but is not currently used anywhere.

The content value provides a caption to go underneath the video.

videoImage is the image that will be used as the snapshot/preview that will display when the page first loads. Simply replace the ASSETID value in the code with the asset id of the image once it has been loaded into squiz.

Code Block
{
    "contentType": "video_asset_url:340276^json_encode%",
			"imageAssetId"  : "340276"
	    }
    ]
}


video

Embeds a video. Currently only supports youtube videos. Make sure that the videoLink value is only the 'key' part of the video url. For example, https://www.youtube.com/watch?v=NYP5hSRiqBw becomes NYP5hSRiqBw.

The heading2 value was originally provided to supply sub-headings but is not currently used anywhere.

The content value provides a caption to go underneath the video.

videoImage is the image that will be used as the snapshot/preview that will display when the page first loads. Simply replace the ASSETID value in the code with the asset id of the image once it has been loaded into squiz.


Code Block
{
    "contentType": "video",
    "videoType": "youtube",
    "heading1": "Developing managers and leaders",
    "heading2": "",
    "content": "",
    "videoLink": "NYP5hSRiqBw",
    "videoImage": "%globals_asset_url:ASSETID^json_encode%"
}


wellington-promo

Also known as the 'Why Wellington" block. Used to provide a short promotion on why Wellington is such a great place to study. Normally the only thing changing is the content in "content" and sometimes the "heading". If the heading is not supplied, it should be left as "Why Wellington".

Note, for postgrad wellington-promo's, the asset id for the imageId and links might be changing. If so, please get Andrew Bredenkamp to update this part of the documentation.

Code Block
{
	"heading"     : "Why Wellington",
	"contentType" : "wellington-promo",
	"content"     : "",
    "imageLink"   : "%globals_asset_url:327370^json_encode%",
    "videoTypeimageId"     : "youtube327370",
	"links"    "heading1": "Developing managers and leaders",   : [
    	{
			"linkText"  :"Why Wellington",
			"linkTitle" :"Why Wellington",
			"link"      :"%globals_asset_url:248382^json_encode%"
    "heading2": "",	}
     "content": "",
    "videoLink": "NYP5hSRiqBw",
    "videoImage": "%globals_asset_url:ASSETID^json_encode%"
}

wellington-promo

Also known as the 'Why Wellington" block. Used to provide a short promotion on why Wellington is such a great place to study. Normally the only thing changing is the content in "content" and sometimes the "heading". If the heading is not supplied, it should be left as "Why Wellington".

Note, for postgrad wellington-promo's, the asset id for the imageId and links might be changing. If so, please get Andrew Bredenkamp to update this part of the documentation.

Code Block
{
	"heading"     : "Why Wellington",
	"contentType" : "wellington-promo",
	"content"     : "",
    "imageLink"   : "%globals_asset_url:327370^json_encode%]
}


Missing content blocks

Please list below any content types that are not covered above, and get Andrew Bredenkamp to write up appropriate documentation on them.


Linking between tabs

If you want to link to a section in a different tab within the same area (e.g. accounting>about linking to accounting>qualifications), you can't just use a regular <a href="../about">. Instead use the following code for the right page type:

Postgraduate programmes (postgraduate-programmes) - tabs = #about #study #requirements #people #apply

Code Block
<a ui-sref='postgrads#people'>link text</a>

Postgraduate subjects (postgraduate-subjects) - tabs #about #qualifications #people

Code Block
<a ui-sref='postgrad-areas#people'>link text</a>

Graduate qualifications (graduate-quals) - tabs = #about #study #requirements #people #apply

Code Block
<a ui-sref='graduate-quals#people'>link text</a>

Undergrad study areas (study-areas) - tabs = #about #study #people

Code Block
<a ui-sref='study-areas#people'>link text</a>

Undergrad degrees (degrees) - tabs = #about #requirements

Code Block
<a ui-sref='degrees#requirements'>link text</a>

International and Domestic content

Most of the international content is handled by the app. Including fees, requirements etc.

However there are some blocks which are set to be visible only for international or domestic students. This is set with the "region" value set to either "domestic" or "international".

E.g. asset id 341060

Code Block
{
    "contentType" : "content-plain-links",
    "heading"     : "Scholarships",
    "imageIdregion"      : "327370domestic",
	"links"       : [
    	{
			"linkText"  :"Why Wellington",
			"linkTitle" :"Why Wellington", 			"linkcontent"     : :"%globals_asset_url:248382^json_encode%"
    	}
    ]
}

Missing content blocks

Please list below any content types that are not covered above, and get Andrew Bredenkamp to write up appropriate documentation on them.

Linking between tabs

If you want to link to a section in a different tab within the same area (e.g. accounting>about linking to accounting>qualifications), you can't just use a regular <a href="../about">. Instead use the following code for the right page type:

Postgraduate programmes (postgraduate-programmes) - tabs = #about #study #requirements #people #apply

Code Block
<a ui-sref='postgrads#people'>link text</a>

Postgraduate subjects (postgraduate-subjects) - tabs #about #qualifications #people

Code Block
<a ui-sref='postgrad-areas#people'>link text</a>

Graduate qualifications (graduate-quals) - tabs = #about #study #requirements #people #apply

Code Block
<a ui-sref='graduate-quals#people'>link text</a>

Undergrad study areas (study-areas) - tabs = #about #study #people

Code Block
<a ui-sref='study-areas#people'>link text</a>

Undergrad degrees (degrees) - tabs = #about #requirements

Code Block
<a ui-sref='degrees#requirements'>link text</a>

International and Domestic content

Most of the international content is handled by the app. Including fees, requirements etc.

However there are some blocks which are set to be visible only for international or domestic students. This is set with the "region" value set to either "domestic" or "international".

E.g. asset id 341060

Code Block
{
    "contentType" : "content-plain-links"Scholarships are awarded to hundreds of first-year students each year. They help with tuition fees and accommodation costs at Victoria's halls of residence. There are two types of scholarships for school leavers—Victoria Excellence Scholarships and Victoria Achiever Scholarships.\nYou can also apply for a TeachNZ Scholarship. These scholarships are awarded based on specific areas where teachers are needed.",
    "links"       : [{
        "linkText"  : "Search scholarships",
    "heading"    "linkTitle" : "ScholarshipsSearch scholarships",
        "regionlink"      : "domestic",
    "content"     : "Scholarships are awarded to hundreds of first-year students each year. They help with tuition fees and accommodation costs at Victoria's halls of residence. There are two types of scholarships for school leavers—Victoria Excellence Scholarships and Victoria Achiever Scholarships.\nYou can also apply for a TeachNZ Scholarship. These scholarships are awarded based on specific areas where teachers are needed.",
    "links"       : [{
        "linkText"  : "Search scholarships",
        "linkTitle" : "Search scholarships",
        "link"      : "http://www.victoria.ac.nz/study/student-finance/scholarships"
    }]

}

By default content will appear to anyone who visits the page. If the region is domestic, it will only show to non-international students. If the region is international, it will only show to international students.

...

http://www.victoria.ac.nz/study/student-finance/scholarships"
    }]

}


By default content will appear to anyone who visits the page. If the region is domestic, it will only show to non-international students. If the region is international, it will only show to international students.

This can be applied to any content block.


Tooltips

There are three kinds of tooltips. 

  1. Standard tooltips that appear in text which has a dotted line under it, where the tooltip will appear when the user hovers over the word.
  2. Heading tooltips - e.g. on the Study Areas About tab, on the question mark icon by the heading Subjects "Possible area(s) of study within a degree"
  3. Other tooltips that have ended up being handled by the Angular App.

For standard tooltips, these are managed in each qualification areas sharedAssets folder.

E.g. sharedAssets (Id: #313981) > toolTips (Id: #329802) for study areas.

They are formatted just like any other json object:

Code Block
"word for tooltip to appear" : "Tooltip text that will appear on hover",

Make sure the last item before the final } doesn't have a , after it so it retains valid json syntax.

it doesn't matter what capitalisation you use for the tooltip word, and it can include spaces and other characters (except " marks). Once the new word is in place, the next time you load the page the tooltips should be appear wherever that word appears.

Note, this is a fairly intensive process on angular end, so it is better if we try to keep this list of tooltips to a minimum wherever possible.


Also, the tooltips generally are broken into 4 parts.

  1. The opening bracket (can be ignored)
  2. A container that is exclusive to study areas
  3. A container that is shared across study areas, undergrad degrees, grad-quals and postgrad programmes
  4. Closing Bracket (can be ignored)

This allows specific tooltips only to appear in their designated area without adding extra values and processing to other areas. In future it might be worthwhile to regularly do an audit on the tooltips to ensure there are not any extra tooltips that are no longer needed, or if there are tooltips that are only required on postgrad that don't need to be shared.

Squiz keywords. When and how to use them:

...