It would be nice if the size of each variable was configurable. This is to avoid having ginormous URL's created for lengthy titles.
Suggestion for the variable format [title:30].
Thanks.
It would be nice if the size of each variable was configurable. This is to avoid having ginormous URL's created for lengthy titles.
Suggestion for the variable format [title:30].
Thanks.
Comments
Comment #1
mikeryanComment #2
eaton commentedA minor note -- this makes it easy to create duplicate alias entries. Appending '_#' to the entry, where where # is 1 for the first DUPLICATE entry, 2 is the second DUPLICATE entry, and so forth, would duplicate the behavior in most blogging software. In particular, it would make it possible to easily mirror Movable Type's archiving structure.
Comment #3
mikeryanPathauto already appends sequence numbers for duplicate paths.
Comment #4
mikeryanThat approach would be a little tricky - I've implemented a maximum length for the full alias - if that isn't sufficient for your needs, how about a global maximum component length? I.e., with a pattern of [cat]/[title], a max component length of 10, and a node "This title is too long" in category "Random category", the generated path would be "random_cat/this_title"...
Comment #5
Gabriel R. commentedmikeryan: #4 makes perfect sense, it's what I was looking for.
Comment #6
mikeryanOK, I've implemented a maximum component length in addition to the maximum total length.
Comment #7
mikeryan