Discussion:
[TYPO3-english] CoolURI and speaking URL path segment
Pero Matic
2010-04-27 13:46:15 UTC
Permalink
CoolURI generates URL's by getting page title - that's fine. Now, if u have
a page titled "foo" and user doesn't want URL to be:

"site.com/foo"

but

"site.com/bar.html"

how can he do that? I know this can easilly be done by using CoolURI
interface and setting custom page link with sticky set. But i try to make it
simple for my users so they don't have to use CoolURI interface. There is a
field called Speaking URL path segment in page properties. Is it possible to
use this? Problem is that i can enter only "simple" words in this field.
Filenames like:

bar.html or paths like bar/foo/something don't work. Thx!
Jan Bednarik
2010-04-27 20:47:58 UTC
Permalink
Post by Pero Matic
how can he do that? I know this can easilly be done by using CoolURI
interface and setting custom page link with sticky set. But i try to make it
simple for my users so they don't have to use CoolURI interface. There is a
field called Speaking URL path segment in page properties. Is it possible to
use this? Problem is that i can enter only "simple" words in this field.
Just have a look at the XML:

<!-- first non-empty value will be used -->
<title>tx_realurl_pathsegment,alias,subtitle,title</title>
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
Pero Matic
2010-04-27 21:12:01 UTC
Permalink
Post by Jan Bednarik
Post by Pero Matic
how can he do that? I know this can easilly be done by using CoolURI
interface and setting custom page link with sticky set. But i try to
make it simple for my users so they don't have to use CoolURI
interface. There is a field called Speaking URL path segment in page
properties. Is it possible to use this? Problem is that i can enter
only "simple" words in this field.
<!-- first non-empty value will be used -->
<title>tx_realurl_pathsegment,alias,subtitle,title</title>
Hm, that's just the order in which the fields will be processed but that's
not the problem. The problem is that if i write in Speaking URL path segment
field something like:

"foo.html" or "foo/bar/something"

it will be converted to "foohtml" and "foobarsomething". So, i suppose this
is processed by CoolURI - special chars are removed. Is there a possibility
to leave those chars if used in Speaking URL path segment field ? THX!
Pero Matic
2010-04-27 21:15:28 UTC
Permalink
Post by Pero Matic
Post by Jan Bednarik
Post by Pero Matic
how can he do that? I know this can easilly be done by using CoolURI
interface and setting custom page link with sticky set. But i try to
make it simple for my users so they don't have to use CoolURI
interface. There is a field called Speaking URL path segment in page
properties. Is it possible to use this? Problem is that i can enter
only "simple" words in this field.
<!-- first non-empty value will be used -->
<title>tx_realurl_pathsegment,alias,subtitle,title</title>
Hm, that's just the order in which the fields will be processed but
that's not the problem. The problem is that if i write in Speaking
"foo.html" or "foo/bar/something"
it will be converted to "foohtml" and "foobarsomething". So, i
suppose this is processed by CoolURI - special chars are removed.
Hm, maybe I'm wrong here. Maybe it's processed by TYPO3? Anyway, is there a
way to disable such a behaviour?
Jan Bednarik
2010-04-28 15:50:26 UTC
Permalink
Post by Pero Matic
Hm, maybe I'm wrong here. Maybe it's processed by TYPO3? Anyway, is there a
way to disable such a behaviour?
Chars [^a-zA-Z0-9] + "-" are replaced with "-". There is no option that
would change this behavior, yet.
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
Pero Matic
2010-04-28 16:50:52 UTC
Permalink
Post by Jan Bednarik
Post by Pero Matic
Hm, maybe I'm wrong here. Maybe it's processed by TYPO3? Anyway, is
there a way to disable such a behaviour?
Chars [^a-zA-Z0-9] + "-" are replaced with "-". There is no option
that would change this behavior, yet.
That's within CoolURI but it seems TYPO3 also does some processing. Btw.
Jan, how to make this with CoolURI. If i want some page to have url like:

site.com/something.html

while others have their url generated by page title.

I can do that with CoolURI interface - manully setting the link and sticky
but is there some TYPO3 way to do it? I tried with "Alias" field and
"Speaking URL path segment" field but it doesn't work because "." is
removed. THX!
Jan Bednarik
2010-05-01 19:38:33 UTC
Permalink
Hi,
Post by Pero Matic
That's within CoolURI but it seems TYPO3 also does some processing. Btw.
site.com/something.html
while others have their url generated by page title.
something can be alias and .html can be set as urlsuffix. You can
defined when urlsuffix should be appended with simple regexp.
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
Loading...