Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-02 18:18:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,116
Website GitHub Mastodon Twitter

rss and custom fields

I just upgraded to 4.02 and i can see no problems just yet. The enhancements, especially with the rss/atom are great!!!!! Thanks to all developers.

there is one extra thing regarding the feeds. Will it be possible for the custom fields to be included?

ie in my default form i have

<code><txp:if_article_list>
<div class=“dots”><txp:beginning />
<div class=“artinfo”><b><txp:permlink><txp:section /> &rarr; <txp:title /></txp:permlink></b></div>
<ul><li><b>POSTED</b>: <txp:posted /></li>
<txp:if_custom_field name=“custom1”><li><b><txp:custom_field name=“custom1” /></b></txp:if_custom_field>
<txp:if_custom_field name=“custom2”><txp:custom_field name=“custom2” /></txp:if_custom_field><txp:if_custom_field name=“custom3”> (<txp:custom_field name=“custom3” />)</li></txp:if_custom_field></ul>
<txp:excerpt />
<p>
<txp:permlink>Read more…</txp:permlink>
<txp:comments_invite />
</p></div>
</txp:if_article_list></code>

the above is obviously parsed in the front page. custom fields n all.
But the custom fields do not appear in the feeds.

Maybe i totally misunderstood what rss and atom feeds are capable of, and more importantly how txp functions but I would thing that whatever one decides to show in the front page, that information should also be included in the feed…

As i said… maybe i got it wrong.

Last edited by colak (2005-11-02 18:18:30)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2005-11-02 19:12:59

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: rss and custom fields

Feeds are for syndicating content, that is articles. Forms are for presenting articles (e.g. they mash all meta-data together with the body) on webpages. Yeah, I think you misunderstood some stuff. ;)

Maybe sometime in the future there will be templatable feeds, if that arrives, you can freely decide what you want to put into which feed-elements.

Offline

#3 2005-11-02 19:35:57

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: rss and custom fields

Think of forms as macro… little piece of code that is re-used everywhere (if you want to), in the correct context.

Offline

#4 2005-11-03 06:38:32

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,116
Website GitHub Mastodon Twitter

Re: rss and custom fields

Thanks guys…
I guess i did get it wrong:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB