Ticket #39 (new enhancement)

Opened 12 months ago

Last modified 5 months ago

User define permalink structure

Reported by: tinyau.vampire Owned by:
Priority: major Milestone: 1.0
Component: Plugins Version: SVN
Keywords: Cc:

Description (last modified by michaeltwofish) (diff)

Moved from GCode Issue #303

Reported by tinyau.vampire, Apr 03, 2007

I hope future version of Habari can support user define permalink structure. As a user of WordPress currently, I hope to retain the permalink of the posts when I migrate to Habari in the future.

Duplicates: #467


Comment 1 by kpishd...@…, Apr 17, 2007

http://groups.google.com/group/habari-dev/browse_thread/thread/bf21fb65f3a5ecc/936fbb2e9af48195?lnk=gst&q=wordpress+rewrite&rnum=1#936fbb2e9af48195


Comment 2 by freakerz, Sep 19, 2007

Is this still a desired feature?

Maybe we could move this to a -dev thread, talk about using rewrite rules to support more than one permalink? Would that cause some conflicts?

This would probably fall under the "plugin" category.


Comment 4 by freakerz, Nov 03, 2007

Should we supply the users with a core feature as described or leave it for a plugin? (kind of what I did with Route301, add WP permalink support via custom RewriteRules)

Change History

  Changed 12 months ago by miklb

  • reporter changed from miklb to tinyau.vampire

  Changed 11 months ago by morydd

  • component changed from -none- to Plugins

  Changed 7 months ago by miklb

Is this eventually going to be a core feature? I know tinyau has written a plugin now for it, and perhaps it's a bit premature to add, but wondering if there's a consensus.

  Changed 7 months ago by Heilemann

For what it's worth, I designed a interface to manage it here: http://flickr.com/photos/heilemann/2276813326/in/set-72157603941330603/

  Changed 6 months ago by tinyau

I don't know if this feature should be in core. But for the interface, it should allow user to configure the permalink structure of all content types and its corresponding comment feed as well.

  Changed 6 months ago by michaeltwofish

  • description modified (diff)

follow-up: ↓ 8   Changed 6 months ago by arthus

  • priority changed from minor to major

I think it is fine for implementation to be in a plugin, but the core needs some changes to accommodate this.

We should really not be hardcoding the rewrite rules. In order for a system rule to be changed based upon user input, it would have to be saved into the database elsewhere, then run through a filter. Why aren't we storing rules in the database? If it is something which should be customizable (which it should be), it needs to be in the database.

in reply to: ↑ 7   Changed 6 months ago by rickc

Replying to arthus:

I think it is fine for implementation to be in a plugin, but the core needs some changes to accommodate this. We should really not be hardcoding the rewrite rules. In order for a system rule to be changed based upon user input, it would have to be saved into the database elsewhere, then run through a filter. Why aren't we storing rules in the database? If it is something which should be customizable (which it should be), it needs to be in the database.

The basic rewrite rules should always be available, so being hard-coded is safer than keeping them in the database where they can be accidently overwritten. Any of them can, however, be overridden by calling filter_rewrite_rules($system_rules).

  Changed 5 months ago by miklb

  • milestone set to 1.0
Note: See TracTickets for help on using tickets.