Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-997

Incorrect PageInfo Mapping and Navbar

    XMLWordPrintable

    Details

    • Change Log Message:
      Fixed incorrect pageInfo mapping and navbar
    • Story Points:
      1
    • External issue ID:
      1222
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

    • BC Break Details:
      Hide

      Reborn methods:

      • "CategoryHelper::NavigationBar" as "kNavigationBar::build" (new class)
      • "CategoryHelper::SelectParam" as "kNavigationBar::SelectParam"
      • "CategoryHelper::getCategoryParentPath" as "kNavigationBar::getCategoryParentPath"
      • "CategoryHelper::getCategoryPath" as "kNavigationBar::getCategoryPath"
      • "CategoryHelper::getHomeCategoryPath" as "kNavigationBar::_getHomeCategoryPath"
      • "CategoryHelper::getNavigationParts" as "kNavigationBar::getNavigationParts"
      Show
      Reborn methods: "CategoryHelper::NavigationBar" as "kNavigationBar::build" (new class) "CategoryHelper::SelectParam" as "kNavigationBar::SelectParam" "CategoryHelper::getCategoryParentPath" as "kNavigationBar::getCategoryParentPath" "CategoryHelper::getCategoryPath" as "kNavigationBar::getCategoryPath" "CategoryHelper::getHomeCategoryPath" as "kNavigationBar::_getHomeCategoryPath" "CategoryHelper::getNavigationParts" as "kNavigationBar::getNavigationParts"

      Description

      [B]1. PageInfo[/B] tag render incorrectly htmlhead_title and title parameters, because mapping is wrong between info entered in admin and result on pag, in categories_tag_processor:

      case 'title':
      $db_field = 'Title';
      break;

      case 'htmlhead_title':
      $db_field = 'Name';
      break;

      and it should be

      case 'title':
      $db_field = 'Name';
      break;

      case 'htmlhead_title':
      $db_field = 'Title';
      break;

      [B]2. Navigation bar[/B] add "title_field" parameter to c_NavigationBar tag, that will allow to use any specified field to compose navigation bar (will require extra select). Pass "MenuTitle" field on front-end. This way we'll keep consistent navigation bar in admin console and on front-end.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: