Skip to content

Releases: BlakesHeaven/Auto-Archive-Menu-Plus-More

Configurable Sort Order

17 Feb 23:18
Compare
Choose a tag to compare

New - Both Parents and Children can be sorted either Ascending or Descending as directed by the Advanced General Setting, "Order content by" {Position/Date}. Sort Order Configurable in Plugin Settings.

Fixes an issue that needed the sorting of the menu reversing for the parents - especially in the Archive section to make sure the older items disappeared first.

The array $publishedPagesByDate has been dropped because it does not have a 'rawDate' entity to be used by the sorting. Now, "$parents = buildParentPages() " is used for both order by Date as well as order by Position. This reduced the code by quite a bit.

Removed deprecated variables and code refactoring.

Tested against 3.10.x. and 3.11.x

v3.9.0 - "Admin Stuff" section - 29/05/2019

29 May 21:37
eec2bfa
Compare
Choose a tag to compare
  • Fixes #4 ("Admin Stuff" section can't be restricted to logged in admin/editor) - Functionality added back in!!
  • Code tidied up so that if the user is not admin/editor role, then don't bother setting variables otherwise needed.
  • Fixes #2 - Finished "Show fill-in text if nothing is found within the upcoming section" - new functionality.
  • Dropdown menu added to 'Hidden' & 'Admin Stuff' category selection for ease of use - new functionality.
  • Admin - Plugin configuration fields rearranged & formatted to fit better using two columns.

Fixed for Bludit 3.0.0

14 Oct 22:05
Compare
Choose a tag to compare

Changes for plugin version 3.0.0 (aka fixed for Bludit 3.0.0 - 06/10/2018
amountOfItems now numberOfItems
$Language now $L - personally I'd prefer $Language, but keeping it in-sync.
$Url now $url
$Site now $site
$dbPages now $pages
$Login now $login
$pagesByParent now $parents
$pagesByChildren now $children

foreach ($staticPages as $pageKey) {	now	foreach ($staticPages as $page) {

Added checks for empty Lables - if (!empty($staticLabel)) {
added $staticPages = buildStaticPages();

Fixed the "Order content by" date to actually order by date, was previously only by position.

Removed "Admin Stuff" restriction for only Admin and Editors because Bludit 3 can't identify logged in user role.

2.3.2 (aka Added Admin Section) - 06/06/2018

06 Jun 20:02
Compare
Choose a tag to compare

Added a new menu section so that if an Admin or Editor is logged in an extra menu shows. Designed for Admin documentation to be added and hidden from the public.
NB: It's only a menu, pages are still accessible if the URL is known.
Aimed at normal Published pages so that Parent/Child relationship can be adopted.
Driven from a category of your choice.

Make compatible with Bludit Version 2.3.4

06 May 19:38
Compare
Choose a tag to compare

Fixes to make compatible with Bludit Version 2.3.4

The following changes were made in several places to plugin.php:

Set all instances of "$Parent" to "$parent"; ie lower case "p".

Also,
$pagesByParent = buildParentPages(); // added 2.3.4
//foreach($pagesByParent[PARENT] as $Parent) { // 2.2.1 removed
foreach($pagesByParent as $parent) { // 2.3.4 added

//if(!empty($pagesByParent[$Parent->key()])) { // 2.2.1 removed
if ($parent->hsChildren()) { // 2.3.4 added
$pagesByChildren = $parent->children(); // 2.3.4 added

//foreach($pagesByParent[$Parent->key()] as $child) { // 2.2.1 removed
foreach ($pagesByChildren as $child) { // 2.3.4 added

Developed for Bludit v2.2.1

05 May 20:23
Compare
Choose a tag to compare

This release was developed for Bludit v2.2.1 and is hopefully compatible with all 2.2.x versions

A version is currently being developed for Bludit v2.3.4 and hopefully all 2.3.x versions - the next release will follow once completed.