Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2005-08-28 16:12:12

atrox
Member
From: London, UK
Registered: 2004-07-20
Posts: 12
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

loid, Yes, kemie is right. I forgot to mention that plugins needs to be run from form. Try and tell me if it worked.

Offline

#17 2005-08-28 16:14:45

loid
Member
Registered: 2005-03-09
Posts: 38

Re: Custom field as an article_custom attribute for keywords [Hack]

> kemie wrote:

> loid, it needs to be within an article form, i think.

– doh! -

Beauty! Thanks Kemie, that’s it of course.

And Atrox, your plugin rocks! Well done!

Offline

#18 2005-08-28 23:39:04

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

I am trying to get my head around this and I am having trouble:

Here is what I have done.

I wrote an article titled “photo”, keyword “photo”, assigned to section “about”
I wrote an article titled “details”, keyword “details”, assigned to section “about”
I wrote an article titled “more info”, keyword “more”, assigned to section “about”

Then I wrote a fourth article titled “all of them” and put “photo, details, more” in the custom field titled “sidebar”

I put this in the page about:
<code>
<div id=“content”>
<txp:article form=“keyword” />
</div><!—end content —>
</code>

This is the form “keyword”
<code>
<txp:article_keywords customfield=“sidebar” />
</code>

Here is the about page

All the articles show up fine (accept “all of them” – which I think is correct), but what I want is thumbs to all the articles. So, how would I incorporate zem_article_image plugin to work with this? I am a little confused.

Thanks ahead of time,

Matthew


Offline

#19 2005-08-29 06:50:05

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

ma_smith, you can specify which form articl_keywords uses, so just make a form using zem_article_image and specify
<code>
<txp:article_keywords customfield=“sidebar” form=“yourformname” />
</code>


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#20 2005-08-29 08:14:18

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

kemie et all,

I have some thumbnails showing here

I want to be able to click one, see the article, and still have the list of article thumbs available to the side (all three of them).

Here is my current page:

<code>
<h3 class=“pagetitle”>about</h3>
<div class=“thumb”>

<ul><txp:article form=“keyword” /></ul>

<txp:if_individual_article>
<ul><txp:article form=“keyword” /></ul>
</txp:if_individual_article>

</div><!—end thumb —>
</code>

Here is the form “keyword”
<code>
<txp:article_keywords customfield=“sidebar” form=“worklist” />
</code>

Here is the form “worklist”
<code>
<txp:permlink><txp:zem_article_thumb break=“li” /></txp:permlink>
</code>

Any Ideas?

Thanks.

Matthew


Offline

#21 2005-11-09 22:00:30

the-bhp
Member
Registered: 2005-10-18
Posts: 26

Re: Custom field as an article_custom attribute for keywords [Hack]

Unfortunately, this doesn’t work for me.

I have three articles, all have the same keyword in custom field “custom2”. The articles are in different sections and have no categories assigned.

In the article form, I have <code><txp:article_keywords customfield=“custom2” section=“some_section” /></code>, but nothing shows up.

I use TXP 4.0.2 (r1076), could that be the problem? Or am I using the plugin incorrectly?

Last edited by the-bhp (2005-11-09 22:05:19)

Offline

#22 2005-11-10 21:53:45

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

Tyom,

I’ve got the same problem as the-bhp. I’m using 4.0.1.
I have double checked that everything is implemented correctly. I can’t get it to output anything.


Tom

Offline

#23 2005-11-11 01:32:51

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

Not exactly sure…but it looks like this doesn’t work in 4.0.1. It’s a real bummer because it would achieve exactly what I need.

Tyom…it would be MUCH appreciated if you could get it to work in the lastest version.

If I had the slightest clue about how it works I would give it a go myself…However, I fear that would just end in disaster.

Anyone else got any suggestions?

Cheers,
Tom

Offline

#24 2005-11-11 12:16:05

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

nice to know before i upgrade! :)


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#25 2005-12-05 23:09:52

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

any word on 4.0.1 compatibility? :)


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#26 2005-12-06 14:21:49

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

Tyom. We need you.

)

Offline

#27 2005-12-08 01:14:32

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

Re: Custom field as an article_custom attribute for keywords [Hack]

I just wrote a plugin that may work for some of you guys. It’s a txp:related_articles based tag, but it can use the keywords from a custom field to choose articles. And it can use an article form for output, so you can output txp:article_custom style lists.

Check the chh_related_articles thread.

Offline

#28 2005-12-08 19:57:16

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: Custom field as an article_custom attribute for keywords [Hack]

thanks takshaka, this sounds perfect :)


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

Board footer

Powered by FluxBB