create una block by code
how to create una block thru php code examples links
-
-
·
LeonidS
- ·
Hello Chetty !
First of all, you need to insert the commands like the following in the UNA's Database:
-- PAGE: view profile
INSERT INTO `sys_objects_page`(`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES
('bx_persons_view_profile', 'view-persons-profile', '_bx_persons_page_title_sys_view_profile', '_bx_persons_page_title_view_profile', 'bx_persons', 7, 2147483647, 1, 'page.php?i=view-persons-profile', '', '', '', 0, 1, 0, 'BxPersonsPageEntry', 'modules/boonex/persons/classes/BxPersonsPageEntry.php');
INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
('bx_persons_view_profile', 2, 'bx_persons', '', '_bx_persons_page_block_title_profile_subscriptions', 11, 2147483647, 'service', 'a:2:{s:6:\"module\";s:10:\"bx_persons\";s:6:\"method\";s:21:\"profile_subscriptions\";}', 0, 1, 0, 0);
Then the method getCode (BxPersonsPageEntry class, parented from BxBaseModProfilePageEntry->BxBaseModGeneralPageEntry->BxTemplPage->BxBasePage->BxDolPage) will draw this set of blocks.
-
·
LeonidS
-
- · Chetty
- ·
give mild example other than test module like c++ display hello world in una,to display hello world y steps r more in una,lang-en.php cache file is important all display from this file
-
- · Chetty
-
·
In reply to Chetty
- ·
give mild example other than test module like c++ display hello world in una,to display hello world y steps r more in una,lang-en.php cache file is important all display from this file
wer can i capture drawing of una blocks step by step
-
- · Chetty
- ·
Then the method getCode (BxPersonsPageEntry class, parented from BxBaseModProfilePageEntry->BxBaseModGeneralPageEntry->BxTemplPage->BxBasePage->BxDolPage) will draw this set of blocks.here u can't get seeing block by block 1 stretch it gives result getcode
-
-
·
LeonidS
- ·
This part has been explained here https://github.com/unaio/una-vendor-test/wiki/Page-Creation
-
·
LeonidS