Flexibility
Flexibility copied to clipboard
Head Code causing conflict with Articles and some GetResource Calls
Hi... my first Github Post :P I love this template and am using it for several amateur projects I am working on. I have noticed that this little piece in the
is causing conflicts with other modx addons. I don't quite understand why, but I find that removing it solves the issue. <meta name="description" content="[[*introtext:empty=`[[*content:strip_tags]]`:limit=`200`]]" />
This is basic Meta stuff... but when using Articles for example... the Article container will not display the template and css. Just the list of articles with the rowTpl... no colors nothing... while the same template unchanged is used through out the rest of the website without issue. Caused issue with GetResource call for homepage to display article summaries. It ported the GetResource results above the
My guess is it is some small piece of the line or my mistake from my novice understanding of modx(likely), however removing this line solved my problems on two separate occasions on two separate websites. So I thought I could at least share.
Keep up the great Work, very AWESOME!!!
Thanks, I am aware of this bug, I am planning to include a blog in Flexibility (using Articles) and hope to have this problem covered then...
You actually can use a meta description, just not the:
[[_introtext:empty=[[_content:strip_tags]]
:limit=200
]]
BTW, this can be quickly remedied bandaid like by simply filling in the Introtext field in the resource. A space (any character) will even fix it.
Not the best fix, but it works.