Discuss and get help with staggernation.com's plugins for Movable Type.
You are not logged in.
I am trying to use CheckLinks with RightFields.
Within the <MTCheckLinksHere> tags, I have tried the following tags for naming a few of my RightFields... but neither seems to work.
<$MTUrl1"$>
<$MTExtraField field="url1"$>
Is this possible? Any help appreciated.
Thanks.
Offline
There are a couple of things that aren't quite right in that code--the quotation mark in the first tag, and missing "Value" in the second.
<$MTUrl1$>
<$MTExtraFieldValue field="url1"$>
There may be an issue above and beyond that, but that would be the first thing to rule out.
Offline
Okay... fixed the errant quote... and added Value.... Thanks for spotting those.
I have deliberately put bad links in these fields to test this... and am still getting a blank output. Here is all of the code:
<MTCheckLinks>
<MTEntries lastn="2"><MTExtraFields>
<MTCheckLinksHere>
<$MTUrl1$>
<$MTUrl2$>
<$MTExtraFieldValue field="url3"$>
<$MTExtraFieldValue field="url4"$>
<$MTExtraFieldValue field="url5"$>
<$MTExtraFieldValue field="hmurl1"$>
</MTCheckLinksHere>
</MTExtraFields>
</MTEntries>
<MTBadLinks load_entries="1" omit_status="405">
<p><$MTBadLinkStatus trim_to="3"$>: <$MTBadLinkURL$><br>
Found in entry: "<$MTEntryTitle$>"</p>
</MTBadLinks>
</MTCheckLinks>
Offline
If you use that same MTEntries code, without the MTCheckLinksHere (in other words, so it will just display those fields instead of checking the links), what output do you get?
Offline
Got it! Thanks for that last suggestion.
My fields are simply urls (no html tags) ... and you are apparently looking for <a> tags... so ... to make it work ...looks like this:
<MTCheckLinks>
<MTEntries lastn="4"><MTExtraFields>
<MTCheckLinksHere>
<a href="<$MTUrl1$>"><$MTSite1$></a>
<a href="<$MTUrl2$>"><$MTSite2$></a>
</MTCheckLinksHere>
</MTExtraFields>
</MTEntries>
<MTBadLinks load_entries="1" omit_status="405">
<p><$MTBadLinkStatus trim_to="3"$>: <$MTBadLinkURL$><br>
Found in entry: "<$MTEntryTitle$>"</p>
</MTBadLinks>
</MTCheckLinks>
Ta dah!!! I never would have figured that out by myself without your help. Thanks!
Offline