Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    The _total won’t work here because no template runs if there are no items (_total = 0). If you check out the new Pods Block it has an option for customizing the text used when no items were found.

    The _position one here, can you verify this ran in the context of a list with one or more items displayed?

    Thread Starter timogoedeke

    (@timogoedeke)

    Hi Scott, thanks for your reply. I have a list of names and I can even test out the position by letting the pod template create the following scheme:

    {@item_name} ({@_position}/{@_total})

    This outputs the following: “Manager (1/3)”. So I made sure the fields work as supposed. It just doesn’t work inside of the if-tag.

    On the _total topic, I guess I can then also use the not_found parameter in the pods shortcode if there is no result?! I am not using the block editor.

    Cheers, Timo

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    I haven’t figured this out yet but for now I’ll just have to prioritize this for Pods 2.8.2. We have other regression fixes to release in 2.8.1 that take priority for now.

    Thanks for your patience, I hope this feature is more useful when it’s fully working for _position. Let me know if you determine that _total has the same problem for a value check above 0

    Thread Starter timogoedeke

    (@timogoedeke)

    Let me know if you determine that _total has the same problem for a value check above 0

    Yep, same problem. I’ll wait then for future updates. Pods is still awesome ??

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    Just a quick update that this issue was not yet addressed in the Pods 2.8.2 version that was released today. I’ll continue to look into it and follow up when I figure out where it’s breaking.

    Thread Starter timogoedeke

    (@timogoedeke)

    Thanks for letting me know.

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    I didn’t get to this in Pods 2.8.3 either, I’ll give it another look as soon as things calm down further ??

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    I ended up finding time tonight before bed to solve this. It’s in Pods 2.8.4 which is not due out until probably next week.

    You can get a copy of it here: https://github.com/pods-framework/pods/archive/refs/heads/release/2.8.4.zip

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    Pods 2.8.4 is now out and has a fix that addresses the issue reported here.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Special Field Notations’ is closed to new replies.