Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2005-08-28 06:06:14
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Custom field as an article_custom attribute for keywords [Hack]
So that it is context sensitive. I’m not asking for it, just telling you what was asked.
Offline
#14 2005-08-28 15:38:48
- loid
- Member
- Registered: 2005-03-09
- Posts: 38
Re: Custom field as an article_custom attribute for keywords [Hack]
Atrox, this looks like just what I need. Unfortunately, I can’t get it to display. I can see <code><txp:article_custom form=“sources_reply” limit=“1” category=“Sources” sortby=“Posted” sortdir=“desc” keywords=“reply126” /></code> which displays what I need to display, but of course isn’t conditional and so shows it all the time. But when I add <code><txp:article_keywords customfield=“sidebar” form=“sources_reply” /></code> to the page, nothing displays.
The main article has “reply126” listed in a customfield named “sidebar.” The article I want to display along the right side has “reply126” listed in the keywords. But nothing displays.
The place in the page in which I want this to display is enclosed within <code><txp:if_individual_article></code> tags, so I’m wondering if that’s not allowing the plugin to work for some reason. However, the article_custom list shows up fine in the same place.
The only other thing I can think of is that I run several other plugins, and so I wonder if any of them could be interfering with yours?
Offline
Re: Custom field as an article_custom attribute for keywords [Hack]
loid, it needs to be within an article form, i think.
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
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
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
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
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
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
- I am Squared Eye and I
am launchinghave launched Pattern Tap
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
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
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
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