plug-in CB Blogs - changes alias text?

3 months 1 week ago - 3 months 1 week ago #302024 by warlocksp
Добрый день,
Подскажите пожалуйста,

Вопрос:
Когда пользователь создает блог, все отлично.
После редактирования, меняется алиас материала?

Пример:
Когда создает получается: /blog/###/testirovanie-bloga
Нажимает редактировать и сохраняет, получается: /blog/###/testirovanie-bloga-2
При каждом сохранении чередуется с "-2" или без него.

То есть, добавляется "-2" в алиас материала
3 months 1 week ago #302066 by nant

warlocksp wrote: Добрый день,
Подскажите пожалуйста,

Вопрос:
Когда пользователь создает блог, все отлично.
После редактирования, меняется алиас материала?

Пример:
Когда создает получается: /blog/###/testirovanie-bloga
Нажимает редактировать и сохраняет, получается: /blog/###/testirovanie-bloga-2
При каждом сохранении чередуется с "-2" или без него.

То есть, добавляется "-2" в алиас материала


We no longer have a Russian moderator.
3 months 1 week ago - 3 months 1 week ago #302067 by warlocksp
Good afternoon,
Tell me please,

Question:
When a user creates a blog, everything is fine.
After editing, does the alias of the material change?

Example:
When creating it turns out: / blog / ### / testirovanie-bloga
Click edit and save, it turns out: / blog / ### / testirovanie-bloga-2
Each time it is alternated with "-2" or without it.

That is, "-2" is added to the alias of the text
3 months 1 week ago - 3 months 1 week ago #302069 by warlocksp
This block of code in the file "plug_cbblogs\models\joomla25.php":
while ( $table->load( array( 'alias' => $alias, 'catid' => $article->get( 'catid' ) ) ) ) {
$matches = null;

if ( preg_match( '#-(\d+)$#', $alias, $matches ) ) {
$alias = preg_replace( '#-(\d+)$#', '-' . ( $matches[1] + 1 ). '', $alias );
} else {
$alias .= '-2';
}
}
Change alias of document in Joomla 3, here about this error asked - ?
3 months 1 week ago #302103 by krileon
Alias should only change it title changes. Looks like a bug. Have added a bug ticket to fix.

forge.joomlapolis.com/issues/7038


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM EST to 4:00 PM EST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Moderators: beatnantkrileon
Time to create page: 0.201 seconds
Facebook Twitter Google LinkedIn