Hello guys/gals,
I havent messed with EE in a while so forgive my ignorance. IO just updated from 2.5.x to 2.10.1 and now my page which shows all of our projects based on categories shows all projects on all category pages. Here is the function i was using on 2.5.x which is now not working:
Any help identifying which command/EE code is no longer working with the new version would be much appreciated.
So after some testing it appears that EE is not recognizing that it is on a Category page…
When the code below is executed on a category page www.website.com/projects/worship/C5 it list all projects in the entire channel, not just the projects in the C5 category like it is supposed to.
{if segment_3}<!-- List of all Entries in a Category-->
{exp:channel:entries channel="projects" limit="20"}
...If I physically change the code as shown below and go to the same URL it prints out the projects in C5 category…
{if segment_3}<!-- List of all Entries in a Category-->
{exp:channel:entries channel="projects" category="5" limit="20"}
...This seems to be an issue with EE and not my code… am I missing something here? Is there some new obscure setting somewhere that i need to enable?
thanks,
Please everyone.. stop answering all at once </end sarcasm>
So after messing around int he control panel I found that when i go into the Administration -> Categories -> and select the “Projects” category, I cannot edit any of the categories. When i choose a category and select “Edit” i get the following Fatal error:
Fatal error: Call to undefined function EllisLab\ExpressionEngine\Library\Mime\finfo_open() in /home/user/EE_system_files/EllisLab/ExpressionEngine/Library/Mime/MimeType.php on line 117
any ideas on what is going on here?
The first issue is something different…
I’d consider using Low Seg2Cat to help you pull out the category you need to change
{exp:channel:entries channel="projects" limit="20"}into
exp:channel:entries channel="projects" category="{segment_3_category_id}" limit="20"}Note: code untested - might be {segment_3_cat_id} - can’t remember!
Thanks Jos,
that extension did the trick, but the {segment_3_category_id} call wasn’t working for me, but the {segment_category_ids} call worked just fine.
thanks you very much.
Do you happen to know a way around the finfo_open() issue. Unfortunately my host cannot enable fileinfo PHP extension.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.