Hi all,
I have created a date TV called storypubs - using the widget Unixtime. I then want to use PHx to format it nicely.
Here is the call in the template.
<p>[*storypubs:date=`%d.%m.%Y`*]</p>
[*story*]
I am not getting anything back at all - just <p></p> in the source.
Any ideas?
TIA
If you want to use PHx to format the date, you have to drop the widget to format the output

(no need for it there)
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Thank you David,
But dropping the widget did not do the trick?
Any other ideas as to why it refuses to display - all docs are published, cache cleared, backticks all there....
Ahhh!
It should work, I use this quite often...
Where did you use the code ?
If it’s in a Ditto template be careful to use the placeholder syntax [+ .... +] and if not, is PHx correctly installed and working fine otherwise ?
Edit : Just realized that you’re using the syntax with a TV, while my use was with editedon, createdon and pub_date... maybe that’s the issue here.
Check that on the
PHx support thread
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Hi David,
Something went amiss with the PHx install I guess - it is bringing back a value now but a tad bit incorrectly!
Instead of todays date as per the TV’s input it is showing as: 31.12.1969
* Sorted - David, I put back the Unixtime widget on the TV and now it works as it should.
Ok thanks for the feedback, this could be handy
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
☆ A M B ☆
- 24,524 Posts
Your main menu would look a lot better without the dotted outline when it’s "active":
a:focus, a:active {outline:0;}
http://www.w3.org/TR/CSS21/ui.html
Very cool website
Another suggestion : I find it confusing that the :hover link of the menu are dimmer thant their :link state... I guess that an universal convention that shouldn’t be tempered with. I’d reverse it
Otherwise very smooth design, everything is carefully thought out and well executed, congrats !
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id