Refactored and update CMS hooks design. (Move from CMS_RESPONSE to CMS_API).
Moved content_types and content_type_webform_managers from CMS_RESPONSE to CMS_API.
Updated the way to output content (node, ...) to html page.
See CMS_CONTENT_TYPE_WEBFORM_MANAGER.append_cointent_as_html_to (...).
Added notion of "teaser" (short version of the content), as opposed to full content.
One can use CMS_API.html_encoder ... when possible, same for `formats', ...
Added bridge from CMS_MODULE_API to CMS_API's encoders.
Added new CMS_TAXONOMY_HOOK used to retrieve list of content associated with a specific term.
Moved up to CMS_RESPONSE a few features which was available only in specific descendants.
Added /taxonomy/term/{termid} implementation.
This commit is contained in:
@@ -16,28 +16,25 @@ inherit
|
||||
|
||||
feature -- Hook
|
||||
|
||||
auto_subscribe_to_hooks (a_response: CMS_RESPONSE)
|
||||
local
|
||||
l_manager: CMS_HOOK_CORE_MANAGER
|
||||
auto_subscribe_to_hooks (a_hooks: CMS_HOOK_CORE_MANAGER)
|
||||
do
|
||||
l_manager := a_response.hooks
|
||||
if attached {CMS_HOOK_MENU_SYSTEM_ALTER} Current as h_menu_system_alter then
|
||||
l_manager.subscribe_to_menu_system_alter_hook (h_menu_system_alter)
|
||||
a_hooks.subscribe_to_menu_system_alter_hook (h_menu_system_alter)
|
||||
end
|
||||
if attached {CMS_HOOK_MENU_ALTER} Current as h_menu_alter then
|
||||
l_manager.subscribe_to_menu_alter_hook (h_menu_alter)
|
||||
a_hooks.subscribe_to_menu_alter_hook (h_menu_alter)
|
||||
end
|
||||
if attached {CMS_HOOK_BLOCK} Current as h_block then
|
||||
l_manager.subscribe_to_block_hook (h_block)
|
||||
a_hooks.subscribe_to_block_hook (h_block)
|
||||
end
|
||||
if attached {CMS_HOOK_FORM_ALTER} Current as h_form then
|
||||
l_manager.subscribe_to_form_alter_hook (h_form)
|
||||
a_hooks.subscribe_to_form_alter_hook (h_form)
|
||||
end
|
||||
if attached {CMS_HOOK_VALUE_TABLE_ALTER} Current as h_value then
|
||||
l_manager.subscribe_to_value_table_alter_hook (h_value)
|
||||
a_hooks.subscribe_to_value_table_alter_hook (h_value)
|
||||
end
|
||||
if attached {CMS_HOOK_RESPONSE_ALTER} Current as h_resp then
|
||||
l_manager.subscribe_to_response_alter_hook (h_resp)
|
||||
a_hooks.subscribe_to_response_alter_hook (h_resp)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user