Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-08-29 14:12:51

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

How I can make sure, that this custom_field don't using anymore?

I have using custom_fields (custom_9) in some articles. But I think, this one custom_field I don’t really using in form or site-template.
I having search during the SQL-Database, but has not outputting this custom_field, where I using it for – only in the prefs for naming the custom_field.

How I can going sure, that I don’t using this custom_field in any form or site-template? How I can search to this inside backend of textpattern?

Offline

#2 2018-08-29 16:03:06

etc
Developer
Registered: 2010-11-11
Posts: 5,057
Website GitHub

Re: How I can make sure, that this custom_field don't using anymore?

You can try smd_where_used plugin and search for <txp:custom_field in forms and pages.

Offline

#3 2018-08-29 17:17:33

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

Re: How I can make sure, that this custom_field don't using anymore?

If you’ve already looked with phpmyadmin and have checked all rows, you are probably right.

What you could also do is add the following tags temporarily to one of your templates:

<txp:article_custom limit="99999" status="sticky" expired="1">
<txp:if_custom_field name="name_of_custom_field">
#<txp:custom_field name="name_of_custom_field" /># : <txp:article_id />
</txp:if_custom_field>
</txp:article_custom>
<txp:article_custom limit="99999" expired="1">
<txp:if_custom_field name="name_of_custom_field">
#<txp:custom_field name="name_of_custom_field" /># : <txp:article_id />
</txp:if_custom_field>
</txp:article_custom>

That should show you the custom field value between two #-signs along with the article id it is in. The duplicate entry is so that you also output sticky articles.


TXP Builders – finely-crafted code, design and txp

Offline

#4 2018-08-31 09:29:33

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: How I can make sure, that this custom_field don't using anymore?

thank you, etc and jacob.

for articles I have found in sql-database, which articles using this custom_field.
For me is important, which forms using this field for implementing in my website. I will try out the smd_where_used-Plugin. :)

Offline

#5 2018-08-31 09:39:16

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: How I can make sure, that this custom_field don't using anymore?

I found indeed a old form, which used the one custom_field. But this is depracted and not on my new website. Much thanks for help! :-)

Offline

Board footer

Powered by FluxBB