modified module
This commit is contained in:
@@ -12,9 +12,13 @@ inherit
|
|||||||
rename
|
rename
|
||||||
module_api as file_upload_api
|
module_api as file_upload_api
|
||||||
redefine
|
redefine
|
||||||
install
|
install,
|
||||||
|
register_hooks
|
||||||
end
|
end
|
||||||
|
|
||||||
|
CMS_HOOK_BLOCK
|
||||||
|
CMS_HOOK_MENU_SYSTEM_ALTER
|
||||||
|
|
||||||
create
|
create
|
||||||
make
|
make
|
||||||
|
|
||||||
@@ -67,4 +71,31 @@ feature -- Module Management
|
|||||||
Precursor (api)
|
Precursor (api)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
feature -- Hooks
|
||||||
|
|
||||||
|
register_hooks (a_response: CMS_RESPONSE)
|
||||||
|
-- register the hooks
|
||||||
|
do
|
||||||
|
a_response.subscribe_to_menu_system_alter_block(Current)
|
||||||
|
a_response.subscribe_to_block_hook(Current)
|
||||||
|
end
|
||||||
|
|
||||||
|
block_list: ITERABLE [like {CMS_BLOCK}.name]
|
||||||
|
do
|
||||||
|
-- List of block names, managed by current object.
|
||||||
|
end
|
||||||
|
|
||||||
|
get_block_view (a_block_id: READABLE_STRING_8; a_response: CMS_RESPONSE)
|
||||||
|
do
|
||||||
|
-- Get block object identified by `a_block_id' and associate with `a_response'.
|
||||||
|
end
|
||||||
|
|
||||||
|
menu_system_alter (a_menu_system: CMS_MENU_SYSTEM; a_response: CMS_RESPONSE)
|
||||||
|
local
|
||||||
|
link: CMS_LOCAL_LINK
|
||||||
|
do
|
||||||
|
create link.make ("Files", "/uploaded_files")
|
||||||
|
a_menu_system.primary_menu.extend (link)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user