Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-07-10 11:26:00
- edmungo
- Member
- Registered: 2006-07-10
- Posts: 12
New default (old override) form shows ok in preview, not when live
I had an override form that I use for all my articles so I put the override form code into the default form so that I don’t need to use an override. This works fine when I preview from the TXP admin panel but when I check the live site it’s not working, as far as I can tell the live site is still using the old default article form. Any ideas?
Offline
#2 2006-07-10 13:44:50
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: New default (old override) form shows ok in preview, not when live
I am having a simlar problem. I make changes to the default form but none of them show up on the live site.
Also, weird things are happening when I punch in <code><txp:excerpt></code>, which gets wrapped in two nested sets of <code><p></code> tags, even though my form clearly puts no tag around the excerpt tag. I am only having this problem with the default form. If I override., then everything works perfectly.
If it makes any difference at all, I am using <code><txp:if_article_list></code> in my form to handle both exceprts and full articles.
Offline
#3 2006-07-10 20:40:08
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: New default (old override) form shows ok in preview, not when live
Okay, so you turned off the form override for your article and re-saved it? Are you sure you’re not seeing a cached version of your site (force a browser refresh)?
Offline
#4 2006-07-11 12:47:58
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: New default (old override) form shows ok in preview, not when live
Cleaned out my cache and even tried in a few other browsers…still wigging out on me. Its almost as if the database refuses to update the code. I dont see any of the changes I made unless I override the default form. Bizarre!
Offline
#5 2006-07-11 17:33:27
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: New default (old override) form shows ok in preview, not when live
Okay, edmungo and Ace of Dubs, please post a full tag trace.
Offline
#6 2006-07-13 01:10:35
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: New default (old override) form shows ok in preview, not when live
Here you go:
bc..
<!— txp tag trace:
[SQL (0.002242): select name from `txp_lang` where lang=‘en-gb’ limit 1]
[SQL (0.013818): select name, data from `txp_lang` where lang=‘en-gb’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.002574): select name, code from `txp_plugin` where status=‘1’]
[SQL (0.001030): select * from `txp_section` where name = ‘default’ limit 1]
[SQL (0.000808): select user_html from `txp_page` where name=‘default’]
[Page: default]
<txp:output_form form=“doctype” />
[SQL (0.000833): select form from `txp_form` where `name` = ‘doctype’ limit 1]
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_section name=”“>
[<txp:if_section name=”“>: true]
<txp:sitename/>
</txp:if_section>
</txp:if_article_list>
<txp:css n=“main”/>
<txp:output_form form=“navMain” />
[SQL (0.000807): select form from `txp_form` where `name` = ‘navMain’ limit 1]
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_section name=”“>
[<txp:if_section name=”“>: true]
<txp:sitename/>
</txp:if_section>
</txp:if_article_list>
<txp:chh_article category=“Releases,Compilations” form=“default” listform=“excerpt” />
[SQL (0.000718): select name from `txp_section` where on_frontpage != ‘1’]
[SQL (0.001323): select count(*) from `textpattern` where 1 and Status=‘4’ AND Posted < now() AND ( (Category1 = ‘Releases’ OR Category2 = ‘Releases’) OR (Category1 = ‘Compilations’ OR Category2 = ‘Compilations’) )and Section != ‘search’ and Section != ‘gigs’]
[SQL (0.002170): select *, unix_timestamp(Posted) AS uPosted from `textpattern` where 1 and Status=‘4’ AND Posted < now() AND ( (Category1 = ‘Releases’ OR Category2 = ‘Releases’) OR (Category1 = ‘Compilations’ OR Category2 = ‘Compilations’) )and Section != ‘search’ and Section != ‘gigs’ ORDER BY Posted desc LIMIT 0, 10]
[SQL (0.000761): select Form from `txp_form` where `name` = ‘excerpt’ limit 1]
[Form: excerpt]
[article 17]
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:posted/>
<txp:excerpt/>
<txp:if_comments>
[<txp:if_comments>: false]
<txp:permlink/>
<txp:comments_invite/>
</txp:if_comments>
<txp:permlink/>
[article 12]
[SQL (0.004609): select Form from `txp_form` where `name` = ‘New_Article’ limit 1]
[Form: New_Article]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:posted/>
<txp:excerpt/>
<txp:if_comments>
[<txp:if_comments>: false]
<txp:if_comments_allowed>
[<txp:if_comments_allowed>: false]
</txp:if_comments_allowed>
</txp:if_comments>
<txp:permlink/>
</txp:if_article_list>
[article 11]
[Form: New_Article]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:posted/>
<txp:excerpt/>
<txp:if_comments>
[<txp:if_comments>: false]
<txp:if_comments_allowed>
[<txp:if_comments_allowed>: false]
</txp:if_comments_allowed>
</txp:if_comments>
<txp:permlink/>
</txp:if_article_list>
[article 7]
[SQL (0.002552): select Form from `txp_form` where `name` = ‘New_Release’ limit 1]
[Form: New_Release]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
<txp:custom_field name=“Artist” />
<txp:if_custom_field name=“Featuring”>
[<txp:if_custom_field name=“Featuring”>: true]
<txp:custom_field name=“Featuring” />
</txp:if_custom_field>
</txp:permlink>
<txp:permlink>
<txp:custom_field name=“HCM” />
</txp:permlink>
<txp:custom_field name=“Season” />
<txp:zem_prblock class=“ext” target=”_blank” rel=“external_site”>
<txp:excerpt/>
</txp:zem_prblock>
<txp:permlink/>
<txp:permlink/>
</txp:if_article_list>
[article 6]
[Form: New_Release]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
<txp:custom_field name=“Artist” />
<txp:if_custom_field name=“Featuring”>
[<txp:if_custom_field name=“Featuring”>: false]
</txp:if_custom_field>
</txp:permlink>
<txp:permlink>
<txp:custom_field name=“HCM” />
</txp:permlink>
<txp:custom_field name=“Season” />
<txp:zem_prblock class=“ext” target=”_blank” rel=“external_site”>
<txp:excerpt/>
</txp:zem_prblock>
<txp:permlink/>
<txp:permlink/>
</txp:if_article_list>
[article 5]
[Form: New_Release]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
<txp:custom_field name=“Artist” />
<txp:if_custom_field name=“Featuring”>
[<txp:if_custom_field name=“Featuring”>: true]
<txp:custom_field name=“Featuring” />
</txp:if_custom_field>
</txp:permlink>
<txp:permlink>
<txp:custom_field name=“HCM” />
</txp:permlink>
<txp:custom_field name=“Season” />
<txp:zem_prblock class=“ext” target=”_blank” rel=“external_site”>
<txp:excerpt/>
</txp:zem_prblock>
<txp:permlink/>
<txp:permlink/>
</txp:if_article_list>
[article 4]
[Form: New_Release]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
<txp:custom_field name=“Artist” />
<txp:if_custom_field name=“Featuring”>
[<txp:if_custom_field name=“Featuring”>: false]
</txp:if_custom_field>
</txp:permlink>
<txp:permlink>
<txp:custom_field name=“HCM” />
</txp:permlink>
<txp:custom_field name=“Season” />
<txp:zem_prblock class=“ext” target=”_blank” rel=“external_site”>
<txp:excerpt/>
</txp:zem_prblock>
<txp:permlink/>
<txp:permlink/>
</txp:if_article_list>
[article 3]
<txp:output_form form=“vendors” />
[SQL (0.001044): select form from `txp_form` where `name` = ‘vendors’ limit 1]
<txp:if_custom_field name=“AudioCDVinyl” val=“AudioCDVinyl”>
[<txp:if_custom_field name=“AudioCDVinyl” val=“AudioCDVinyl”>: false]
</txp:if_custom_field>
<txp:if_custom_field name=“AudioCDVinyl” val=“AudioCD”>
[<txp:if_custom_field name=“AudioCDVinyl” val=“AudioCD”>: false]
</txp:if_custom_field>
<txp:if_custom_field name=“AudioCDVinyl” val=“AudioVinyl”>
[<txp:if_custom_field name=“AudioCDVinyl” val=“AudioVinyl”>: true]
</txp:if_custom_field>
<txp:if_custom_field name=“AudioCDVinyl” val=“Audio”>
[<txp:if_custom_field name=“AudioCDVinyl” val=“Audio”>: false]
</txp:if_custom_field>
<txp:chh_if_data>
[<txp:chh_if_data>: true]
<txp:chh_article_custom wraptag=“li” category=“Compilations,Reviews” HCM=“002” />
[SQL (0.001838): select *, unix_timestamp(Posted) AS uPosted from `textpattern` where 1 and Status=‘4’ AND Posted < now() AND ( (Category1 = ‘Compilations’ OR Category2 = ‘Compilations’) OR (Category1 = ‘Reviews’ OR Category2 = ‘Reviews’) ) AND ( custom_3 LIKE ‘002’) ORDER BY Posted desc LIMIT 0, 10]
[<txp:chh_if_data>: false]
</txp:chh_if_data>
[Form: New_Release]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
<txp:custom_field name=“Artist” />
<txp:if_custom_field name=“Featuring”>
[<txp:if_custom_field name=“Featuring”>: true]
<txp:custom_field name=“Featuring” />
</txp:if_custom_field>
</txp:permlink>
<txp:permlink>
<txp:custom_field name=“HCM” />
</txp:permlink>
<txp:custom_field name=“Season” />
<txp:zem_prblock class=“ext” target=”_blank” rel=“external_site”>
<txp:excerpt/>
</txp:zem_prblock>
<txp:permlink/>
<txp:permlink/>
</txp:if_article_list>
[article 2]
[Form: New_Release]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
<txp:custom_field name=“Artist” />
<txp:if_custom_field name=“Featuring”>
[<txp:if_custom_field name=“Featuring”>: false]
</txp:if_custom_field>
</txp:permlink>
<txp:permlink>
<txp:custom_field name=“HCM” />
</txp:permlink>
<txp:custom_field name=“Season” />
<txp:zem_prblock class=“ext” target=”_blank” rel=“external_site”>
<txp:excerpt/>
</txp:zem_prblock>
<txp:permlink/>
<txp:permlink/>
</txp:if_article_list>
<txp:output_form form=“search” />
[SQL (0.004365): select form from `txp_form` where `name` = ‘search’ limit 1]
<txp:article_custom form=“navReleases” limit=“6” category=“Releases” />
[SQL (0.016477): select *, unix_timestamp(Posted) as uPosted from `textpattern` where 1 and Status=‘4’ and Posted < now() and ((Category1=‘Releases’) or (Category2=‘Releases’)) order by Posted desc limit 0, 6]
[SQL (0.001184): select Form from `txp_form` where `name` = ‘navReleases’ limit 1]
[Form: navReleases]
[article 7]
<txp:custom_field name=“HCM” />
<txp:permlink>
<txp:custom_field name=“Artist” />
<txp:title/>
</txp:permlink>
[article 6]
<txp:custom_field name=“HCM” />
<txp:permlink>
<txp:custom_field name=“Artist” />
<txp:title/>
</txp:permlink>
[article 5]
<txp:custom_field name=“HCM” />
<txp:permlink>
<txp:custom_field name=“Artist” />
<txp:title/>
</txp:permlink>
[article 4]
<txp:custom_field name=“HCM” />
<txp:permlink>
<txp:custom_field name=“Artist” />
<txp:title/>
</txp:permlink>
[article 3]
<txp:output_form form=“vendors” />
[SQL (0.001470): select form from `txp_form` where `name` = ‘vendors’ limit 1]
<txp:if_custom_field name=“AudioCDVinyl” val=“AudioCDVinyl”>
[<txp:if_custom_field name=“AudioCDVinyl” val=“AudioCDVinyl”>: false]
</txp:if_custom_field>
<txp:if_custom_field name=“AudioCDVinyl” val=“AudioCD”>
[<txp:if_custom_field name=“AudioCDVinyl” val=“AudioCD”>: false]
</txp:if_custom_field>
<txp:if_custom_field name=“AudioCDVinyl” val=“AudioVinyl”>
[<txp:if_custom_field name=“AudioCDVinyl” val=“AudioVinyl”>: true]
</txp:if_custom_field>
<txp:if_custom_field name=“AudioCDVinyl” val=“Audio”>
[<txp:if_custom_field name=“AudioCDVinyl” val=“Audio”>: false]
</txp:if_custom_field>
<txp:chh_if_data>
[<txp:chh_if_data>: true]
<txp:chh_article_custom wraptag=“li” category=“Compilations,Reviews” HCM=“002” />
[SQL (0.002435): select *, unix_timestamp(Posted) AS uPosted from `textpattern` where 1 and Status=‘4’ AND Posted < now() AND ( (Category1 = ‘Compilations’ OR Category2 = ‘Compilations’) OR (Category1 = ‘Reviews’ OR Category2 = ‘Reviews’) ) AND ( custom_3 LIKE ‘002’) ORDER BY Posted desc LIMIT 0, 10]
[<txp:chh_if_data>: false]
</txp:chh_if_data>
<txp:custom_field name=“HCM” />
<txp:permlink>
<txp:custom_field name=“Artist” />
<txp:title/>
</txp:permlink>
[article 2]
<txp:custom_field name=“HCM” />
<txp:permlink>
<txp:custom_field name=“Artist” />
<txp:title/>
</txp:permlink>
<txp:feed_link label=“RSS” />
<txp:feed_link label=“Atom” flavor=“atom” />
<txp:output_form form=“footer” />
[SQL (0.002582): select form from `txp_form` where `name` = ‘footer’ limit 1]
<txp:php>
</txp:php>
Offline
#7 2006-07-13 01:19:01
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: New default (old override) form shows ok in preview, not when live
There’s no <txp:article /> tag on your page.
<txp:article_custom /> doesn’t use the override form. That’s a feature, not a bug.
Alex
Offline
#8 2006-07-13 01:31:23
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: New default (old override) form shows ok in preview, not when live
Must be something else. My page does indeed have txp:article
<code>
<txp:output_form form=“doctype” />
<link rel=“stylesheet” href=”<txp:css n=“main”/>” type=“text/css” media=“screen” />
<title><txp:page_title /></title>
</head>
<body id=“home”>
<txp:output_form form=“navMain” />
<div id=“content1of2”>
<h2>Label News</h2>
<txp:article form=“default” listform=“excerpt” />
…</code>
I have to add that none of the changes to default article form show up on the live site. Same problem as original poster
Last edited by Ace of Dubs (2006-07-13 01:32:52)
Offline
#9 2006-07-13 02:37:51
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: New default (old override) form shows ok in preview, not when live
That’s not what your tag trace says: it says you’re using chh_article.
Offline
#10 2006-07-13 16:22:37
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: New default (old override) form shows ok in preview, not when live
Okay..so I just made a fresh install of TXP..no plugins whatsoever.
Edit: no plugins are installed, but I am using chh_if_data on a few forms. One of them have been used in this example, but strangely, that’s not the one giving me trouble! Just to be sure I deleted said forms andthe problem persists
I am calling up my articles like so…
<code><txp:article form=“default” listform=“excerpt” category=“releases” limit=“7” /></code>
and still getting the same problem.
Any change I make to default article form refuses to show up on the live site.
However, if I take the very same code from my default form, paste it into “New_Form”, and then override on my article, it displays perfectly.
I hope this is not a bug, but if there are any doubts here is another tag trace…
bc..
<!— txp tag trace:
[SQL (0.001606): select name from `txp_lang` where lang=‘en-gb’ limit 1]
[SQL (0.013359): select name, data from `txp_lang` where lang=‘en-gb’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.002527): select name, code from `txp_plugin` where status=‘1’]
[SQL (0.001581): select name from `txp_section` where `name` like ‘label’ limit 1]
[SQL (0.004287): select * from `txp_section` where name = ‘label’ limit 1]
[SQL (0.004915): select user_html from `txp_page` where name=‘label’]
[Page: label]
<txp:output_form form=“doctype” />
[SQL (0.009335): select form from `txp_form` where `name` = ‘doctype’ limit 1]
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:if_section name=”“>
[<txp:if_section name=”“>: false]
<txp:sitename/>
<txp:section title=“1” />
[SQL (0.003655): select title from `txp_section` where name=‘label’]
</txp:if_section>
</txp:if_article_list>
<txp:css n=“main”/>
<txp:page_title/>
<txp:output_form form=“menu_main” />
[SQL (0.001336): select form from `txp_form` where `name` = ‘menu_main’ limit 1]
<txp:if_article_list>
[<txp:if_article_list>: true]
</txp:if_article_list>
<txp:article form=“default” listform=“excerpt” category=“releases” limit=“7” />
[SQL (0.002858): select count(*) from `textpattern` where 1 and Status=‘4’ and Posted < now() and Section = ‘label’]
[SQL (0.001671): select *, unix_timestamp(Posted) as uPosted from `textpattern` where 1 and Status=‘4’ and Posted < now() and Section = ‘label’ order by Posted desc limit 0, 7]
[SQL (0.004896): select Form from `txp_form` where `name` = ‘excerpt’ limit 1]
[Form: excerpt]
[article 3]
[SQL (0.000834): select Form from `txp_form` where `name` = ‘New_Release’ limit 1]
[Form: New_Release]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
<txp:custom_field name=“Artist” />
<txp:if_custom_field name=“Featuring”>
[<txp:if_custom_field name=“Featuring”>: false]
</txp:if_custom_field>
</txp:permlink>
<txp:permlink>
<txp:custom_field name=“HCM” />
</txp:permlink>
<txp:custom_field name=“Season” />
<txp:zem_prblock class=“ext” target=”_blank” rel=“external_site”>
<txp:excerpt/>
</txp:zem_prblock>
<txp:permlink/>
<txp:permlink/>
</txp:if_article_list>
[article 2]
[SQL (0.000819): select Form from `txp_form` where `name` = ‘New_Article’ limit 1]
[Form: New_Article]
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:posted/>
<txp:excerpt/>
<txp:if_comments>
[<txp:if_comments>: false]
<txp:if_comments_allowed>
[<txp:if_comments_allowed>: false]
</txp:if_comments_allowed>
</txp:if_comments>
<txp:permlink/>
</txp:if_article_list>
<txp:output_form form=“search” />
[SQL (0.000820): select form from `txp_form` where `name` = ‘search’ limit 1]
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:if_individual_article>
[<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:feed_link label=“RSS” />
<txp:feed_link label=“Atom” flavor=“atom” />
<txp:output_form form=“footer” />
[SQL (0.000904): select form from `txp_form` where `name` = ‘footer’ limit 1]
<txp:php>
</txp:php>
[ —- secondpass —- ]
—>
Last edited by Ace of Dubs (2006-07-13 16:26:40)
Offline
#11 2006-07-13 22:44:49
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: New default (old override) form shows ok in preview, not when live
Any change I make to default article form refuses to show up on the live site.
You’re using the ‘excerpt’ form for the article list.
Put the form name as a heading in each form, e.g. <h3>default form</h3>, <h3>excerpt form</h3>, etc. That’ll make it clearer what’s happening.
Alex
Offline
#12 2006-07-15 15:11:43
- Ace of Dubs
- Member

- Registered: 2006-04-17
- Posts: 446
Re: New default (old override) form shows ok in preview, not when live
Temporary lapse of stupidity is over, thanks to you guys
Its working perfectly now.
Offline