Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2005-05-28 11:45:10

grassi3000
New Member
Registered: 2004-12-04
Posts: 8

Re: [plugin] [ORPHAN] chh_article_custom

Hi
I tried out your plugin, because I wanted an ouput like that:
categoryname
article
article
article

My code, where I thought this must be the output looks like that:
chh_article_custom category=“Philosophie” listform=“list”
where “Philiosophie” is the name of the category.
The form list simply makes an permlink out of the title of an article

The problem is, that the output only shows the Titles of the articles, but no category name. Maybe you can help me with that (obviously I’m new to txp, so maybe I’m only overseeing a little fact)

btw … if it is necessary to know, I’m using the rc3 of v.1.0
(how can i post an textpattern code in this forum without it being wiped out in the final post?
thx for help
g3k

Last edited by grassi3000 (2005-05-28 11:47:56)

Offline

#50 2005-05-28 12:57:01

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] chh_article_custom

chh_article_custom doesn’t output the category name. I have this on my page:

<code><h3>Category 1</h3>
<txp:chh_article_custom category=“category 1” listform=“list” /></code>
<code><h3>Category 2</h3>
<txp:chh_article_custom category=“category 2” listform=“list” /></code>

<br />
etcetera… If you don’t have too many categories that should be no problem.

You can show code by wrapping it in < code > < /code > tags (without the spaces).

EDIT: <code><txp:article_custom></code> would work just as well here I think.

Last edited by doggiez (2005-05-28 12:58:22)

Offline

#51 2005-05-28 13:20:17

grassi3000
New Member
Registered: 2004-12-04
Posts: 8

Re: [plugin] [ORPHAN] chh_article_custom

thx for your quick answer. i thought about such a workaround, but maybe there is a way to make things like I wanted to.

Can you give me instructions, how I could use the txp:article to make such a navigation? (i didn’t manage to find much information about the tags on the web)

Offline

#52 2005-05-28 17:41:37

grassi3000
New Member
Registered: 2004-12-04
Posts: 8

Re: [plugin] [ORPHAN] chh_article_custom

Oh, what I forgot to mention … the category tags should link to an overview of the articles of the category

Offline

#53 2005-05-28 17:42:36

grassi3000
New Member
Registered: 2004-12-04
Posts: 8

Re: [plugin] [ORPHAN] chh_article_custom

Oh, what I forgot to mention …
the category tags should link to an overview of the articles of the category

Offline

#54 2005-05-28 23:30:03

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

Re: [plugin] [ORPHAN] chh_article_custom

wonder if anyone has looked at or would be willing to look at this plugin and possibly fix the double-url error that has been happening since RC3. it’s been tackled in zem_link.


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

Offline

#55 2005-05-29 22:05:49

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] chh_article_custom

> grassi3000 wrote:

> Can you give me instructions, how I could use the txp:article to make such a navigation? (i didn’t manage to find much information about the tags on the web)

This is what I have. For this list of articles per category I have a seperate section (“inhoud”).
In my page template for this section:

<code><h4>Opvoeding en Training (<txp:mdn_count category=“Opvoeding en Training” />)</h4>
<p><txp:article_custom form=“artikellijst” limit=“100” category=“Opvoeding en Training” section=“artikel” sortby=“Title” sortdir=“asc” /></p>
<h4>Over boeken (<txp:mdn_count category=“Over boeken” />)</h4>
<p><txp:article_custom form=“artikellijst” limit=“100” category=“Over boeken” section=“artikel” sortby=“Title” sortdir=“asc” /></p></code>
…etcetera

<br />
My form “artikellijst”:

<code><txp:zem_link title=”%s”><txp:title /></txp:zem_link><br /></code>

<br />
Then for the single article (section “artikel”) the tag in the page template is <code><txp:article section=“artikel” form=“single” limit=“1” /></code>.

My page is here.
Is this sort of what you meant?

EDIT: I don’t use chh_article_custom at the moment if there need to be permlinks because it doesn’t output correct urls. But otherwise I prefer it to the default article tags.

Last edited by doggiez (2005-05-29 22:08:42)

Offline

#56 2005-06-18 21:41:26

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] chh_article_custom

Offline

#57 2005-06-23 19:25:58

arkham
Member
Registered: 2005-03-27
Posts: 102
Website

Re: [plugin] [ORPHAN] chh_article_custom

> lee wrote:

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

Ditto that question for me.

Offline

#58 2005-06-26 23:41:01

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [plugin] [ORPHAN] chh_article_custom

This is outputting the article name twice as the permlink, and hence is not working…

Page contains:

<txp:chh_article_custom section="portfolio" category="icon" listform="portfolio_list" form="portfolio_item" />
<br />
form: portfolio_item

<code>
<h1><txp:permlink><txp:title /></txp:permlink></h1>
<center><txp:article_image /></center>
<p><txp:body /></p>
</code>

<br />

form: portfolio_list

<code>
<txp:permlink><txp:zem_article_thumb /></txp:permlink>
</code>

<br />

It’s making the links:

http://www.mysite.com/tp/Portfolio/article-namearticle-name

instead of

http://www.mysite.com/tp/Portfolio/article-name

How can I stop this? If I use the normal txp:article_custom the links are constucted properly (they do not ‘work’ though as article_custom cannot display a single article, unlike chh_article_custom), but I need to specify categories. Please help!

Edit: Fixed!

Followed this, didn’t see it before (yes, I did search!):

http://forum.textpattern.com/viewtopic.php?pid=54248#p54248

I installed zem_link, followed that and it’s working well.

Last edited by BlueMamba (2005-06-27 10:12:08)

Offline

Board footer

Powered by FluxBB