![]() |
How do I put a custom block at the top of specific categories? Brian, You showed this to me back in the beta period but I think the thread was deleted when you went to RC :D What I'm trying to do (again) is add a banner on specific category pages and any image pages that belong to the specified category. Would/was it as simple as a template conditional? if (catid=x || catid=y || catid=z) {HTML code} Cheers, ~Regs. |
Re: How do I put a custom block at the top of specific categories? Yup, that should do the trick. |
Re: How do I put a custom block at the top of specific categories? Which templates and if you don't mind, what's the exact code (I'm great at pseudo-code, not so great at the real deal) :D Cheers, ~Regs. |
Re: How do I put a custom block at the top of specific categories? 'ADV_GALLERY_BROWSEIMAGES' <if condition="in_array($catid, array(X,Y,Z))"> |
Re: How do I put a custom block at the top of specific categories? Thanks Brian! I also added the code to the 'ADV_GALLERY_SHOWIMAGE' template... exactly what I was looking for. Cheers, ~Regs. |
Re: How do I put a custom block at the top of specific categories? You should probably use $image['catid'] in your showimage template. I may be wrong and just have forgotten that it's in there, but I don't believe that $catid is used there. |
Re: How do I put a custom block at the top of specific categories? Is there any downside to keeping it the original way? I ask because it is working fine as is :D Thanks again! ~Regs. |
Re: How do I put a custom block at the top of specific categories? Try going to one of the images from the What's New section (or anywhere really other than from browsing the category) and you shouldn't see the banner. |
Re: How do I put a custom block at the top of specific categories? Right you are :D And the updated code you provided works great, thanks! Now I'm off to make another support ticket for you as I'd like to try the new photopost import script you mentioned elsewhere on my other site :D Cheers, ~Regs. |
| All times are GMT -5. The time now is 04:11 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0