Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-11-29 23:15:57
- 2ter
- New Member
- From: vienna
- Registered: 2008-11-29
- Posts: 1
How to generate atom:id?
Hi,
i would like to create custom atom feeds with the help of forms… With rss this is no problem…
Now I’m trying to do the same thing for atom feed.
My question now is, how does atom.php create the id’s. Or bether, is there a posibility to create the atom id with txp:tags, or with some simple php?
Thx
Last edited by 2ter (2008-11-30 12:16:00)
Offline
#2 2008-11-30 13:48:06
- sirblackheart
- New Member
- Registered: 2008-07-04
- Posts: 7
Re: How to generate atom:id?
What i have found so far:
for the main atom id tag:
<id>tag:(siterurl, 2ter.com for example)<txp:php>echo $GLOBALS['prefs']['blog_time_uid'].":".$GLOBALS['prefs']['blog_uid'];</txp:php>
for the atom article id, i would need to access the feed_time and the uid of each article, but i have not found a way to access them with global variables.
So has anyone an idea?
Offline
Re: How to generate atom:id?
That information isn’t available in global variables, so you’d have to pull it from the database yourself.
Offline
Pages: 1