I've been working on this problem for a week. I guess I don't know enough about PHP to figure it out on my own.
I have a gallery site where I am using the Digibug service for ordering prints. In the Matrix theme there is a button in the sidebar on the photo page that says "Print to Digibug." If I switch to the Siriux theme that button does not appear.
The site's layout is based on Siriux so I really need to move this one button into the photo page on the Siriux theme. Any suggestions?
Posts: 27300
Siriux does not have a sidebar. You can add 'item actions' to the photo page. Edit album theme tab 'blocks to show on photo page'.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
Thanks,
That works but it's not very intuitive from my customer's point of view. Is there anyway I can modify the code in photo.tpl so that I can place a simple "Print to Digibug" link on the page?
Posts: 27300
I don't have a digibug account so cant realy test but try:
If not then I will have to set up an account ( is it free? ) or can you PM me your 'Digibug Company ID' and 'event ID'.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
That looks like what I'm going for but I get an error when I click it.
I did try logging out and logging back in on two different acounts but it still didn't work. Digibug is free but I don't mind PMing you my information if it would help. Thanks a lot!
Posts: 27300
try:
<a href="{g->url arg1="view=digibug.DigibugPrintPhotos" arg2="itemId=`$theme.item.id`" forceFullUrl=true forceSessionId=true useAuthToken=1}">print with digibig</a>
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
I really appreciate this. I got a different error this time.
Your previous tip about the "Item Actions" might work out. I found out I can switch that display from a drop down list to regular links. When I'm logged in as a guest all they see is the "print on Digibug" link. I'd rather be able to move the link around anywhere I want it in the template, but I think this will work.
Posts: 27300
OK looks like we are close. Just complaining about the return url now. let me dig.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
<a href="{g->url arg1="view=digibug.DigibugPrintPhotos" arg2="itemId=`$theme.item.id`" arg3="returnUrl=%CURRENT_URL%" useAuthToken=1}">print with digibig</a>
__SHOULD__ do the trick.Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
That's the one. It works flawlessly now. Thanks for everything!