Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-20 15:25:00

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

r1736 - Creating a new category

I don’t think this is a new issue or specifically related to this revision, but…

If I create a new category called, for example, “My New Category”, both the name and title are converted to “my-new-category”. I would expect that to happen for the name, but would it be possible to leave the title as it was entered?

Offline

#2 2006-08-20 16:22:50

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

Re: r1736 - Creating a new category

In the cat_event_category_create function, this can probably be fixed by moving the line <code>$title = doSlash($name);</code> above the line <code>$name = stripSpace(ps(‘name’), 1);</code>.
That’s how it is done in the cat_event_category_save function which doesn’t change the title upon saving after edit. Spaces at the beginning or ending of the title are not stripped there… is that okay?

Last edited by ruud (2006-08-20 16:24:47)

Offline

Board footer

Powered by FluxBB