Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-05 20:33:38

Neko
Member
Registered: 2004-03-18
Posts: 458

Feed Id?

Reading the source of a feed generated by TXP I can see:

<id>tag:www.example.com,2005:ab1234567890... etc...</id>

I was wondering about the part after the comma. How is that generated? Is there a way to change it?

Last edited by Neko (2009-08-07 11:53:38)

Offline

#2 2009-08-06 00:46:20

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Feed Id?

Neko wrote:

Is there a way to change it?

Why? It’s automatically created Unique ID for the feed and it’s items. Basically the ID is:

  • ID that is globally (yes, world global) unique, build from something unique, like from hash, permlink and email.
  • Contains valid URI (RFC 2396).
  • Textpattern uses either the main email address or the site domain as the part of the ID. Can be controlled from Advanced Prefs.

And the thing that prevents you from changing it:

  • The ID is eternal. It must never change.

And the bottom line – the thing why I asked why:

  • The ID doesn’t really matter. It’s only used by feed readers, subscribers and such.

Offline

#3 2009-08-06 09:25:45

Neko
Member
Registered: 2004-03-18
Posts: 458

Re: Feed Id?

Gocom wrote:

Why?

Because I had to split a site in two. I exported the MySQL database, took some of the contents, and moved them to a new domain. The only link between the two sites, now, is the feed id since it has not changed on the new site ‘cause it’s included in the MySQL DB. So, I just discovered this feed id and I’d like to know of I can change it. Can I change it?

Last edited by Neko (2009-08-06 09:41:59)

Offline

#4 2009-08-06 10:25:09

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Feed Id?

Neko wrote:

Can I change it?

Redo the article. Delete old, post new copy. And check the domain option in advanced prefs. Some settings like the main email and blogid are found in the txp_prefs table.

Last edited by Gocom (2009-08-06 10:26:44)

Offline

#5 2009-08-06 14:32:40

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Feed Id?

Why redo the article?

Offline

#6 2009-08-06 14:50:53

Neko
Member
Registered: 2004-03-18
Posts: 458

Re: Feed Id?

OK, here’s what I did:

  1. Exported the DB.
  2. Dropped it.
  3. Re-run setup (this is the key, I guess, since tweaking the prefs — advanced or whatnot — didn’t re-create a new id. They just allow to add an e-mail address to the feed id).
  4. At the end of set-up, TXP generated a new blog id inside the DB.
  5. Re-imported the old DB.
  6. Via PHPMyAdmin, pasted the new blog id inside the table txp_prefs.

Hope this should be enough for search engines. The feed source now contains a new id.

Last edited by Neko (2009-08-06 15:04:17)

Offline

Board footer

Powered by FluxBB