We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Gallery Categoree

Development and Programming

Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

This is my first plugin, please go easy on me!

This plugin, for use with the photo gallery module, has two main purposes: 1) to parse the URL so that you can use the category name instead of the category id 2) retrieve category information, such as total files, sub categories, etc

Get it here.

When you find an issue, please let me know. I will endeavour to fix it as fast as I can, but as I have two small kids and I am starting a new job next week, I may not get to it for a few days.

UPDATE: fixed a bug (Thanks Derek J) and added the category description.

       
Digitalp's avatar
Digitalp
13 posts
17 years ago
Digitalp's avatar Digitalp

Hi Erin.

I ‘ve tried it but it blocks the plugin manager page in the CP and shows an empty page. I am using the ExpressionEngine 1.6.2 (latest version).

It will be a very nice addition to Gallery, if you fixed it.

DigitalP

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

Well. That wasn’t the intended behaviour!! ;=)

Let me look into it.

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

Hmmm…I just tried the zipped version above and it seems to be working fine on my system.

I am not sure how to go about debugging this, so if any experts could chime in, I would appreciate it.

       
tbritton's avatar
tbritton
714 posts
17 years ago
tbritton's avatar tbritton
Hi Erin. I ‘ve tried it but it blocks the plugin manager page in the CP and shows an empty page. I am using the ExpressionEngine 1.6.2 (latest version). It will be a very nice addition to Gallery, if you fixed it. DigitalP

It is possible that your plugin manager page was already broken, and that you discovered that fact when you tried to add this plugin.

But if removing the plugin from the plugins folder makes your plugin manager work again, that would be proof positive that the plugin was the cause.

Is the latter situation so? (I once had conflicting plugins create this empty page behavior.)

Terry

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

Can someone else please try this (install it and check)?

Thanks

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

I just tried it on another completely separate EE install of mine and it loaded fine.

I would be interested to learn more about your situation.

       
Digitalp's avatar
Digitalp
13 posts
17 years ago
Digitalp's avatar Digitalp
It is possible that your plugin manager page was already broken, and that you discovered that fact when you tried to add this plugin. But if removing the plugin from the plugins folder makes your plugin manager work again, that would be proof positive that the plugin was the cause. Is the latter situation so? (I once had conflicting plugins create this empty page behavior.) Terry

Yes, Terry. That’s what I am saying.

       
Zlate's avatar
Zlate
75 posts
17 years ago
Zlate's avatar Zlate

Ok I installed it and read the usage, but still I don’t get it how to have the category name in my URL? Any sample code?

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

Sure, the plugin expects the category name to be the 3rd segment, so the URL has to look like http://mysite.com/gallery/cat/cat_name, where ‘cat’ is the template.

In that file, simply put:

{exp:gallery_categoree:categories gallery="{gallery_name}" parse="inward"}
[gallery code in here......]
{/exp:gallery_categoree:categories}

And then you have access to the {cat_id} variable, among others (see the docs).

Is that clear?

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

Erin,

You probably have a space or extra return character either after or before the opening and closing <?php ?> brackets. That is typically what will cause the fun blank page. If the Plugin page were broken we would be hearing about it before this. 😊

Jamie

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

The thing is, it seems to be working for at least one other person and me, and NOT working for a single individual.

I will check the file, however, to make sure.

Thanks

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

I get that, but its actually not unusual for that to be the case. You have different version of PHP running on all those machines.

It would be nice if PHP weren’t so different from minor version to minor version but sadly it often is.

Jamie

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

OK…I will check the file later once I have figured out what I want for dinner.

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

OK, there was a space before the first tag. Digitalp, try it now.

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.