Skip to content

Conversation

@finnlewis
Copy link
Member

No description provided.

millnut and others added 7 commits June 14, 2024 17:45
…missions

Fix #24: fails to install because of scheduled transitions permissions
* Add next/previous navigation

* Fixing tests

* Added space between chevron and text

* Update tests

* Update tests

* Added missing functions in .module

* Added missing localgov_blogs_theme

* update to tests

* Update to twig

* Updated Test to use localgov_base theme

* Solved testing failure?

* Reworked to use localgov_blog_date to order posts

* Removed redundant code

* Coding Standards and Class does not exist

* More coding standards

* Coding standards (last one?)

* Class naming standards and patch correction

* Delete src/plugin/block/BlogPrevNextBlock.php

Delete `BlogPrevNextBlock.php` from `src/plugin/block` already placed in `src/Plugin/Block`

* Fix missing posts in next prev block

- Use blog channel as a condition
- set the template name correctly
- Use the node->id as a cache tag

* Removed Font-Awesome references

* Adding [first attempt at] tests

* Coding standards on PrevNextBlockTest.php

* Coding standards

* Add initial Readme

* Test that a localgov blog post next previous links follow channel logic

Adds a second blog channel and alternate the posts between them and check
the correct next and previous links are established.

* Fix next prev block for blog posts on the same day

- Adds test to check that blog posts on the same day follow next / prev logic
- Amend the next / prev block by allowing for search of same day posts, using
  the created time as the secondary sort order.
  This involves finding all posts including the current that could be valid,
  and then searching the resultant array to find the next / previous.

* fixes typo

* Resolving test failures

* resolving test failures

* resolving test failures

* resolving test failures

* Resolve ordering of imports

* resolving import ordering

---------

Co-authored-by: Andy Broomfield <andy.broomfield@brighton-hove.gov.uk>
Co-authored-by: Finn Lewis <finn@opencode.uk>
Co-authored-by: Mark Conroy <mark@mark.ie>
@finnlewis finnlewis merged commit a4a030a into release-1.x Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants