Error with friendly URL: "empty-#"
I would like you to fix the error that it's impossibel to post when we post articles with the friendly URL: "empty-#" more than 11 times. We preare our clients' blog and let them post their articles. But sometimes they post them without its titles. So their friendly URL automatically set as "empty-#" often and when they reach "empty-10", they claim us that they can't post anything.
Thank you in advance.
Thank you in advance.
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 78 times
- Contact:
We will have a look at it... But I would recommend to use titles like "Draft 1", "Draft 2" etc. You always can change them later.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Thank you very much for having a look for it.
I know it's normal to put titles on every post and I told so to our clients but still there are some who doesn't put their titles and claim us that they can't post...
Anyway hope you can fix it soon
I know it's normal to put titles on every post and I told so to our clients but still there are some who doesn't put their titles and claim us that they can't post...
Anyway hope you can fix it soon
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 78 times
- Contact:
For using two digits for empty posts you can change line 93 in the file dbposts.class.php (in /bludit/bl-kernel) from
to
For pages you can change line 281 in the file dbpages.class.php.
Code: Select all
$newKey = $newKey.'-0';
Code: Select all
$newKey = $newKey.'-00';
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Thank you for showing me the solution.
There is another problem that once the post is posted without its title, the friendly url is set as "empty-00" but then it's hard to edit the url again like I try to retype or delete the url but it won't work.
Is there any way to avoid the problem?
There is another problem that once the post is posted without its title, the friendly url is set as "empty-00" but then it's hard to edit the url again like I try to retype or delete the url but it won't work.
Is there any way to avoid the problem?
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 78 times
- Contact:
It works when you add or modify the title. You cannot change friendly URLs' for posts ands pages without a title.
There is a problem with hyphens. But you can write the friendly URL and then insert hyphens. I will open an issue.
There is a problem with hyphens. But you can write the friendly URL and then insert hyphens. I will open an issue.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets