Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-14 11:12:51

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

Sections With ID's

Im developing a site and one of the specs on the brief is that the might want to change section titles and names for google rankings etc. I will build most of the site with most content in place. I have aswell used section conditionals (least amount possible) but if the client changes the section name then the site will break.

Is there a plugin to give sections ID’s or is there going to be one in newer released versions.

Any help welcome.

Oliver Ker

Offline

#2 2008-07-14 12:52:46

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Sections With ID's

Wouldn’t changing the names (and so, URLs) be bad for a Google ranking, unless you had some sort of redirection plugin at work?

Offline

#3 2008-07-14 12:59:00

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

Re: Sections With ID's

Yea, I understand this but this is what they have asked for? They are a seo company and want this flexability – redirects will be used aswell.

Offline

#4 2008-07-14 17:13:21

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

Re: Sections With ID's

Not likely to be included in TXP core, because it makes the templates unreadable (no-one knows what ID belongs to what section).

Offline

#5 2008-07-14 17:28:03

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

Re: Sections With ID's

ruud wrote:

Not likely to be included in TXP core, because it makes the templates unreadable (no-one knows what ID belongs to what section).

But this is mostlike easy and possible with the new txp:variable-tag ;) Then the section names could be defined only in one place, making the editing a lot easier. So it’s kinda in the core :P

oliverker, also, you can build a new conditional plugin. Just add new ID-column to the txp_section table, hook the conditional with ID/name, and that’s it.

Last edited by Gocom (2008-07-14 17:28:39)

Offline

#6 2008-07-14 20:48:10

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Sections With ID's

But this is most like easy and possible with the new txp:variable-tag ;) Then the section names could be defined only in one place, making the editing a lot easier. So it’s kinda in the core :P

So in 4.07 you’d use <txp:section name='<txp:variable name="mysectionid" />' link="1" /> or similar to make your site internal links and if you change the section name later, you just update the variable name too? Very clever idea.
Permlinks and section list-based stuff would update on their own, so only explicitly named sections would need dealing with this way, right?


TXP Builders – finely-crafted code, design and txp

Offline

#7 2008-07-17 03:42:47

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Sections With ID's

Problem: this is for end-users, which is why they can’t update pages/forms themselves in the first place.

Offline

Board footer

Powered by FluxBB