CommentFileSizeAuthor
#1 empty_page-create_custom_template-2234197-1.patch7.73 KBAnonymous (not verified)

Comments

Anonymous’s picture

Title: theming empty page » theming empty page callbacks
Version: 7.x-1.0 » 7.x-1.x-dev
Component: Miscellaneous » Code
Assigned: Unassigned »
Category: Support request » Feature request
Status: Active » Needs review
StatusFileSize
new7.73 KB

I created this patch that allows you to associate a custom template file to your callback.
I have added a checkbox in the "Add Callback" form, where you can choose if want to associate the following callback to a custom template file.
I also added a settings form, where you can set a custom path for your own template files, so if the template file is not in the default folder, here you can set a custom path.
Probably we can do better and better, but on my server seems to work fine.

Anonymous’s picture

Issue summary: View changes
calebtr’s picture

Status: Needs review » Needs work

The patch applies to 7.x-1.x, but it calls a database query on fields that don't exist.

We'll need to add a hook_update_N() to update the schema.

I also would prefer to see a template defined as a string - that way several callbacks can use the same template.