pdoCrumbs not using tplHome chunk

I am using the following pdoCrumbs call

[[!pdoCrumbs?
&tplHome=breadcrumbs-other-contexts-home-tpl
&showAtHome=1
&showHome=1
&wrapIfEmpty=1
]]

breadcrumbs-other-context-home-tpl

<li class="breadcrumb-item">
	<a href="[[~1]]">Home</a>
</li>
<li class="breadcrumb-item">
	<a href="[[+link]]">[[+menutitle]]</a>
</li>

But the Result is just using the standard tpl chunk so I am not getting the “Home” link to display.

Thanks
Roy

I can’t immediately see why this doesn’t work.
What version of MODX, pdoTools and PHP are you using?


Also, when inserting code or the HTML-content of a chunk in this forum, please use a code-block by putting lines with three back-ticks at the start and at the end of your code/chunk-content.

```//line with 3 back-ticks at the beginning
// your code or chunk content here
```//line with 3 back-ticks at the end

Otherwise it’s unclear what the actual content of the chunk is.

MODX 3.1.2 on MODXCloud
pdoTools 3.0.2-pl
php. 8.3

I am displaying different versions of the breadcrumbs depending if the page is in the web context or in another context.

The Template has the following to determine which breadcrumb chunk to use:

[[!If?
       &subject=`[[*context_key]]`
       &operator=`EQ`
       &operand=`web`
       &then=`[[!$breadcrumbs-web-context]]`
       &else=`[[!$breadcrumbs-other-contexts]]`
]]
``

I hope this helps.

OK, now I am really confused. I had been placing debug info in the chunks and templates to determine where the error was occurring. The debugging info (like the text “in-chunk-x”) was to see each chunk called. For a while all debugging text was displaying except the text in chunk- breadcrumbs-other-context-home-tpl

So I went in and deleted all the debug text in the chunks except for the breadcrumbs-other-context-home-tpl chunk. It just started working. It might have been a caching issue, but not sure on that as I cleared the cache multiple times, made all calls uncached.

So I am left confounded but it is working perfectly now.

@halftrainedharry thanks for your assistance. Your input to the forums is VERY BENEFICIAL, I really appreciate all your replies on my and other’s posts.

Roy