Versions Compared

Key

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


Firstly, check the custom date table for existing date sets to re-use before creating new.

Date sets are applied to UG and PG degrees / certificates / programmes.

1) Create individual custom dates if not currently present under 607663. Ensure Metadata is correct as this is where the date information is drawn from, not the contents of the asset

2) Create a custom page to contain your date sets. These are found under 771712 836592. Give it a relatively clear name - the DIV's within the page must give the details for each key date set. See 843533 for example

...

6) Apply the following code to the postgrad-apply (see #380708) block / atAGlance (see #720362) block in place of current JSON object. Copy the code to retain indents / structure from the relevant asset, or JSONLint it:

...

{
"contentType" : "postgrad-apply",
"content" : {
"startStudying" : {
"type" : "keyDatesSet",
"heading" : "Start Studying",
"appendix" : "",
"keyDatesSet" : [ %asset_parent^as_asset:asset_metadata_keyDateSet^as_asset:asset_contents^replace_keywords:empty:{asset_parent^as_asset:asset_metadata_parentProgramme^as_asset:asset_metadata_keyDateSet^as_asset:asset_contents}% {}]
},
"fees" : {
"contentType" : "fees",
"heading" : "",
"content" : ""
}
}
}

Or

...

Or

...

{
"contentType" :"atAGlance",
"references" :["qualifications"],
"qualificationDefault":[{
"asset_assetid" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_assetid^json_encode%",
"name" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_name^json_encode%",
"major_code" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_MajorCode^json_encode%",
"asset_short_name" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_short_name^json_encode%",
"asset_metadata_WebPath" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_WebPath^json_encode%",
"asset_metadata_courses" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_courses^json_encode%",
"asset_metadata_points" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_points^json_encode%",
"asset_metadata_location" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_location^json_encode%",
"asset_metadata_requiredContact" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_requiredContact^json_encode%",
"asset_metadata_composition" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_composition^json_encode%",
"asset_metadata_applicationsDue" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_applicationsDue^json_encode%",
"asset_metadata_applicationsDueCustom" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_applicationsDueCustom^json_encode%",
"asset_metadata_startingTrimester" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_startingTrimester^json_encode%",
"asset_metadata_summaryEntryRequirements" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_summaryEntryRequirements^json_encode%",
"asset_metadata_canBeStudiedPartTime" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_canBeStudiedPartTime^json_encode%",
"asset_metadata_durationDescription" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_durationDescription^json_encode%",
"asset_metadata_minimumDuration" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_minimumDuration^json_encode%",
"asset_metadata_internationalApiCode" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_internationalApiCode^json_encode%",
"asset_metadata_keyDateSet" : [ %asset_parent^as_asset:asset_metadata_keyDateSet^as_asset:asset_contents% {} ],
"asset_metadata_keyInfoSet" : "%globals_asset_metadata_ProgrammeId^as_asset:asset_metadata_keyInfoSet%",
"showOldCardDefault" : "true"
}]
}

See the following file for correctly formatted code.. Depending on the current type of JSON block / metadata content, use the correct alternative (one has internationalAPI codes, one does not). If in doubt, reverse-engineer a like-for-like degree

View file
namedates.txt
height250

Save as, open in text editor, do not word wrap.

7) Shuffle the key date set DIV's up the page, to sit below any international warning DIVs.

8) Add new custom dates to the custom date table for future reference.

Caveats

Don't edit existing individual date, date sets or date pages. These are used in multiple areas, so editing it in one area will create erroneous dates in other areas.

Permissible Metadata / Exceptions

  • Trimester can be 0,1,2,3 or null (no trimester)

Further Reading

Refer to Key Date Set table to see what has been applied and where. Use this table to re-use date sets elsewhere, or reference the custom date sets here.