Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2006-08-03 19:51:11

lukepermsn
Member
From: london
Registered: 2004-07-15
Posts: 57
Website

Re: [plugin] [ORPHAN] chh_article_custom

This plug-in does work in list and individual article modes. I’m successfully using it to create a submenu on list and individual article pages by not assigning ‘form’ or ‘listform’ and simply using break, wraptag and class attributes to get a styled list of section related article titles.

However – it would be great to be able to assign a different style (like a ‘current’ class) to the currently viewed article in the list.

i.e. when I click an article title in the list, and go into individual article view to read it, the same article title in the list generated by ‘chh_article_custom’ appears differently somehow (showing it’s the currently navigated article.)

Not sure how possible this would be? it certainly doesn’t appear to be an option in the plug-in help… surely the plug-in output would realise what article is currently being shown in individual_article mode via it’s ID?

Would be great to get this sorted :-)

Last edited by lukepermsn (2006-08-03 20:17:34)


“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee

Offline

#122 2006-08-03 20:06:54

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] chh_article_custom

lukepermsn wrote:

i’m successfully using ‘chh_article_custom’ to create a submenu of section related articles on list and individual article pages. i was wondering if there was some clever way of making the item in the menu appear different if it is the currently navigated article. maybe something i can put in my menu form? any ideas? thanks!

Do you mean something <a href=“http://consking.com/article/”>like this ?</a>
(article menu too the right under the featured article header)

Last edited by marios (2006-08-03 20:08:04)


⌃ ⇧ < ⌃ ⇧ >

Offline

#123 2006-08-03 20:20:34

lukepermsn
Member
From: london
Registered: 2004-07-15
Posts: 57
Website

Re: [plugin] [ORPHAN] chh_article_custom

that’s funny! you responded to my original post whilst i was editing it to try and make it sound clearer. yeah, that’s exactly what i want to do – keep the article menu but make the currently viewed article appear different…


“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee

Offline

#124 2006-08-03 21:53:59

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] chh_article_custom

@lukepermsn, give me some time, to whip up together a decent explanation on how I implemented it.
That could take one or two days.
I’d like to document it in more detail, if you don’t mind.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#125 2006-08-04 16:14:09

lukepermsn
Member
From: london
Registered: 2004-07-15
Posts: 57
Website

Re: [plugin] [ORPHAN] chh_article_custom

sounds great marios. i look forward to reading it!

cheers,
Luke


“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee

Offline

#126 2006-08-08 16:27:06

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: [plugin] [ORPHAN] chh_article_custom

This is a really great plug-in which has solved a few organisational problems I had. Thanks.

There’s one small problem I’m having – on one sectio front page I’m using the tag <code>cch_article_custom</code> with the <code><txp:article_custom/></code>:

<code>
<txp:if_article_list>
<h3>Our Coaches</h3>
<txp:article_custom form=“cltc_list_form” category=“Coach” section=“coaching” sortby=“Posted” sortdir=“desc” />
<txp:else />
<txp:article form=“cltc_article_form” />
</txp:if_article_list>

<txp:if_article_list>
<h3>Coaching Sessions</h3>
<txp:chh_article_custom form=“cltc_article_form” listform=“cltc_list_form” section=“coaching” category=“Coaching-Session” children=“y” />
<txp:else />
<!— if a single article —>
<txp:article form=“cltc_article_form” />
</txp:if_article_list>
</code>

It lists the articles as expected, but then when the you click through it show the article twice! I suspect that this has something to do with the tag mixture and there’s some sort of recursive behaviour going on.

Can anyone advise?

Thanks.

Last edited by decoderltd (2006-08-08 16:29:33)

Offline

#127 2006-08-08 17:06:56

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [plugin] [ORPHAN] chh_article_custom

offhandedly, it looks like you have <txp:article form="cltc_article_form" /> outputing twice.
try this:?

<code>
<txp:if_article_list>
<h3>Our Coaches</h3>
<txp:article_custom form=“cltc_list_form” category=“Coach” section=“coaching” sortby=“Posted” sortdir=“desc” />
<h3>Coaching Sessions</h3>
<txp:chh_article_custom form=“cltc_article_form” listform=“cltc_list_form” section=“coaching” category=“Coaching-Session” children=“y” />
</txp:if_article_list>
</code>

<code>
<txp:if_individual_article>
<txp:article form=“cltc_article_form” />
</txp:if_individual_article>
</code>


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#128 2006-08-08 17:21:00

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: [plugin] [ORPHAN] chh_article_custom

Perfect! Thanks Alicson

Sometimes I think I’m never going to ‘get’ TXP, but little by little it’s coming together.

Offline

#129 2006-08-20 16:40:38

lukepermsn
Member
From: london
Registered: 2004-07-15
Posts: 57
Website

Re: [plugin] [ORPHAN] chh_article_custom

marios wrote:

give me some time, to whip up together a decent explanation on how I implemented it.
That could take one or two days. I’d like to document it in more detail, if you don’t mind.

found a solution: ‘glx_hl_current’ does a nice job of highlighting the currently viewed article with a list generated by ‘chh_article_custom’


“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee

Offline

#130 2006-08-23 19:11:19

hamba
Member
Registered: 2006-08-04
Posts: 22

Re: [plugin] [ORPHAN] chh_article_custom

Hi

I just installed this plugin and I’m getting the following errors
<code>tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: listform on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: searchform on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: pageby on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: category on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: section on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: excerpted on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: author on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: sortby on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: sortdir on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: month on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: keywords on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: frontpage on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: id on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: time on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: status on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: pgonly on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: searchall on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: searchsticky on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: offset on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: day on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: children on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: searchmode on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: strict_keywords on line 582

tag_error <txp:chh_article_custom listform=“default” /> -> Textpattern Notice: Unknown tag attribute: titlearticles on line 582</code>

here is my txp version no
Textpattern version: 4.0.3 (r1734)

any ideas as to why this is happening?

Cheers
hamba

Offline

#131 2006-08-23 19:33:27

hamba
Member
Registered: 2006-08-04
Posts: 22

Re: [plugin] [ORPHAN] chh_article_custom

never mind I got what I wanted from
<code><txp:article_custom form=“default” limit=“5” /></code>

Offline

#132 2006-08-23 20:07:54

lukepermsn
Member
From: london
Registered: 2004-07-15
Posts: 57
Website

Re: [plugin] [ORPHAN] chh_article_custom

hamba wrote:

I just installed this plugin and I’m getting the following errors

lol! did you make the plug-in Active? (click the ‘No’ on the right of the plug-in description in the plug-in list…)

Last edited by lukepermsn (2006-08-23 20:08:14)


“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee

Offline

Board footer

Powered by FluxBB