Skip to content

Instantly share code, notes, and snippets.

Created June 11, 2010 18:58
Show Gist options
  • Save anonymous/434897 to your computer and use it in GitHub Desktop.
Save anonymous/434897 to your computer and use it in GitHub Desktop.
\xa01.1 Add a new field to the properties tab of Story Archive\xa0
\xa01.1.1 Field Name:\xa0 Display Stories\xa0
\xa01.1.2 Location: display tab\xa0
\xa01.1.2.1 Field Type:\xa0 Select Box\xa0
\xa01.1.2.2 Options\xa0
\xa01.1.2.2.1 Chronologically\xa0
\xa01.1.2.2.1.1 Default Option\xa0
\xa01.1.2.2.2 Alphabetically\xa0
\xa01.2 Update Story Archive to return stories based on the setting in the Displ
ay Stories property\xa0
\xa01.2.1 Modify viewTemplateVariable in WebGUI::Asset::Wobject::StoryArchive\xa
0
\xa01.2.1.1 Change the orderBy clause in "view" mode:\xa0
\xa01.2.1.1.1 If "Chronologically" is selected orderBy creationDate desc, lineag
e\xa0
\xa01.2.1.1.2 If "Alphabetically" is selected orderBy menuTitle desc, lineage\xa
0
\xa01.3 Test changes\xa0
\xa01.3.1 Unit test\xa0
\xa01.3.2 Write new automated tests for sorting in StoryArchive.t\xa0
\xa01.4 Build a patch to add the changes to WebGUI 7.7.x\xa0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment