Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-11-09 21:04:49

ingleslenobel
Member
Registered: 2014-10-16
Posts: 88

diagnostic tool to see why custom_field not appearing?

Hello,

Can anyone suggest a diagnostic tool to see why my 19th+ custom field on the page won’t appear?

The code is fine, it is:

 <txp:if_custom_field name="linksside2url">
<li class="nodot"><a href="<txp:custom_field name="linksside2url" />"><txp:custom_field name="linksside2text" /></a></li>
</txp:if_custom_field>
<txp:if_custom_field name="linksside3url">
<li class="nodot"><a href="<txp:custom_field name="linksside3url" />"><txp:custom_field name="linksside3text" /></a></li>
</txp:if_custom_field>
<txp:if_custom_field name="linksside4url">
<li class="nodot"><a href="<txp:custom_field name="linksside4url" />"><txp:custom_field name="linksside4text" /></a></li>
</txp:if_custom_field>

The “2 series show fine but of the “3”“, linksside3url works but not linksside3 text.
I can see all these declared via extensions > custom fields, it’s not that

Here is an example – if you look at the source you see that has:

<li class="nodot"><a href="http://www.topazlabs.com/detail"></a></li>

Should be text in there

Thank you!!

Offline

#2 2014-11-09 21:09:28

ingleslenobel
Member
Registered: 2014-10-16
Posts: 88

Re: diagnostic tool to see why custom_field not appearing?

Appending it with the source debug data:

		[<txp:if_custom_field name="linksside1url">: true]
		<txp:custom_field name="linksside1url" />
		<txp:custom_field name="linksside1text" />
		<txp:if_custom_field name="linksside2url">
			[<txp:if_custom_field name="linksside2url">: true]
			<txp:custom_field name="linksside2url" />
			<txp:custom_field name="linksside2text" />
		</txp:if_custom_field>
		<txp:if_custom_field name="linksside3url">
			[<txp:if_custom_field name="linksside3url">: true]
			<txp:custom_field name="linksside3url" />
			<txp:custom_field name="linksside3text" />
		</txp:if_custom_field>
		<txp:if_custom_field name="linksside4url">
			[<txp:if_custom_field name="linksside4url">: false]
		</txp:if_custom_field>
		<txp:if_custom_field name="linksside5url">
			[<txp:if_custom_field name="linksside5url">: false]
		</txp:if_custom_field>

Offline

#3 2014-11-09 22:15:30

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: diagnostic tool to see why custom_field not appearing?

Your code looks okay to me. The only things I can think of:

  • Is the custom_field correctly spelled on the extensions tab?
  • Are you sure that you have text in the linksside3text custom_field in your article?
  • If it is filled in, try putting something innocuous in there – a simple word and nothing else – just in case something in your text is throwing it off (though that shouldn’t happen).

Sorry if they sound silly, but I know I can make those kinds of mistakes if it’s been a long day.


TXP Builders – finely-crafted code, design and txp

Offline

#4 2014-11-09 22:26:10

ingleslenobel
Member
Registered: 2014-10-16
Posts: 88

Re: diagnostic tool to see why custom_field not appearing?

Yeah – long day symptom, I know that one. Was my first thought – but no, not that. Tried the next one along too but that doesn’t show either.

Someone mentioned that I might have an old copy of the plugin although I did download it from github and it is dated 30/10/2014. Does that ring any bells with anyone?

Offline

#5 2014-11-09 22:36:58

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: diagnostic tool to see why custom_field not appearing?

If the custom field is there the plugin has done its job perfectly. You’re using just core tags to display their contents, nothing from the plugin.

If it is filled in, try putting something innocuous in there – a simple word and nothing else – just in case something in your text is throwing it off

Have you tried that? Selecting everything with the keyboard shortcut / menu item for that (not click-dragging)? Then deleting forward & backward several times to catch any hidden characters that might interfere there? And then filling in some “innocent, newborn” characters?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2014-11-09 22:54:46

ingleslenobel
Member
Registered: 2014-10-16
Posts: 88

Re: diagnostic tool to see why custom_field not appearing?

Sorry, not sure what you mean by core tags but yes, I’ve refilled, deleted, tried everything. The strange thing is the article “save” takes about 10s when those are filled in, as if it’s hanging somewhere. And reloading it once set is really slow too the first time. Maybe I try deleting and recreating them in the custom field extension and see if that makes any difference

Offline

#7 2014-11-09 23:02:56

ingleslenobel
Member
Registered: 2014-10-16
Posts: 88

Re: diagnostic tool to see why custom_field not appearing?

Well there you go, that’s a new one. Deleting them, remaking them and putting them in the same positions made it work. Whoddathunkit. Thanks all. Weird!

Offline

Board footer

Powered by FluxBB