I think you need to use pub_date instead of publishedon
ah, right. However, if that’s "custom TVs", then maybe it needs to be a TV and not the resource value.
Did you try [[+wf.publishedon ... ?
Susan, i had doubts about it too,
But the example given is: [[+my_TV]] which i understand as TV or settings resource fields (which are somewhat like reserved TV`s and we retrive them as same) pulled from each resource wayfinder rolling.
if we use it with `*` instead of `+` (as placeholder) it will give us the output of the tv for the page the snippet is called from.
correct me if i don’t getting this right.
Bob, i’ve tried that and it dosen’t work. I even tried all those options uncached, and still nothing.
Michael Shraibman( gOmp) | Freelance Design & Development |
impossible is nothing...
I haven’t looked at the Wayfinder code, but maybe it doesn’t set all fields as placeholders.
I’m sure you already did this, but if not, take a look in the DB and make sure the document you’re testing on *has* a published field setting.
What do you see if you include &debug=`1` in the parameters?
OK, I just took a look at the code and it looks like publishedon is *not* an available placeholder.
I can think of these options:
1. Hack the Wayfinder code
2. Create a publishedon TV with an @EVAL binding that gets the publishedon value (not sure this would work) or save the publishedon date in it manually (that would work).
3. Use getResources instead of Wayfinder.
4. Write a custom snippet to use instead of Wayfinder.
Worth mentioning that [[+hidemenu]] is also not an available placeholder in Wayfinder. Nor is [[+published]]. But why? These are perfectly useful for menu-based logic.
Wayfinder does use hidemenu to decide what to show but doesn’t set a placeholder for it. Since Wayfinder has to run uncached for every page, only the placeholders that people would want to actually display are set, in order to make it more efficient. It should be pretty easy to copy the Wayfinder code to your own snippet and change it to set any placeholders you want to use.