Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#151 2007-03-21 23:32:07
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] chh_article_custom
This is rather strange… some people seem to have had problems with chh_article_custom already since 4.0.3 while others say the plugin broke since 4.0.4.
It seems like somebody is using it with 4.0.4 though… how? It doesn’t work for me.
Thanks
what was that again…?
Offline
#152 2007-03-22 10:46:22
Re: [plugin] [ORPHAN] chh_article_custom
Hi feragnoli,
I kept the plug-in active after upgrading to 4.0.4 and it appears to function as before. However, if you have your production status (admin > preferences) set to ‘Testing’ it will throw up all manner of error messages, once set to ‘Live’ you no longer see these messages although the ‘error’ is still there.
To be honest I’m looking to replace it as it doesn’t appear to be supported anymore, but those multiple and parent categories options are very handy!
Offline
#153 2007-03-22 14:01:52
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] chh_article_custom
hello decoder, thanks for your reply.
indeed, my point is to have a site with only one section and have all the rest arranged by categories.
(why? because I think the final user of the site might get confused by the section/category difference…)
As for now, parent categories do’t really work, do they..?
Well, my problem is: the lugin seems not to output anything at all!
thanks!
what was that again…?
Offline
#154 2007-04-06 01:05:00
Re: [plugin] [ORPHAN] chh_article_custom
This Plugin works fine for me (no errors at all).
Textpattern: 4.0.4 (r1956)
PHP 5.2.1
Mysql: 5.0.24
If I can make one small suggestion. I needed a way to return the results from the current category using the wild card but on a single article page. As in a list of articles in the same category.
I have altered the library as follows:
function chh_sql_category ($category, $children=false, $conjunction='AND') {
global $pretext, $thisarticle;
$cats = is_array($category) ? $category : explode(',', $category);
#$cats = empty($category) ? array() : explode(',', $category);
// Wildcard expansion needs to be done before we expand children.
foreach ($cats as $i => $cat) {
// category="?"
// and by tacit extension, category="foo,bar,?" or category="?bar"
$cats[$i] = str_replace('?', $pretext['c'], $cat);
if (empty($pretext['c']) && !empty($thisarticle['category1'])) $cats[$i] = str_replace('?', $thisarticle['category1'], $cat);
}
Offline
#155 2007-05-19 16:27:39
Re: [plugin] [ORPHAN] chh_article_custom
Is it possible to use this plugin within an article form to show a list of articles published by the author of the article.
e.g. If textpattern shows the individual article view of an article of the author “mike” then below the article I want to show a list of other articles which were published by mike.
Offline
#156 2007-05-26 17:01:46
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] chh_article_custom
well, using the asy_wondertag plugin you can do that even with a regular <txp:article_custom /> tag (which by now is much more powerful than in the past).
in the article form just place something like:
<txp:asy_wondertag>
<txp:article_custom author="<txp:author />" />
</txp:asy_wondertag>
after your content and it should work.
Last edited by feragnoli (2007-05-26 17:02:12)
what was that again…?
Offline
#157 2007-07-03 14:56:49
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: [plugin] [ORPHAN] chh_article_custom
Hack to have chh_article_custom category-features work with txp:article_custom :
Install chh_article_library and activate it; edit publish.php (in textpattern folder) around line 607 to :
$category = (!$category) ? '' : chh_sql_category($category, true)." ";
No need to install chh_article_custom.
Quite a few requests to make this core have already been posted.
Last edited by guiguibonbon (2007-07-03 16:56:51)
Offline
#158 2007-07-03 15:16:40
Re: [plugin] [ORPHAN] chh_article_custom
hi feragnoli
i just tried your mentioned asy-wondertag solution. but the author="<txp:author />" generates the Real Name and not the Login-Name which is requested by article_custom.
Offline
#159 2007-07-03 16:47:13
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] chh_article_custom
I doubt this to be matter for a plugin but you might use something like this .
simple tag: <txp:nfe_author />
what was that again…?
Offline
#160 2007-07-03 19:15:01
Re: [plugin] [ORPHAN] chh_article_custom
Oh Yes! Thank you very much for this plugin. This is great!
Offline
#161 2007-07-03 19:46:56
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] chh_article_custom
well, you could actually just take that function and wrap it in a <txp:output_form ... /> tag between <txp:php> tags and get the same result.
if you’re interested in finding out about Txp’s variables you should read something like this to start with.
the variables are context-sensitive and that means that, for instance, the array ‘thisarticle’ will be available only in an article page or inside an article form which is output of an article-list form.
go on, and good luck
what was that again…?
Offline
#162 2007-07-16 04:23:45
Re: [plugin] [ORPHAN] chh_article_custom
Does this plugins support to display custom_field?
Why I try to use chh_custom_form and I want display my custom_field with this code
<txp:chharticle_custom limit="9999" section="Pemasaran" category="kavling-vgg" form="data-kavling" />
on my data-kavling form code,
<tr <txp:zem_nth step=1 of=2>class="on_tb"</txp:zem_nth>
<txp:zem_nth step=2 of=2>class="KT_even"</txp:zem_nth>>
<td><txp:custom_field name="Kawasan" /></td>
<td><txp:custom_field name="Kavling" /></td>
<td><txp:custom_field name="Luas" /></td>
<td><txp:custom_field name="Ukuran" /></td>
<td><txp:custom_field name="Angsuran Total" /></td>
<td><txp:custom_field name="Angsuran Bulan" /></td>
</tr>
And display Nothing :(
But when I used the original article_custom
The script running with perfect.
Why I try to used chh_article_custom? because I want use more than one category on that form.
Please tell me what’s wrong?
Offline
#163 2007-08-02 10:34:53
- diniscorreia
- Member

- From: Lisbon, Portugal
- Registered: 2007-07-18
- Posts: 19
Re: [plugin] [ORPHAN] chh_article_custom
I’m using the plugi with no problems at all with version 4.0.5.
I was getting the chh_article_sql() error – it just meant I hadn’t installed chh_article_lib. You can get it here
Cheers!
-Dinis
Last edited by diniscorreia (2007-08-02 10:41:01)
Offline
#164 2007-09-15 21:33:46
Re: [plugin] [ORPHAN] chh_article_custom
If in an individual article, how do I display articles of the same section and category1 of the current article being displayed?
Here’s what I’m trying:
<txp:chh_article_custom section="?" limit="99" listform="article_thumbs" category="?" />
Last edited by mattmikulla (2007-09-15 21:34:28)
Art Rogue – Fine Art Photography
Offline
#165 2007-10-07 20:22:19
- sraone77
- Member
- Registered: 2007-08-23
- Posts: 11
Re: [plugin] [ORPHAN] chh_article_custom
Why chh_article_custom with older/newer on my site doesn’t work?
you give a glance
<txp:chh_article_custom listform=“form1” offset=“7” sort=“custom_1 desc” section=“attualita,cronaca,politica,economia,lavoro,turismo” />
<txp:older>« Pag. precedente</txp:older> | <txp:newer>Pag. successiva »</txp:newer>
Offline