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

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

Yeah, I don’t see any indication it works yet with EE 2.

       
esther7's avatar
esther7
7 posts
15 years ago
esther7's avatar esther7

nix that. wrong thread sigh

       
combinedmedia's avatar
combinedmedia
79 posts
15 years ago
combinedmedia's avatar combinedmedia

Hi,

I have a list in sidemenu of categories and entries form these categories. Some of categories will just have 1 entry so then I dont want to display this entry as the name it will be like a category name. Can I use entries_number plugin to work that out?

What I have now is not working:

{exp:weblog:category_archive weblog="about-us" style="nested" sort="desc" orderby="date"}

{categories}
<span><a href="http://{path=about-us/index}">» {category_name}</a></span>
{/categories}

{exp:entries_number category="{category_id}" weblog="about-us" site="1"}
{entry_titles}
{if entries_number > 1}
<a href="http://{path=about-us/index}">» {title}</a>
{/if}
{/entry_titles}
{/exp:entries_number}

{/exp:weblog:category_archive}

Thank you, Agata

       
artminister's avatar
artminister
159 posts
15 years ago
artminister's avatar artminister

More and more feature requests will make this plugin an exact clone of exp:weblog:entries tag 😛

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

Hi Agata,

Your code is not possible since {category_id} variable is not supported inside {entry_titles}{/entry_titles} variable pair.

       
combinedmedia's avatar
combinedmedia
79 posts
15 years ago
combinedmedia's avatar combinedmedia

Hi Laisvunas,

Yes, I know it is not supported. I found another way:

{exp:weblog:categories weblog="about-us" style="linear" show_empty="no" disable="category_fields"}
<ul class="nav_cat_archive"><li><span class="{category_url_title}"><a href="http://{path=about-us/index}">{category_name}</a></span>
<ul>
{exp:weblog:entries weblog="about-us" category="{category_id}" disable="trackbacks|member_data|pagination|categories" url_title="not {category_url_title}" dynamic="off"}
    <li><a href="http://{site_url}about-us/{url_title}">» {title}</a></li>
{/exp:weblog:entries}
</ul>
</li>
</ul>
{/exp:weblog:categories}

So all is working 😊

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

Laisvunas, will this plugin be updated to work with EE2?

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

Hi Todd,

I will update at some stage this plugin to be compatible with EE2, but currently I have no definite plans.

So, if you need this plugin to be compatible with EE2 now, consider converting it by yourself.

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

Ok, thanks for the update Laisvunas. I don’t have a current need for it… but might in the future and at that time I might peruse the code to see if I can figure out how to convert it. Never done that before.

       
vosSavant's avatar
vosSavant
380 posts
15 years ago
vosSavant's avatar vosSavant

Hey Laisvunas,

Is it possible to add the “search=” parameter to your plugin? I’m trying to get an entry count where the result is limited to entries that match a particular custom field.

Wonderful stuff, by the way.

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

Hi,

Good idea.

I will have it in mind when releasing a new version of this plugin.

       
vosSavant's avatar
vosSavant
380 posts
15 years ago
vosSavant's avatar vosSavant

Thanks, Laisvunas. How often do you get around to updating your plugins? I see you have about 800 😊

       
First 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.