Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] chh_article_custom
Found a “bug” in the chh_flipflop.
This is an example of the code from the page:
<txp:chh_article_custom form="project_list" category="Web" section="project" sortby="Title" sortdir="asc" listform="project_list" />
And this from the form:
<tr class="<txp:chh_flipflop odd="shift" even="normal" />">
However .. I have multiple <txp:chh_article_custom> on the page which all use the same listform and it seems as the chh_flipflop does not reset the count since the next list I show start with the corresponding next odd/even that the latest list would have.
Last edited by obeewan (2004-08-13 05:35:02)
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [plugin] [ORPHAN] chh_article_custom
I took action and updated the code of the plugin to go for my needs by adding the count to a global var instead (named $chh_article_custom_count since it had to be set there, not in the chh_flipflop).
Last edited by obeewan (2004-09-06 13:20:51)
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
#33 2004-09-06 07:30:34
- drewdrew
- New Member
- Registered: 2004-09-02
- Posts: 2
Re: [plugin] [ORPHAN] chh_article_custom
If I’m not mistaken, this wonderful plug-in doesn’t seem to accept wraptag or break. Is this by design? Any chance it could be added? I’m trying to avoid hard-coding a UL, for example, around this tag to produce the desired results. Don’t want to lave an empty UL floating out there if/when its criteria isn’t met.
Offline
#34 2004-09-06 12:02:42
- Gabe
- New Member
- Registered: 2004-09-06
- Posts: 5
Re: [plugin] [ORPHAN] chh_article_custom
Maybe comeone can help me out – I’m getting blanks with this:<code>
txp:chh_article_custom form=“bio_form” category=“bio” </code> – which attributes have to be set explicitly?
Offline
Re: [plugin] [ORPHAN] chh_article_custom
Gabe,
Does the form exist, correctly spelled and do your category have articles assigned to it? (Sounds basic but easy to miss).
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
#36 2004-09-06 14:59:43
- Gabe
- New Member
- Registered: 2004-09-06
- Posts: 5
Re: [plugin] [ORPHAN] chh_article_custom
Yep, even <code><txp:chh_article_custom form=“Single”></code> doesn’t seem to work, while <code><txp:article_custom form=“Single” ></code> works fine. The plugin is ‘Active’. I’m a complete beginner on using plugins – is there a classic mistakes list you could point me to?
Offline
#37 2004-09-06 15:34:40
- drewdrew
- New Member
- Registered: 2004-09-02
- Posts: 2
Re: [plugin] [ORPHAN] chh_article_custom
Gabe —
Perhaps you are trying to use chh_article_custom in an article context instead of an article list context? I just realized myself that most of the cool features of this plug-in only work in article list context.
Offline
#38 2004-09-06 18:45:44
- Gabe
- New Member
- Registered: 2004-09-06
- Posts: 5
Re: [plugin] [ORPHAN] chh_article_custom
drewdrew, that would be 100% corrrect! Lack of understanding of txp as a whole rather than plugins seems to be my failing – using <code><txp:chh_article_custom listform=“bio_form” category=“bio”/></code> got me exactly what I needed, which is an author bio at the head of a section. Many thanks!
Offline
Re: [plugin] [ORPHAN] chh_article_custom
I love you, man. Great plugin!
Offline
#40 2004-09-28 21:40:53
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] chh_article_custom
Hi, I’m using the plugin to show a random article on my front page, with this code:
<code>
<txp:chh_article_custom section=“article” listform=“title” offset=“16” limit=1 sortby=“rand()” />
</code>
The 5 most recent articles are displayed on my front page, and since I wanted the random article not to be one of these, I initially set offset to 5. When some of the most recent articles started to show up, I changed offset to 16, because among the most recent articles there are also articles in other sections. The 16 most recent contain 5 articles in section ‘article’.
But still from time to time one of those 5 is displayed. (And no, I haven’t been adding new articles…)
It’s not a big disaster to me, but if someone would know a solution I’d be grateful.
Last edited by doggiez (2004-09-28 21:43:05)
Offline
#41 2004-09-29 12:39:46
- Ray
- Member

- Registered: 2004-03-02
- Posts: 159
Re: [plugin] [ORPHAN] chh_article_custom
Very nice plugin. Just stumbled across it from <a href=“http://forum.textpattern.com/viewtopic.php?id=4012” alt=“Another post that mentions the chh_article_custom plugin”>another post</a>.
I gotta spend more time on the Txp forum again. Missing out on way too many great ideas… and people ; )
Offline
Re: [plugin] [ORPHAN] chh_article_custom
beautiful. thank you so much takshaka.
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#43 2004-10-28 14:05:10
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] chh_article_custom
(see my above post)
Am I that dumb? Does ‘offset’ really start counting from id nr. 1? In that case I assume there is no way to exclude a certain number of newest posts.
Offline
Re: [plugin] [ORPHAN] chh_article_custom
help!
i’m using this plug-in – and i just noticed it’s only displaying 10 articles in the list under any particular category…
the script i’m using is:
<code><txp:chh_article_custom section=“itineraries” sortby=“Title” sortdir=“asc” listform=“list” /></code>
nothing wierd there, huh?
this is the site:
the problem area is itineraries – particularly south america which should have about 14 displaying. they are all in the article list and set to ‘live’ in texpattern.
the max displayed is 10 everywhere else there is a long list of itineraries also…
any ideas??? it’s driving me, er, crazy now!
thx.
“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee
Offline
Re: [plugin] [ORPHAN] chh_article_custom
I believe 10 is the default, unless overriden by something like limit=“50”. Just change to whatever number you want.
Who’s gonna textdrive you home tonight?
Offline