Versions Compared

Key

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

...

Quotes and “ ” characters

Newlines

 

JSON structures

content-plain

...

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

fun-fact

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

Code Block
{
    "contentType": "fun-fact",

 

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"     "heading": "29%International recognition",
   	"contentType" : "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"
}

 

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-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.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" : "340052"ac.nz/vbs/about/welcome/accreditation'>Find out more about accreditations and what they mean for you.</a>",
	"images"      : [{
		"imageAssetId" : "340052",
		"imageSrc"     : "%globals_asset_url:340052^json_encode%",
		"altText"      : "EQUIS Logo",
		"linkTitle"    : "",
		"link"         : "",
		"linkUrl": ""
	}, {
		"imageAssetId" : "340057",
		"imageSrc"     : "%globals_asset_url:340052^json340057^json_encode%",
		"altText"      : "EQUISAMBA Logo",
		"linkTitle"    : "",
		"link"         : "",
		"linkUrl"      : ""
	}, {
		"imageAssetId" : "340057340058",
		"imageSrc"     : "%globals_asset_url:340057^json340058^json_encode%",
		"altText"      : "AMBAAASCB Logo",
		"linkTitle"    : "",
		"link"         : "",
		"linkUrl"      : ""
	}, {
		"imageAssetId" : "340058",
		"imageSrc"     : "%globals_asset_url:340058^json_encode%",
		"altText]
}

 


 

 

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"      : "AASCB Logo",
   		"linkTitlecontent"     : "",
  		  "link"links"       : [
        {
   : "", 		"linkUrl"      : ""
	}]
}

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.

 

...

linkText"  :"Text",
            "linkTitle" :"Text",
            "link"      :"%globals_asset_url:ASSETID^json_encode%"
        }
   ],
	"externalLinks": [{
		"linkText"   : "Text",
		"linkTitle"  : "Text",
		"link"       : "http://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"     : "",
    "content"     : {
        "levelOfStudy": {
            "contentType" : "levelOfStudy",
            "heading"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_postOrUndergradHeading^json_encode%",
            "content"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_postOrUndergrad^json_encode%"
        },
        "studyLength": {
            "contentType" : "studyLength",
            "heading"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_LengthOfFulltimeStudyHeading^json_encode%",
            "content"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_LengthOfFulltimeStudy^json_encode%",
            "contentSub" : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_LengthOfFulltimeStudySubHeading^json_encode%"
        },
        "fees": {
            "contentType" : "fees",
            "heading"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_CourseFeesHeadingOverride^json_encode%",
            "content"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_EstimatedYearlyCourseFees^json_encode%"
        },
        "usefulSubjects": {
            "contentType" : "usefulSubjects",
            "heading"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_UsefulSecondarySchoolSubjectsHeading^json_encode%",
            "content"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_UsefulSecondarySchoolSubjects^json_encode%"
        }
    }
}

 

 

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" : "videoentry-requirements",
    "videoTypeheading"     : "youtubeEntry requirements",
    "heading1content"     : "DevelopingTo managersbe andaccepted leaders",into this degree you  "heading2": "need:",
    "contentreqWithLink" : "",
 {
  "videoLink": "NYP5hSRiqBw",       "videoImagecontent"   : "%globals_asset_url:ASSETID^json_encode%"
}

 

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"     : [
            "If you are transferring from another university and applying for 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.",
            "<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.",University Entrance, or to meet the requirements of another admission type and",
        "linkText"  : "University admission",
        "linkTitle" : "University admission",
        "link"      : "%globals_asset_url:194328^json_encode%"
    },
    "reqOther"    : [
        "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 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"     : [
            "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>."
        ]
}

 

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"     : "",
   "content"     : "",
    "links"       : [
        {
            "linkText"  :"Text",
            "linkTitle" :"Text",
   are transferring from another university and applying for 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.",
            "<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.",
            "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"         : "link"  "
}

 

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
{
   :"%globals_asset_url:ASSETID^json_encode%"
        }
   ],
	"externalLinks": [{
		"linkText"   : "Text",
		"linkTitle"  : "Text",
		"link"  "contentType" : "intro-degree",
   "heading"     : "",
   "content"     : "http://www.careers.govt.nz/"

	}]
}

 

...

slide-

...

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... :(

...

show

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"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_postOrUndergradHeading^json_encode%Designing ideas",
	"contentType" : "slide-show",
	"caption"     : "",
  	"contentimages"      : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_postOrUndergrad^json_encode% [
		{
			"heading"       :  }"",
			"caption"       : "studyLength": {%globals_asset_attribute_caption:340296^json_encode%",
			"altText"          : "%globals_asset_attribute_alt:340296^json_encode%",
			"buttonText"   "contentType" : "studyLength",
			"buttonLink"    : "",
			"buttonTitle"   :   "heading""",
			"imageUrl"      : "%asset%globals_metadataasset_ProgrammeId^as_asseturl:asset_metadata_LengthOfFulltimeStudyHeading^json_encode%",
340296^json_encode%",
			"imageAssetId"  : "340296"
	    },
	    {
			"heading"       "content": "",
			"caption"       : "%asset%globals_metadataasset_ProgrammeId^asattribute_asset:asset_metadata_LengthOfFulltimeStudy^jsoncaption:340276^json_encode%",
      			"altText"      "contentSub" : "%asset%globals_metadataasset_ProgrammeId^asattribute_asset:asset_metadata_LengthOfFulltimeStudySubHeading^jsonalt:340276^json_encode%",
			"buttonText"        }: "",
			"buttonLink"    :    "fees": {
       "",
			"buttonTitle"   : "",
			"imageUrl"     "contentType" : "fees%globals_asset_url:340276^json_encode%",
			"imageAssetId"  : "340276"
	    }
   "heading"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_CourseFeesHeadingOverride^json_encode%",
            "content"     : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_EstimatedYearlyCourseFees^json_encode%"
        },
        "usefulSubjects": {
       ]
}

 

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" : "usefulSubjectsvideo",
           "videoType": "headingyoutube",
    : "%asset_metadata_ProgrammeId^as_asset:asset_metadata_UsefulSecondarySchoolSubjectsHeading^json_encode%",
     "heading1": "Developing managers and leaders",
    "heading2":  "content",
    "content": "%asset_metadata_ProgrammeId^as_asset:asset_metadata_UsefulSecondarySchoolSubjects^json_encode%"",
    "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".

...