Skip to content

Commit

Permalink
Merge pull request #97 from medeopolis/site-page-rank
Browse files Browse the repository at this point in the history
Bring in line with change on providence
  • Loading branch information
collectiveaccess authored Feb 15, 2024
2 parents 247ede8 + 6660cde commit 208647e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion app/models/ca_site_pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@
'DISPLAY_FIELD' => array('ca_locales.name', 'ca_locales.language', 'ca_locales.country'),
'LABEL' => _t('Locale'), 'DESCRIPTION' => _t('Locale of page'),
),
'rank' => array(
'FIELD_TYPE' => FT_NUMBER, 'DISPLAY_TYPE' => DT_FIELD,
'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
'IS_NULL' => false,
'DEFAULT' => '',
'LABEL' => _t('Sort order'), 'DESCRIPTION' => _t('Sort order'),
),
'access' => array(
'FIELD_TYPE' => FT_NUMBER, 'DISPLAY_TYPE' => DT_SELECT,
'DISPLAY_WIDTH' => 100, 'DISPLAY_HEIGHT' => 4,
Expand Down Expand Up @@ -179,7 +186,7 @@ class ca_site_pages extends BundlableLabelableBaseModelWithAttributes {

# If you want to order records arbitrarily, add a numeric field to the table and place
# its name here. The generic list scripts can then use it to order table records.
protected $RANK = null;
protected $RANK = 'rank';


# ------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion app/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
define('__CollectiveAccess__', '2.0');

# Schema revision
define('__CollectiveAccess_Schema_Rev__', 194);
define('__CollectiveAccess_Schema_Rev__', 195);

# Release type
define('__CollectiveAccess_Release_Type__', 'RELEASE');

0 comments on commit 208647e

Please sign in to comment.