Plugin Forums

Discuss and get help with staggernation.com's plugins for Movable Type.

You are not logged in.

#1 2007-12-06 17:36:01

bfeldman
New member
Registered: 2007-12-06
Posts: 3

CheckLinks with RightFields

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

 

#2 2007-12-06 21:07:41

Kevin Shay
Administrator
Registered: 2005-11-22
Posts: 265
Website

Re: CheckLinks with RightFields

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

 

#3 2007-12-07 08:44:54

bfeldman
New member
Registered: 2007-12-06
Posts: 3

Re: CheckLinks with RightFields

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

 

#4 2007-12-07 14:01:56

Kevin Shay
Administrator
Registered: 2005-11-22
Posts: 265
Website

Re: CheckLinks with RightFields

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

 

#5 2007-12-07 14:24:35

bfeldman
New member
Registered: 2007-12-06
Posts: 3

Re: CheckLinks with RightFields

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

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson