Skip to content

Commit

Permalink
frontpages now using sequenced behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Feb 11, 2010
1 parent e382abf commit 083f67a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
70 changes: 35 additions & 35 deletions infinitas/cms/models/frontpage.php
@@ -1,36 +1,36 @@
<?php
/**
* Comment Template.
*
* @todo Implement .this needs to be sorted out.
*
* Copyright (c) 2009 Carl Sutton ( dogmatic69 )
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
* @filesource
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 )
* @link http://infinitas-cms.org
* @package sort
* @subpackage sort.comments
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @since 0.5a
*/

class Frontpage extends CmsAppModel {
var $name = 'Frontpage';

var $actsAs = array(
'Libs.Ordered'
);

var $order = array(
'Frontpage.order_id' => 'ASC',
'Frontpage.ordering' => 'ASC'
);

var $belongsTo = array(
'Cms.Content'
);
}
<?php
/**
* Comment Template.
*
* @todo Implement .this needs to be sorted out.
*
* Copyright (c) 2009 Carl Sutton ( dogmatic69 )
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
* @filesource
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 )
* @link http://infinitas-cms.org
* @package sort
* @subpackage sort.comments
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @since 0.5a
*/

class Frontpage extends CmsAppModel {
var $name = 'Frontpage';

var $actsAs = array(
'Libs.Sequence'
);

var $order = array(
'Frontpage.order_id' => 'ASC',
'Frontpage.ordering' => 'ASC'
);

var $belongsTo = array(
'Cms.Content'
);
}
?>
2 changes: 1 addition & 1 deletion infinitas/cms/views/frontpages/admin_index.ctp
Expand Up @@ -83,7 +83,7 @@
</td>
<td>
<?php
echo $this->Infinitas->toggle( $frontpage['Content']['active'], $frontpage['Content']['id'], array( 'controller' => 'contents', 'action' => 'toggle' ) );
echo $this->Infinitas->status( $frontpage['Content']['active'] );
?>
</td>
</tr>
Expand Down

0 comments on commit 083f67a

Please sign in to comment.