On 21 Apr 2017, at 13:52, Marius Dumitru Florea
<mariusdumitru.florea(a)xwiki.com> wrote:
On Fri, Apr 21, 2017 at 2:16 PM, Vincent Massol <vincent(a)massol.net> wrote:
Hi Caty,
On 21 Apr 2017, at 12:44, Ecaterina Moraru
(Valica) <valicac(a)gmail.com>
wrote:
Let's see what variants we have:
1. Instead of displaying "Title", display the "Name" instead.
This won't solve anything. There is no difference between Page Name and
Page Title for the normal users. Seeing "Name" instead of "Title",
will
not
stop the users to enter spaces if they want, so
the URL will still have
those spaces. We don't force the Page Names to trim spaces.
One quick solution here is indeed to use "URL" label instead of
"Name".
For
the reasons Vincent mentioned this might not end
up in the product for
now,
What did I mention? :) What’s preventing us from having it in the product
rather soon than later (except workload ofc)?
so you will need to do some custom development
(changing some
translations)
to have this change. If you want to be
"hackish" you can even change the
translation for "Title" to "URL" instead and hope that your users
will
enter shorter URLs (since we generate the name from the title).
Displaying just Name / URL, means users will still have to go and change
the title manually.
This could be better (with URL name) since when you create a page you’re
offered the ability to change the title after you click Create.
The only way to cut a step in the flow is to
autogenerate the page names (which we currently do). But for your use
case
you shoyld write a shorting/trimming algorithm,
but this is custom, since
you mentioned you want just the initials and no spaces, etc.
2. Displaying both "Title" and "Name". This will create confusion and
need
for explanations.
This is not exactly what is suggested either by Vishal nor by me :) What
we suggested is to let the user enter the URL name and title.
Actually and to be more precise what I was suggesting was to continue to
let the user enter the title but to show the generated URL as it’s done in
AWM. And, importantly to allow the user to change the last part of the URL
(it would change the page name).
That's why we display these options just for
advanced and
long-time users of XWiki, since they are used to the concepts.
Yes but URLs don't need an advanced user to
understand the concept and I
agree with Vishal that we’re now causing a very large number of pages to
have %25 in their URLs by default which is quite bad… Of course someone can
spend their time monitoring what users are doing and renaming pages
thereafter or educate their users to do that but we’re not helping and
we’re making it difficult.
If your web site is not in English then you're forced to use special
characters like diacritics which makes it hard to avoid URL encoded
characters (the browser location bar displays the URL nicely but if you
copy the URL the result is not nice).