[code]{if isset($theme.permissions.core_addDataItem)}
url arg1="view=core.ItemAdmin" arg2="subView=core.ItemAdd" arg3="itemId=`$theme.item.id`"}">![]()
{/if}[/code]
I want to have an add image button so i have to add that code to: album.tpl but I dont want it to be in the center of my site but in my Drupal block. How can I get that to work from there? I tried adding it as php code but it didnt work.
Comments
Comment #1
piotrdesign commentedI was thinking about getting that ADD image button on the right side of the page -- the drupal one not g2 and got an idea, I added a new block but it was unsuccesful. Can someone help me out?
When I go to Drupal blocks I get this error:
Parse error: syntax error, unexpected T_ISSET, expecting '(' in C:\xampp\htdocs\web\modules\gallery\gallery_block.inc on line 143
Otherwise the site works.
Ive added this to the function list
Added this as the function
And I get an error for this line:
{if isset($theme.permissions.core_addDataItem)}This is the whole gallery_block code with the new includes:
Comment #2
kiz_0987 commentedThe code you have added is fundamentally not going to work as-is. You need to code in PHP, but the code you have added is Smarty template code. I also doubt that you will be able to get the variable values you want (at least in the way that you are trying to).
Comment #3
piotrdesign commentedCan you guys help me get this to work on thr drupal side? Im not a php coder...
Comment #4
kiz_0987 commentedThis is not easy and I do not plan to work on it at the moment. See http://drupal.org/node/60866 for details.
Comment #5
alexandreracine commentedPlease look at the latest version.
http://drupal.org/project/gallery
Closing (cleanup)