Site Menu Management System Development

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1212
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Site Menu Management System Development

A site menu management system allows website administrators to change navigation structure without developer involvement. Important for sites with dynamic content: new sections, seasonal changes, A/B-testing navigation.

Data Model

menus (
  id, name, slug, locale
  -- 'main_menu', 'footer_menu', 'mobile_menu'
)

menu_items (
  id, menu_id, parent_id, order,
  type: link | page | category | custom,
  label, url,
  page_id,     -- if type=page
  category_id, -- if type=category
  target: _self | _blank,
  icon,
  is_visible, css_class,
  attributes (jsonb)  -- data-attributes, id
)

Drag-and-drop Interface

For managing nested structure — @dnd-kit/sortable or react-sortable-tree library:

import { DndContext, closestCenter } from '@dnd-kit/core';
import { SortableContext, arrayMove, verticalListSortingStrategy } from '@dnd-kit/sortable';

function MenuEditor({ items, onReorder }) {
    const [treeItems, setTreeItems] = useState(buildTree(items));

    const handleDragEnd = ({ active, over }) => {
        if (!over || active.id === over.id) return;
        const oldIndex = treeItems.findIndex(i => i.id === active.id);
        const newIndex = treeItems.findIndex(i => i.id === over.id);
        const reordered = arrayMove(treeItems, oldIndex, newIndex);
        setTreeItems(reordered);
        onReorder(reordered.map(({ id }, order) => ({ id, order })));
    };

    return (
        <DndContext collisionDetection={closestCenter} onDragEnd={handleDragEnd}>
            <SortableContext items={treeItems} strategy={verticalListSortingStrategy}>
                {treeItems.map(item => (
                    <SortableMenuItem key={item.id} item={item} />
                ))}
            </SortableContext>
        </DndContext>
    );
}

Server-side: Menu Retrieval with Caching

class MenuService
{
    public function getMenu(string $slug, string $locale): array
    {
        return Cache::remember("menu:{$slug}:{$locale}", 3600, function () use ($slug, $locale) {
            $menu = Menu::where('slug', $slug)->where('locale', $locale)->first();
            if (!$menu) return [];

            return $this->buildTree(
                $menu->items()
                    ->where('is_visible', true)
                    ->orderBy('order')
                    ->get()
                    ->toArray()
            );
        });
    }

    private function buildTree(array $items, ?int $parentId = null): array
    {
        return collect($items)
            ->where('parent_id', $parentId)
            ->map(fn($item) => array_merge($item, [
                'children' => $this->buildTree($items, $item['id'])
            ]))
            ->values()
            ->toArray();
    }
}

Cache Invalidation

When menu changes — clear cache:

Menu::observe(MenuObserver::class);

class MenuObserver
{
    public function saved(Menu $menu): void
    {
        Cache::forget("menu:{$menu->slug}:{$menu->locale}");
    }
}

Menu Item Types

Type Description
link Arbitrary URL, entered manually
page Selection from CMS page list
category Catalog category selection
custom Anchor link (#section) or JS action

For page and category types, URL is generated automatically when page/category slug changes.

Development timeline: 2–3 days for system with drag-and-drop and multiple item types.