| Re: Custom block shortcut edit button |
| by ghia on 2010/7/4 14:07:05 Quote: @ ghia Will try to change in that php file first so no changes required in the theme. If not sucessful will use mariane's way. So, Marianne has the perfect way to go. |
| Re: Custom block shortcut edit button |
| by Mechs on 2010/7/4 12:12:55 @ mariane, this way i think we have to change every themes that we want to include in our themes selection. Thanks it is what i'm looking for. @ ghia as always you are very helpfull & thanks. Will try to change in that php file first so no changes required in the theme. If not sucessful will use mariane's way. |
| Re: Custom block shortcut edit button |
| by mariane on 2010/7/4 11:26:15 try this code in your left/right or center blocks (inside the theme) le="color: #000000"><?php <{if $xoops_isadmin}> <a href="<{xoAppUrl /modules/system/admin.php?fct=blocksadmin&op=edit&bid=}><{$block.id}>" title="Edit this Block" > <img src="<{$xoops_imageurl}>block/block-edit.png" alt="Edit this Block"></a> <a href="<{xoAppUrl /modules/system/admin.php?fct=blocksadmin&op=delete&bid=}><{$block.id}>" title="Delete this Block" > <img src="<{$xoops_imageurl}>block/block-delete.png" alt="Delete this Block"></a> <a href="<{xoAppUrl /modules/system/admin.php?fct=blocksadmin}>" title="Add New Block" > <img src="<{$xoops_imageurl}>block/block-add.png" alt="Add New Block"></a><{/if}> and dont forget to add small icons to the functions edit, add, delete in a folder : themes/yourtheme/block |
| Re: Custom block shortcut edit button |
| by ghia on 2010/7/4 10:17:54 I think you need to add the link to the block array in function buildBlock in /class/themeblocks.php and then you can use it in your theme. |
| Re: Custom block shortcut edit button |
| by Mechs on 2010/7/4 8:21:26 For every custom block that's created & displayed in a page, to edit the block we need to go through Admin Menu --> System --> Blocks --> custom block --> the custom block--> edit If we have a shortcut such as a link/button to go directly to blocks edit form it would be a plus. At the moment i have to add a link(the one in the previous post) plus the block id manually for every custom block for a shortcut. Hope that's clear. |