Skip to Content Skip to Menu

plug-in CB Blogs - changes alias text?

  • warlocksp
  • warlocksp
  • OFFLINE
  • Posts: 28
  • Thanks: 0
  • Karma: 0
6 years 8 months ago - 6 years 8 months ago #302024 by warlocksp
plug-in CB Blogs - changes alias text? was created by warlocksp
Добрый день,
Подскажите пожалуйста,

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

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

То есть, добавляется "-2" в алиас материала
Last edit: 6 years 8 months ago by warlocksp.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
6 years 8 months ago #302066 by nant

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

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

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

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


We no longer have a Russian moderator.

Please Log in or Create an account to join the conversation.

  • warlocksp
  • warlocksp
  • OFFLINE
  • Posts: 28
  • Thanks: 0
  • Karma: 0
6 years 8 months ago - 6 years 8 months ago #302067 by warlocksp
Replied by warlocksp on topic plug-in CB Blogs - changes alias text ?
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
Last edit: 6 years 8 months ago by warlocksp.

Please Log in or Create an account to join the conversation.

  • warlocksp
  • warlocksp
  • OFFLINE
  • Posts: 28
  • Thanks: 0
  • Karma: 0
6 years 8 months ago - 6 years 8 months ago #302069 by warlocksp
Replied by warlocksp on topic plug-in CB Blogs - changes alias text ?
This block of code in the file "plug_cbblogs\models\joomla25.php":
Code:
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 - ?
Last edit: 6 years 8 months ago by warlocksp.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
6 years 8 months ago #302103 by krileon
Replied by krileon on topic plug-in CB Blogs - changes alias text ?
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 - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
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 CST to 4:00 PM CST. 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.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum