|
Gallery Categoree
|
|
| Posted: 28 January 2008 01:05 AM |
[ Ignore ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
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.
|
|
|
|
|
|
| Posted: 28 January 2008 05:22 AM |
[ Ignore ]
[ # 1 ]
|
|
|
Summer Student
Total Posts: 13
Joined 01-08-2008
|
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
|
|
|
|
|
|
| Posted: 28 January 2008 11:04 AM |
[ Ignore ]
[ # 2 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
Well. That wasn’t the intended behaviour!! ;=)
Let me look into it.
|
|
|
|
|
|
| Posted: 28 January 2008 11:07 AM |
[ Ignore ]
[ # 3 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
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.
|
|
|
|
|
|
| Posted: 28 January 2008 02:37 PM |
[ Ignore ]
[ # 4 ]
|
|
|
Research Assistant
Total Posts: 609
Joined 06-29-2005
|
Digitalp - 28 January 2008 05:22 AM 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
|
|
|
|
|
|
| Posted: 28 January 2008 02:46 PM |
[ Ignore ]
[ # 5 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
Can someone else please try this (install it and check)?
Thanks
|
|
|
|
|
|
| Posted: 28 January 2008 02:49 PM |
[ Ignore ]
[ # 6 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
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.
|
|
|
|
|
|
| Posted: 28 January 2008 03:02 PM |
[ Ignore ]
[ # 7 ]
|
|
|
Summer Student
Total Posts: 13
Joined 01-08-2008
|
tbritton - 28 January 2008 02:37 PM
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.
|
|
|
|
|
|
| Posted: 28 January 2008 05:18 PM |
[ Ignore ]
[ # 8 ]
|
|
|
Grad Student
Total Posts: 98
Joined 06-22-2007
|
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?
|
|
|
|
|
|
| Posted: 28 January 2008 10:15 PM |
[ Ignore ]
[ # 9 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
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?
|
|
|
|
|
|
| Posted: 31 January 2008 07:26 PM |
[ Ignore ]
[ # 10 ]
|
|
|
Lab Technician
Total Posts: 1330
Joined 02-12-2003
|
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
|
|
|
|
|
|
| Posted: 31 January 2008 07:29 PM |
[ Ignore ]
[ # 11 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
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
|
|
|
|
|
|
| Posted: 31 January 2008 07:55 PM |
[ Ignore ]
[ # 12 ]
|
|
|
Lab Technician
Total Posts: 1330
Joined 02-12-2003
|
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
|
|
|
|
|
|
| Posted: 31 January 2008 08:10 PM |
[ Ignore ]
[ # 13 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
OK…I will check the file later once I have figured out what I want for dinner.
|
|
|
|
|
|
| Posted: 31 January 2008 08:48 PM |
[ Ignore ]
[ # 14 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
OK, there was a space before the first tag. Digitalp, try it now.
|
|
|
|
|
|
| Posted: 18 February 2008 11:24 AM |
[ Ignore ]
[ # 15 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
Bug fix so the Parent Category actually works!
Sorry about that.
|
|
|
|
|
|
| Posted: 18 February 2008 10:31 PM |
[ Ignore ]
[ # 16 ]
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
Added category_description.
|
|
|
|
|
|
|
|
Grad Student
Total Posts: 35
Joined 05-13-2002
|
A quick question about this…how does one get this plugin to work? I stuck it inside one of my templates and nothing is happening. I’m running EE Personal 1.6.3.
For instance, does it need to be nested inside another EE tag?
Any examples would be greatly appreciated.
|
|
|
|
|
|
|
|
Lab Technician
Total Posts: 1005
Joined 11-01-2002
|
gr00vy0ne - 07 June 2008 08:21 PM A quick question about this…how does one get this plugin to work? I stuck it inside one of my templates and nothing is happening. I’m running EE Personal 1.6.3.
When you say nothing is happening…what does your template look like? How are you using the tag?
For instance, does it need to be nested inside another EE tag?
No.
Any examples would be greatly appreciated.
Let me see if I can remember how it works and send you something.
|
|
|
|
|