Project

General

Profile

Feature #1871

Improve path routing for hooks

Added by Vasily Bezruchkin almost 6 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
Start date:
November 13, 2014
Due date:
% Done:

100%

Estimated time:

Description

Blocks now have: plugin:current_weather:block.weather.tpl

It would be great to have the same structure for hooks inclusion instead of direct mapping:
plugins/current_weather/includes/hook.weather.php

Discuss!

History

#1

Updated by Vasily Bezruchkin over 4 years ago

  • Target version changed from 4.6.0 to 4.0.4
#2

Updated by Batyr Mackenov over 4 years ago

Particularly fixed at GitHub https://github.com/intelliants/subrion/issues/54 for TPL files.

#3

Updated by Batyr Mackenov over 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Done in commit b29ebb6

Changed the php hooks inclusion.

Instead of

<hook name="phpCoreBeforePageDisplay" page_type="both" filename="packages/yellowpages/includes/hook.blocks-load.php"><![CDATA[]]></hook>

it should now be

<hook name="phpCoreBeforePageDisplay" page_type="both" filename="hook.blocks-load"><![CDATA[]]></hook>

Also available in: Atom PDF