DESIGNfromWITHIN / Flexibility

Flexibility - Fully functional MODX Revolution website. Quickstart projects by creating a fully working MODX Revolution website with just one package. Need MODX Revolution 2.2+
http://flexibilitymodx.com/
Other
35 stars 6 forks source link

Head Code causing conflict with Articles and some GetResource Calls #34

Open shopcoop opened 12 years ago

shopcoop commented 12 years ago

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

and correct output below.

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!!!

DESIGNfromWITHIN commented 12 years ago

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]]

frogabog commented 12 years ago

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.