Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2008-02-24 18:25:06
- zoltandragon
- Member
- Registered: 2007-04-30
- Posts: 47
Re: linked custom_fields list
I changed the field name and the url variable to non-special characters, which produces triple amount of TXP error messages (as far as I can see, all of them related to the same line) – I’m clueless…: (It’s Hungarian, but I think the error messages are clear)
@A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: var on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: listform on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: searchform on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: pageby on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: category on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: section on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: excerpted on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: author on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: sortby on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: sortdir on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: month on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: keywords on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: frontpage on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: id on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: time on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: status on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: pgonly on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: searchall on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: searchsticky on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: offset on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: day on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: children on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: searchmode on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: strict_keywords on line 605
A következő tag hibát okozott: <txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” /> -> Textpattern Notice: Ismeretlen elem tulajdonság: titlearticles on line 605@
Offline
#14 2008-02-24 18:26:04
- zoltandragon
- Member
- Registered: 2007-04-30
- Posts: 47
Re: linked custom_fields list
By the way, I really appreciate your kind help – especially on Sunday :)
Offline
Re: linked custom_fields list
sorry forgot about the tag in tag. wrap asy_wondertag around it.
Offline
#16 2008-02-25 07:15:03
- zoltandragon
- Member
- Registered: 2007-04-30
- Posts: 47
Re: linked custom_fields list
Yes, it made the entire error message disappear :) But it did not help in making the specific data appear… all I get is now an (error-free, but) empty page when I click on the (properly working) link in the article that should bring me to the collection of a particular producer. I don’t know what the problem can be: clean urls, no special character, no error message, seems to be OK, and then – empty.
Offline
Re: linked custom_fields list
zoltandragon wrote:
empty.
for debugging something like this you’ll need to have a look at the tag trace. under admin > preferences set the production status to debugging. then on the page in question have a look at the relevant part in the source code to see how our tag constructs are behaving. keep in mind that i just wrote the code snippet in the forums, so it’s untested and not guaranteed to work. :) but in principle you should be able to get it working like this, i think the biggest hint was pointing to chs_ifurlvar…
Offline
#18 2008-02-25 08:57:30
- zoltandragon
- Member
- Registered: 2007-04-30
- Posts: 47
Re: linked custom_fields list
Strange… empty… no bugs… the generated html is:
@<h2>Az összes gyártó</h2>
<a href=”/gyartok/?gyarto=Austrotherm”>Austrotherm</a>
<a href=”/gyartok/?gyarto=Rockwool”>Rockwool</a>
<a href=”/gyartok/?gyarto=Ursa”>Ursa</a>
<a href=”/gyartok/?gyarto=Austrotherm”>Austrotherm</a>
<a href=”/gyartok/?gyarto=”></a>@
(where I created a section “gyartok” with a corresponding page template to call the code you kindly shared, and then in the article form I directed the link to it, and it all seems to work nicely, except that it produces an empty page with the above links – which bring back to this very same page again…)
Offline
#19 2008-02-25 09:03:37
- zoltandragon
- Member
- Registered: 2007-04-30
- Posts: 47
Re: linked custom_fields list
Oh, silly me, the links are created by the listing added – so the filtering via the tags doesn’t work (though as I added asy_wondertag, it stopped producing the errors, too).
Offline
Re: linked custom_fields list
again, look at the tag trace. it’s below the html in the source. (if production status is set to debugging)
Offline
#21 2008-02-25 09:58:17
- zoltandragon
- Member
- Registered: 2007-04-30
- Posts: 47
Re: linked custom_fields list
Okay, here’s what it says (I took out only my IP address, paranoia, I know…):
<!— Runtime: 0.0224 —>
<!— Query time: 0.003814 —>
<!— Queries: 12 —>
<!— Memory: 2847Kb, <txp:asy_wondertag>
<txp:chs_urlvar_default var=“gyarto”>
<txp:article form=“default_hoszigeteles” /> <!— here you put the default rendering —>
</txp:chs_urlvar_default>
<txp:chs_urlvar_exists var=“gyarto”>
<h2>A/z <txp:chs_urlvar_exists var=“gyarto” /> termékei</h2>
<txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” />” />
</txp:chs_urlvar_exists>
</txp:asy_wondertag> —>
<!— txp tag trace:
[SQL (0.000101): select name from txp_lang where lang=‘hu-hu’ limit 1]
[SQL (0.001408): select name, data from txp_lang where lang=‘hu-hu’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.000360): select name, code, version from txp_plugin where status = 1]
[SQL (0.000155): select title from txp_section where name=‘gyartok’]
[SQL (0.000099): select name from txp_section where `name` like ‘gyartok’ limit 1]
[SQL (0.000145): select * from txp_section where name = ‘gyartok’ limit 1]
[SQL (0.000391): select host from txp_log where ip=’…’ limit 1]
[SQL (0.000286): insert into txp_log set `time`=now(),page=’/gyartok/?gyarto=Austrotherm’,ip=’…’,host=’…’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0.000117): select user_html from txp_page where name=‘producers’]
[Oldal: producers]
<txp:css format=“link” />
<txp:css format=“link” n=“start_ie” />
<txp:output_form form=“search_input” />
[SQL (0.000101): select Form from txp_form where name=‘search_input’]
[Form: search_input]
<txp:site_url/>
<txp:category_list section=“hoszigeteles” wraptag=“ul” break=“li” />
[SQL (0.000119): select name, title from txp_category where type = ‘article’ and name not in(‘default’,‘root’) order by name ASC]
<txp:asy_wondertag>
</txp:asy_wondertag>
[ ~~~ secondpass ~~~ ]
—>
I have in the page template the following (just to make sure, as I have the feeling that I am messing up something…):
<txp:asy_wondertag>
<txp:chs_urlvar_default var=“gyarto”>
<txp:article form=“default_hoszigeteles” /> <!— here you put the default rendering —>
</txp:chs_urlvar_default>
<txp:chs_urlvar_exists var=“gyarto”>
<h2>A/z <txp:chs_urlvar_exists var=“gyarto” /> termékei</h2>
<txp:chh_article_custom gyarto=”<txp:chs_urlvar_exists var=“gyarto” />” />
</txp:chs_urlvar_exists>
</txp:asy_wondertag>
THANX!
Offline