Is there a way to add a "more" or custom link to the block?
I have hours being called and would like to have a "more" link at the bottom of the block that includes to a link to a node.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | agenda-2398087-3.patch | 1.2 KB | pifagor |
Comments
Comment #1
gooddesignusa commentedYou can use hook_block_view_alter(&$data, $block) or template_preprocess_block.
On some of my projects we have a calendar page that accepts a hash in the URL to tell some jquery which google calendar to load in the iframe. We needed to add links to the bottom of the agenda block. Here is some of my code you can use as a reference.
I add some text before and after the block content.
Comment #2
gooddesignusa commentedWhen I get some time I will make a patch that will add a footer link option to the agenda block settings.
Comment #3
pifagor commentedCheck if this patch working, was unable to check his work
Comment #4
pifagor commentedComment #5
guschilds commentedThanks for the patch, pifagor, but it does not make sense to commit to the module. The code from #1 was just an example of implementing
hook_block_view_alter(). It has block IDs, text, and node paths that are specific to a single site. No other site using this module would have those. If someone wishes to do something similar, they can implement that hook in a similar way from within a custom module. A patch for this that might make sense to commit would involve generic configuration that each site could use to accomplish its specific needs.