Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2004-06-28 21:28:51

asarbogast
Member
From: Arcata, CA
Registered: 2004-05-21
Posts: 33
Website

Re: [plugin] [ORPHAN] chh_article_custom

Thanks so much for this plugin! It has allowed me to do a bunch of things I was having trouble with before, such as using articles to create an alphabetical department index.

I agree that is should be called <code><txp:super_article /></code>!.

Offline

#14 2004-06-29 06:37:35

takshaka
Archived Plugin Author
From: Below the Manson-Nixon line
Registered: 2004-06-02
Posts: 97
Website

Re: [plugin] [ORPHAN] chh_article_custom

v0.40 has appeared, ushering in more control over comments display and support for a live comment preview. Oh, there’s also a flipflop tag included.

Because I am endeavoring to keep the plugin a standalone, without need for mods to the txp core, there are a few things that remain sadly unimproved. I’m unable to add full Textile comments or affect popup comments, and the live preview still requires the usual preview/submit rigamarole.

<del>My web host is flaking out right now. You should’t have problems grabbing the plugin from the direct link above, but the related web pages may appear and disappear as mysqld stumbles along.</del>

Looks like my host has settled down. <del>Tonight</del> Eventually I’ll update the overview with a comments example to supplement the attribute reference.

Last edited by takshaka (2004-07-10 02:45:53)

Offline

#15 2004-07-09 20:34:38

Rufnex
Archived Plugin Author
From: Germany, Munich (Bavaria)
Registered: 2004-06-23
Posts: 51

Re: [plugin] [ORPHAN] chh_article_custom

@takshaka:

great plug-in!

i’ve a problem with the returned value .. i will build a list of categories wraped with &lt;li&gt; – tags .. so if i catch my form i got back the category wraped with &lt;li&gt;catname&lt;/li&gt;. but outside this i need &lt;ul&gt;..&lt;ul&gt;.

in my page i write something like:

<pre>
<txp:chh_article_custom form=“itsme” />
</pre>

the default form looks like:

<pre>
<li><txp:permlink><txp:title /></txp:permlink></li>
</pre>

and the itsme form looks like:

<pre>
<h3><txp:title /></h3>
<p><small><txp:permlink>#</txp:permlink> <txp:posted /></small></p>
<txp:body />
<hr size=“1” noshade=“noshade” />
</pre>

Oki .. when i open my section i got a list of all categories belong to this section. for e.g.

<pre>
<li>cat 1</li>
etc.
</pre>

but i miss this block wraped with ul-tags. wenn i write somethink like :

<pre>
<ul>
<txp:chh_article_custom form=“itsme” />
</ul>
</pre>

both the list an articles wraped with ul-tags.

Do you know a way to print the ul only at the start-page of a section?

i hope you understand my problem ;o)

Rufnex

Last edited by Rufnex (2004-07-09 20:37:21)

Offline

#16 2004-07-10 02:41:16

takshaka
Archived Plugin Author
From: Below the Manson-Nixon line
Registered: 2004-06-02
Posts: 97
Website

Re: [plugin] [ORPHAN] chh_article_custom

If you apply the fix in this thread you can use if_article_list:
<code>
<txp:if_article_list><ul></txp:if_article_list>
<txp:chh_article_custom form=“itsme” />
<txp:if_article_list></ul></txp:if_article_list>
</code>

Or you can use straight php:
<code>
<?php if (empty($GLOBALS[‘id’])) echo “<ul>”; ?>
<txp:chh_article_custom form=“itsme” />
<?php if (empty($GLOBALS[‘id’])) echo “</ul>”; ?>
</code>

Edit: Just fixed the post so the code displays properly.

Last edited by takshaka (2005-12-18 00:20:38)

Offline

#17 2004-07-10 23:16:48

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] [ORPHAN] chh_article_custom

Any way your plugin can be made to work with article custom fields?

Thanks
Lee

Offline

#18 2004-07-23 09:24:14

rajo
Member
Registered: 2004-03-13
Posts: 43

Re: [plugin] [ORPHAN] chh_article_custom

is there a way to show future dates with this plugin via the current month? If not, would you be willing to add this functionality in a future version.

Offline

#19 2004-07-23 16:20:09

takshaka
Archived Plugin Author
From: Below the Manson-Nixon line
Registered: 2004-06-02
Posts: 97
Website

Re: [plugin] [ORPHAN] chh_article_custom

> rajo wrote:
> is there a way to show future dates with this plugin via the current month? If not, would you be willing to add this functionality in a future version.

Can you give me an example? I’m not sure what you mean.

Offline

#20 2004-07-23 16:31:44

rajo
Member
Registered: 2004-03-13
Posts: 43

Re: [plugin] [ORPHAN] chh_article_custom

Basically I want to show future dates as upcoming events, but I want to show future dates that are relative to the current month instead of showing something first in the list that occurs months away. I guess I could achieve this just by making articles that occur way in the future to be in draft or hidden mode and then at the appropriate time make them “live”, I was just wondering if I could use this plugin to make things a little more automatic.

Offline

#21 2004-07-24 17:12:02

takshaka
Archived Plugin Author
From: Below the Manson-Nixon line
Registered: 2004-06-02
Posts: 97
Website

Re: [plugin] [ORPHAN] chh_article_custom

> rajo said:
> Basically I want to show future dates as upcoming events, but I want to show future dates that are relative to the current month instead of showing something first in the list that occurs months away.

Hmm. I think you’d be better off setting a relatively small limit for the list. Also, if you’re just showing future articles, you’d probably want to order them in ascending order instead of the default decending order (<code>sortdir=“asc”</code>).

Last edited by takshaka (2004-07-24 17:38:35)

Offline

#22 2004-08-05 17:42:58

asarbogast
Member
From: Arcata, CA
Registered: 2004-05-21
Posts: 33
Website

Re: [plugin] [ORPHAN] chh_article_custom

Does this plugin support override forms? I am not able to get them to work.

Thanks,
Andrea

Offline

#23 2004-08-06 04:32:34

takshaka
Archived Plugin Author
From: Below the Manson-Nixon line
Registered: 2004-06-02
Posts: 97
Website

Re: [plugin] [ORPHAN] chh_article_custom

Overrides originally worked in single-article mode but not in article lists (sorry, not documented). This was a fairly arbitrary decision since I haven’t had a use for override forms. My starting point was txp:article_custom; I just went along with the way it handled article lists.

Anyway, I’ve updated the plugin for anyone who needs more control over overrides. v0.41 adds a new attribute:

<code>allowoverride=“all”</code>

By default, chh_article_custom uses an article’s Override Form only in single-article mode. Article lists ignore it. Use <em>allowoverride</em> to change this behavior. The attribute value may be one of the following: <em>single</em>, <em>list</em>, <em>all</em>, or <em>none</em>.

Last edited by takshaka (2004-08-06 04:42:35)

Offline

#24 2004-08-06 15:12:36

asarbogast
Member
From: Arcata, CA
Registered: 2004-05-21
Posts: 33
Website

Re: [plugin] [ORPHAN] chh_article_custom

Works like a charm! Thanks so much for your quick response.

Andrea

Offline

Board footer

Powered by FluxBB