Hi,
I released version 2.4 of Entries List plugin.
In this release the possibility of using weblog id numbers as the values of “weblog” parameter was added.
Now you can use weblog names or weblog ids as the values of this parameter; you can even mix weblog names and weblog ids, e.g. weblog=”weblog_name1|10|weblog_name2|15|weblog_name3”.
Hi,
I released version 2.6 of Entries List plugin.
In this release:
1) added optional parameter “count_start_on”. It is for use together with “sort_separately” parameter. In case the latter has the value “weblogs”, it allows you to specify which weblog counting should start from. In case sort_separately” has the value “categories”, it allows you to specify which category counting should start from. You can use pipe character to stack several weblog short names or several category id numbers, e.g. if count_start_on=”weblog3|weblog6|weblog10” then counting of weblogs will start when the plugin will output entry posted into any of those weblogs.
2) added optional parameter “count_stop_before”. It is for use together with “sort_separately” parameter. In case the latter has the value “weblogs”, it allows you to specify which weblog counting should stop before. In case sort_separately” has the value “categories”, it allows you to specify which category counting should stop before. You can use pipe character to stack several weblog short names or several category id numbers, e.g. if count_start_on=”16|88|111” then counting of categories will stop before the plugin will output entry posted into any of those categories.
3) added variable {entries_list_weblog_count}. It outputs count number (1, 2, 3 etc.) of the weblog whose entry is being displayed. Weblogs are counted when parameter “sort_separately” has the value “weblogs”. Only non-empty weblogs are counted.
4) added variable {entries_list_category_count}. It outputs count number (1, 2, 3 etc.) of the category whose entry is being displayed. Categories are counted when parameter “sort_separately” has the value “categories”. Only non-empty categories are counted.
5) added variable {next_entry_weblog_count}. It outputs count number (1, 2, 3 etc.) of the weblog into which next entry is posted. Weblogs are counted when parameter “sort_separately” has the value “weblogs”.
6) added variable {next_entry_category_count}. It outputs count number (1, 2, 3 etc.) of the category into which next entry is posted. Categories are counted when parameter “sort_separately” has the value “categories”.
7) added variable {previous_entry_weblog_count}. It outputs count number (1, 2, 3 etc.) of the weblog into which previous entry is posted. Weblogs are counted when parameter “sort_separately” has the value “weblogs”. Only non-empty weblogs are counted.
8) added variable {previous_entry_category_count}. It outputs count number (1, 2, 3 etc.) of the category into which previous entry is posted. Categories are counted when parameter “sort_separately” has the value “categories”. Only non-empty categories are counted.
9) added variable {entries_list_weblog_count_total}. It outputs total number of weblogs counted. Weblogs are counted when parameter “sort_separately” has the value “weblogs”. Only non-empty weblogs are counted.
10) added variable {entries_list_category_count_total}. It outputs total number of categories counted. Categories are counted when parameter “sort_separately” has the value “categories”. Only non-empty categories are counted.
11) added variable {entries_list_sort_separately_iteration}. It outputs iteration number (1, 2, 3 etc.) of the weblog or category being processed. Iteration number is assigned to weblogs when parameter “sort_separately” has the value “weblogs”. Iteration number is assigned to categories when parameter “sort_separately” has the value “categories”. Iteration number is assigned both to empty and non-empty weblogs and categories.
Hi,
I released version 2.8 of Entries List plugin (version 2.7 were not released publicly).
New features
1) “per_page” parameter - Allows you to specify how many items should be displayed on one page. This parameter should net be confused with “limit” parameter. While “per_page” parameter specifies how many items should be displayed on one page, the “limit” parameter specifies how many items should be displayed at all, that is on all pages if there will be pagination. If “sort_separately” parameter has the value “weblogs” or “entries”, then the value of “limit” parameter applies to each weblog or category separately.
2) “max_links” parameter - Allows you to specify how many pagination links should be displayed. Default value is “2”.
3) “entry_date” variable now can have “date_format” parameter.
4) “entries_list_count” variable. It outputs count number of the entries being displayed. If five entries are being displayed, then for the fourth entry the {entries_list_count} variable would have a value of “4”.
5) “entries_list_absolute_count” variable. It outputs absolute count number of the entries being displayed by the tag, including those entries on previous pages (if using pagination). If five entries are being displayed per page, then for the fourth entry on the second page the {entries_list_absolute_count} variable would have a value of “9”
6) “entries_list_separate_count” variable. It is used when parameter “sort_separately” has the value “weblogs” or “categories”. Outputs count number of the entries; entries of each weblog or category are counted separately.
7) “next_entry_date” variable; can have “date_format” parameter.
8) “previous_entry_date” variable; can have “date_format” parameter.
9) {entries_list_paginate_top}{/entries_list_paginate_top} and {entries_list_paginate_bottom}{/entries_list_paginate_bottom} variable pairs. Variables available for use within these variable pairs are: {enties_list_current_page}, {enties_list_total_pages} and {enties_list_pagination_links}.
Hi!
I love you plugins! Thanks!
Quick questions on this one:
Do I put this plugin inside or outside weblog:entries tag?
I am looking for an alternative to the stock {paginate} single entry links. Could you give me an example for prev/next single entry page linking?
Does this plugin accept url_title? I am trying to setup single entry prev/next linking, but my url structure is unconventional… The stock prev/next is not working for me. 😊
Does this plugin work with the latest EE version? I am getting these Notices:
Notice: Undefined variable: conds3 in /home2/uname/public_html/system_folder/plugins/pi.entries_list.php on line 1157 Notice: Undefined variable: conds3 in /home2/uname/public_html/system_folder/plugins/pi.entries_list.php on line 1158 Notice: Undefined variable: conds3 in /home2/uname/public_html/system_folder/plugins/pi.entries_list.php on line 1159
This is the code:
{exp:entries_list weblog="{weblog}"}
{next_entry_url_title}
{/exp:entries_list}
Thanks! Cheers, M
Man, your plugins are cool! I think I am able to get the prev/next single entry links using something like this (put inside weblog:entries tag):
{exp:entries_list weblog="{weblog}" entry_id="{entry_id}" limit="1"}
{next_entry_title}
{/exp:entries_list}
{/exp:weblog:entries}
But I am still getting that undefined variable notice… I know notices are not that big of a deal, but I think I may poke around your plugin to see if I can fix… Seems like there is probably just a spot where $condsX vars need to be initialized. Or, am I doing things wrong?
Thanks!
Hi! Me again. 😊
For a quick fix, I was able to supress the notices by using the @ error control operator, for example:
$output = @$FNS->prep_conditionals($output, $conds3);
$output = @str_replace('{entries_list_weblog_count}', $conds3['entries_list_weblog_count'], $output);
$output = @str_replace('{entries_list_category_count}', $conds3['entries_list_category_count'], $output);
$output = @str_replace('{entries_list_sort_separately_iteration}', $conds3['entries_list_sort_separately_iteration'], $output);
I think I noticed other notices when using your example code from your first post… But I have only had time to trouble shoot prev/next linking.
Anyway, loving this plugin! Just what I was looking for. Kinda wish the built-in prev/next worked as well as this plugin does. :D
Thanks! M
Hello,
I am noticing a problem with the date/time output.
Using EE entry_date tag:
{entry_date format="%m/%d/%Y @ %g:%i%a"}
I get this output:
07/09/2009 @ 5:35pm
And using entries_list_entry_date:
{entries_list_entry_date date_format="%Y/%m/%d @ %g:%i%a"}
I get this:
07/10/2009 @ 12:35am
I have tried using date_localize=”yes”, but that appears to not change anything.
Any tips? For now, I will probably use PHP to account for the offset.
Thanks! M
EDIT/UPDATE #1:
I set the server offset to “420” via “CP Home”›”Admin”›”System Preferences”›”Localization Settings”, and that seemed to sync the two date tags, but now EE thinks that I am on East Coast time. :(
EDIT/UPDATE #2
Well, for those interested…
In order to figure out my server time, I used:
echo date("m/d/Y @ g:ia");
Which outputs this:
07/14/2009 @ 3:39am
Currently, my local time is 12:39am.
Since I am -8:00, I set my Server Time Zone under “Localization Settings” via the CP to UTC -5:00 with no server offset time.
Long story short, I am using this PHP to compensate for the time diff:
<?php echo date("m/d/Y @ g:ia", (strtotime('{entries_list_entry_date date_format="%Y-%m-%d %H:%i:%s %O"}') - 10800)); ?>
Where the “- 10800” is 3 hours in seconds.
Unfortunately, my solution feels very hackish… I hope that I am not missing a plugin/control panel setting somewhere? :D
EDIT/UPDATE #3
Also, here is my final code for prev/next entries (I put the below inside weblog:entries tag):
{exp:entries_list weblog="{weblog}" entry_id="{entry_id}" aliases_only="yes" date_format="%m/%d/%Y"}
{if entries_list_total_results > 0}
<div class="paginate">
{if next_entry_title != ""}
<a href="http://{path=%27/entry/<?php">_ < {next_entry_title}_ </a>
{/if}
{if (next_entry_title != "") AND (previous_entry_title != "")} | {/if}
{if previous_entry_title != ""}
<a href="http://{path=%27/entry/<?php">_ {previous_entry_title} >_ </a>
{/if}
</div>
{/if}
{/exp:entries_list}
The structure of my EE single entry URIs look like so:
http://site.come/entry/2009/06/28/url-title/
Hence, my date comments from above.
Cheers, M
Hi Laisvunas! Thanks for the reply, I really appreciate it. 😊
Hi mhulse, I will check if there is any bug after a couple of weeks, when I will be back at home. Cheers, Laisvunas.
Wow, that would be great! 😊
Of course, no rush… The solution I have found is working great. This, and all of your other, plugins are amazing! Many many thanks for sharing with the rest of us.
Have a great day! Cheers, Micky
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.