Changeset 15921
- Timestamp:
- 01/24/12 22:26:07 (4 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
inc/classes/BxDolPage.php (modified) (1 diff)
-
samples/page.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/classes/BxDolPage.php
r15903 r15921 67 67 * - module: module name this block belongs to. 68 68 * - title: block title. 69 * - designbox_id: design box to use to diplay page block, it is id of the record from 'sys_pages_ blocks' table.69 * - designbox_id: design box to use to diplay page block, it is id of the record from 'sys_pages_design_boxes' table. 70 70 * - visible_for_levels: bit field with set of member level ids. To use member level id in bit field - the level id minus 1 as power of 2 is used, for example: 71 71 * - user level id = 1 -> 2^(1-1) = 1 -
trunk/samples/page.php
r15897 r15921 12 12 * @section page Page 13 13 */ 14 15 16 /** 17 18 -- Page Object 19 20 INSERT INTO `sys_objects_page` (`object`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_server`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES 21 ('sample', 'Sample Page', 'sample', 9, 2147483647, 1, 'samples/page.php', 'sample page', 'sample, page', 'noindex', 3600, 1, 1, '', ''); 22 23 -- Page Blocks 24 25 INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `order`) VALUES 26 ('sample', 1, 'sample', 'sample 1', 11, 2147483647, 'raw', 'sample 1', 1, 1, 1), 27 ('sample', 1, 'sample', 'sample 2', 11, 2147483647, 'raw', 'sample 2', 1, 1, 2), 28 ('sample', 2, 'sample', 'sample 11', 11, 2147483647, 'raw', 'sample 11<br />\r\nsample 11<br />\r\nsample 11<br />\r\nsample 11<br />\r\nsample 11<br />\r\nsample 11<br />\r\n', 1, 1, 1), 29 ('sample', 3, 'sample', 'sample 33', 11, 2147483647, 'raw', 'sample 33<br />\r\nsample 33<br />\r\n', 1, 1, 1); 30 31 */ 32 14 33 15 34 $aPathInfo = pathinfo(__FILE__); … … 36 55 if ($oPage) 37 56 echo $oPage->getCode(); // print page 57 else 58 echo '"sample" page is missing.'; 38 59 39 60 return ob_get_clean();
Note: See TracChangeset
for help on using the changeset viewer.