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

Plugin: Entries Number

Development and Programming

notoryious's avatar
notoryious
70 posts
about 16 years ago
notoryious's avatar notoryious

Trying to figure out how to display a top list of categories. For example, I have a site with 50 total categories. I want to list out only the “Top 5” categories, meaning the categories that have the most entries that belong to them. Anyone know how I would go about doing this?

Could this plugin do somegthing like this?

Thanks in advance for any help.

       
Laisvunas's avatar
Laisvunas
879 posts
about 16 years ago
Laisvunas's avatar Laisvunas

Hi notoryious,

This plugin can be used (together with some EE tag or plugin) to display number of entries for each category, but how to display only “Top 5” categories, I do not know.

It seems that it would be a good feature request to add to Weblog Category Archive Tag the parameter “orderby_categories” which would accept the value “entries_number”.

Currently it seems that to achieve what you need a new plugin should be written.

       
Laisvunas's avatar
Laisvunas
879 posts
about 16 years ago
Laisvunas's avatar Laisvunas

Hi,

I released version 1.7.1 of Entries Number plugin.

In this release a bug was fixed. Because of that bug entries were counted incorrectly in situations when “category” parameter contained two or more “&” operators.

Everyone who use “&” operators in “category” parameter is recommended to upgrade.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
about 16 years ago
Ryan M.'s avatar Ryan M.

Why are there two different files to download in the first thread? What is “entries_number2”?

       
Laisvunas's avatar
Laisvunas
879 posts
about 16 years ago
Laisvunas's avatar Laisvunas

Hi Ryan,

It is not allowed to nest tags of the same plugin. Entries Number2 plugin is created to go around this restriction. Having installed both Entries Number and Entries Number2 plugins it is possible to write such code as this:

{exp:entries_number category="6" weblog="not weblog1|weblog4" site="1"}
{if entries_number==0}
Some code
{exp:entries_number2 category="9" weblog="weblog5|weblog8" site="1"}
{if entries_number2>0}
Some code
{/if}
{/exp:entries_number2}
Some code
{/if}
{/exp:entries_number}

If there is no need to nest exp:entries_number tags, then just use single file of Entries Number plugin.

       
web@sewanee's avatar
web@sewanee
18 posts
15 years ago
web@sewanee's avatar web@sewanee

Since updating to 1.6.8 build 20091201, I’ve been having issues that may point to a wider parsing issue with curly braces (detailed in this thread). These problems were also found when using the {count} variable within a {exp:weblog:entries} nested inside a {exp:entries_number}. The {count} variable was being ignored in a conditional. The “fixes” promulgated in the other thread did not make things work when inside an {exp:entries_number} call.

       
Mogra's avatar
Mogra
19 posts
15 years ago
Mogra's avatar Mogra

very nice plugin, it works fine but I still miss what as already been suggested, that is to add a filter via a custom_field content. So that we can have counted the number of entries which have a specific value in a specific field, for a specific category, as it is stated in this post:

Hi again Laisvunas, Your plugin is working perfectly! I was wondering though… Would you be able to add this parameter to your plugin (search:field_name=)? ie:
search:field="fieldvalue"
Thanks, Ryan

thank you for any possible change… mogra

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas

Hi,

What’s the point of having a filter via a custom_field content? Why not submit the entry to certain category?

       
Mogra's avatar
Mogra
19 posts
15 years ago
Mogra's avatar Mogra
Hi, What’s the point of having a filter via a custom_field content? Why not submit the entry to certain category?

Then you have to maintain the categories and not simply let the author to fill the custom fields the content they want and only after count the entries…

       
smartpill's avatar
smartpill
456 posts
15 years ago
smartpill's avatar smartpill
Hi, What’s the point of having a filter via a custom_field content? Why not submit the entry to certain category?

We have an events calendar that uses custom fields for the event sponsor’s name as well as location. So allowing people to sort by those fields is very helpful. Same with a zipcode/postal code field. Categories wouldn’t be appropriate.

       
Danny T.'s avatar
Danny T.
426 posts
15 years ago
Danny T.'s avatar Danny T.

Has anybody ever tried this with related/reverse related entries?

       
Todd D.'s avatar
Todd D.
460 posts
15 years ago
Todd D.'s avatar Todd D.

Thanks Laisvunas! This plugin fixed a very specific problem we were having and saved me a bunch of time. Good stuff!

       
ryanloomis's avatar
ryanloomis
2 posts
15 years ago
ryanloomis's avatar ryanloomis

Can anyone confirm that this plugin should go into “system > expressionengine > plugins” directory?

If so, what might be a reason for it not appearing in the plugins admin panel?

Thanks!

       
Todd D.'s avatar
Todd D.
460 posts
15 years ago
Todd D.'s avatar Todd D.
Can anyone confirm that this plugin should go into “system > expressionengine > plugins” directory? If so, what might be a reason for it not appearing in the plugins admin panel? Thanks!

What version of EE are you using?

In 1.6.x you would put it in the system / plugins directory.

       
ryanloomis's avatar
ryanloomis
2 posts
15 years ago
ryanloomis's avatar ryanloomis

I am using 2.0.1 public beta. Maybe the plugin is not compatible yet?

       
First 2 3 4 5

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.