Request routing and UI rendering
iTop uses separate request paths for the back office and the portal. Each path starts the right application context, checks access, sends the request to a page or controller, and turns the result into a full page, an async fragment, JSON, or a file response. This page is part of Application experience and connects to Identity and user state, Search, dashboards, and news, and HTTP request contracts.
Request entrypoints
The entrypoints define the boundary between an HTTP request and the application experience. They prepare the runtime before any page can use the data model or user state.
flowchart TD
Request[HTTP request] --> AppRoot[Application entrypoint]
Request --> PortalRoot[Portal entrypoint]
AppRoot --> Startup[Session, environment, data model]
PortalRoot --> PortalKernel[Portal kernel and request]
Startup --> BackofficeDispatch[Back-office route or legacy operation]
PortalKernel --> PortalDispatch[Portal route and controller]
BackofficeDispatch --> BackofficeResponse[Back-office response]
PortalDispatch --> PortalResponse[Portal response]
Back-office entrypoint
The application root selects the start page after it checks the configuration state. A normal request reaches pages/UI.php, while an unconfigured system reaches the setup flow; pages/index.php only redirects to this root entrypoint. pages/UI.php then starts the session and environment, loads the data model, applies login checks, and chooses route dispatch or a legacy operation. index.php pages/index.php pages/UI.php
References: index.php• L3-34 pages/index.php• L1-3 pages/UI.php• L231-269
Portal entrypoint
The portal entrypoint is a Symfony front controller. It marks the request as belonging to a named portal, creates the portal kernel and request, sends the response, and then lets the kernel finish request work. This keeps portal routes separate from the back-office route parameter used by pages/UI.php. datamodels/…/index.php
References: datamodels/…/index.php• L21-57
Route dispatch
Routing maps a request name or URL pattern to a controller action. The back office keeps a legacy operation path for compatibility, while the portal uses URL routes as its main page contract.
Back-office route service
The back-office Router maps a dotted route name such as object.modify to a controller operation. It discovers public controller operations, can cache the route map outside development, generates checked URLs, and invokes the matching operation. pages/UI.php tries this route first, then falls back to its legacy operation switch when no route matches. sources/…/Router.php sources/…/Router.php pages/UI.php
References: sources/…/Router.php• L18-28 sources/…/Router.php• L74-132 sources/…/Router.php• L153-218 pages/UI.php• L249-269
Controller operations
Back-office controllers provide the newer request contract for common object actions. ObjectController selects a full page or an async page from the request, checks object rights, and returns a page object or JSON result for create and edit workflows. The same operations support full forms, modal forms, and save results without making the caller know which page type handled the request. Legacy calls can still invoke the same operations through pages/UI.php. sources/…/iController.php sources/…/ObjectController.php sources/…/ObjectController.php sources/…/ObjectController.php sources/…/ObjectController.php
References: sources/…/iController.php• L15-30 sources/…/ObjectController.php• L50-79 sources/…/ObjectController.php• L219-319 sources/…/ObjectController.php• L329-484 sources/…/ObjectController.php• L496-709
Twig-based controller service
The Twig-based controller gives module and extension pages a shared request service. It checks the access mode, resolves an operation, and selects the response form for a normal page, a basic page, an Ajax page, a Turbo form update, or setup. It also exposes JSON and file responses for actions that do not return HTML. sources/…/Controller.php sources/…/Controller.php sources/…/Controller.php sources/…/Controller.php
References: sources/…/Controller.php• L260-317 sources/…/Controller.php• L353-391 sources/…/Controller.php• L478-607 sources/…/Controller.php• L878-915
Portal route collection
Portal routes use Symfony URL patterns and controller actions. The route set covers the home page, object view and edit, object search, create and browse pages, manage pages, aggregate pages, documents, and attachments. Extension routes are added to the same collection so portal features can extend the URL space without changing the front controller. datamodels/…/routes.yaml datamodels/…/object_brick.yaml datamodels/…/extensions_extra_routes.php
References: datamodels/…/routes.yaml• L18-43 datamodels/…/object_brick.yaml• L18-110 datamodels/…/extensions_extra_routes.php• L21-45
Page responses
Page objects collect content and response metadata before output. The response type tells the browser whether to replace a page, update part of a page, read structured data, or download raw content.
Full page responses
WebPage is the common page contract for adding content and producing output. iTopWebPage adds the back-office shell with navigation, top bar, breadcrumbs, messages, and page content. NiceWebPage adds the shared theme and browser support used by interactive pages. It also gives the browser common URL helpers and activity signals while a page loads. This model lets controllers focus on the user task while the page assembles the outer experience. sources/…/Page.php sources/…/NiceWebPage.php sources/…/NiceWebPage.php sources/…/iTopWebPage.php
References: sources/…/Page.php• L10-29 sources/…/NiceWebPage.php• L65-160 sources/…/NiceWebPage.php• L235-255 sources/…/iTopWebPage.php• L44-158
Async page responses
AjaxPage returns a small HTML response for a browser request that updates part of an existing page. It can include only the needed markup, styles, and scripts, and it keeps tab content and deferred content separate from a full page shell. This supports modals, tabs, field pickers, and partial refreshes without rebuilding the whole page. sources/…/AjaxPage.php sources/…/AjaxPage.php
References: sources/…/AjaxPage.php• L20-62 sources/…/AjaxPage.php• L93-137 sources/…/AjaxPage.php• L178-241
Structured and file responses
JsonPage carries data for browser code and can omit the normal wrapper when a client library expects a direct data value. DownloadPage carries raw document or export content and avoids page markup. These response types keep data and file contracts distinct from HTML rendering. sources/…/JsonPage.php sources/…/JsonPage.php sources/…/DownloadPage.php sources/…/DownloadPage.php
References: sources/…/JsonPage.php• L19-39 sources/…/JsonPage.php• L114-146 sources/…/DownloadPage.php• L13-19 sources/…/DownloadPage.php• L37-60
Turbo form responses
Turbo form responses update the affected form regions without returning a full page. The Twig-based controller selects a Turbo stream content type and can redraw only the blocks that a submitted form affects. This gives dependent form fields a smaller update path than a full Ajax page. sources/…/Controller.php sources/…/Controller.php
References: sources/…/Controller.php• L499-509 sources/…/Controller.php• L1111-1131
Twig rendering
Twig is the shared view language for the page shells and UI blocks. The render path combines page data, layouts, block data, and client resources into output that can be used as a complete document or as an async response.
Back-office Twig rendering
The back-office page classes build a layout tree and pass page metadata to Twig. The main template renders the navigation menu, top bar, page content, deferred blocks, reusable templates, styles, and scripts. The base template also tracks loaded resources so later async responses do not load the same file twice. sources/…/iTopWebPage.php templates/pages/backoffice/itopwebpage/layout.html.twig templates/pages/backoffice/webpage/layout.html.twig
References: sources/…/iTopWebPage.php• L773-949 templates/…/layout.html.twig• L3-48 templates/…/layout.html.twig• L22-145
Portal Twig rendering
Portal controllers render through the Symfony portal kernel and a portal template registry. The portal base template provides the portal shell, session messages, navigation, main content, modal areas, overlays, and common browser error handling. Controllers can forward to another route action and can select or override registered templates for a portal feature. datamodels/…/Kernel.php datamodels/…/AbstractController.php datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig
References: datamodels/…/Kernel.php• L37-107 datamodels/…/AbstractController.php• L38-55 datamodels/…/layout.html.twig• L20-29 datamodels/…/layout.html.twig• L181-238
Twig integration
TwigHelper creates the Twig environment and registers iTop extensions. The Twig-based controller adds form rendering and CSRF support to that environment, then renders the HTML, live JavaScript, ready JavaScript, and CSS views for the selected page type. BlockRenderer gives each UI block its template parameters and renders its HTML, scripts, styles, and child blocks. A template error becomes an inline alert for an async request or a page-level template error for a full request. sources/…/Controller.php sources/…/Controller.php sources/…/Controller.php sources/…/TwigHelper.php sources/…/TwigHelper.php sources/…/BlockRenderer.php sources/…/BlockRenderer.php
References: sources/…/Controller.php• L158-200 sources/…/Controller.php• L226-238 sources/…/Controller.php• L522-583 sources/…/TwigHelper.php• L68-102 sources/…/TwigHelper.php• L105-126 sources/…/TwigHelper.php• L162-208 sources/…/BlockRenderer.php• L91-107 sources/…/BlockRenderer.php• L137-214
Ajax endpoints
Ajax endpoints provide the short request cycle used by interactive screens. They authenticate the request, enforce the Ajax request guard for unsafe methods, select the response type, and render the smallest useful result for the browser.
Back-office Ajax endpoint
pages/ajax.render.php is the main back-office endpoint for partial HTML, JSON, dashboard refreshes, search data, form helpers, object pickers, document-related UI work, exports, locks, and personal preference actions. It first checks the user and the Ajax header or transaction token, then tries a named controller route when no legacy operation is supplied. If a route returns a response page, the endpoint outputs it through the same page path; non-page route responses end the script because the route already produced its output. Otherwise the endpoint dispatches the requested operation to an AjaxPage, JsonPage, DownloadPage, PDFPage, or full NiceWebPage. The legacy operation switch also exposes controller-backed JSON actions for custom-field updates, preference changes, activity-panel state and entries, object modification, and welcome-popup acknowledgement. pages/ajax.render.php pages/ajax.render.php pages/ajax.render.php pages/ajax.render.php pages/ajax.render.php
The endpoint also serves two different export audiences. Portal-compatible export and editor operations are allowed without forcing the back-office context, while other operations use the console context. This lets shared export and image flows use the endpoint without treating portal requests as back-office page requests. pages/ajax.render.php pages/ajax.render.php
References: pages/ajax.render.php• L31-113 pages/ajax.render.php• L1874-1907 pages/ajax.render.php• L2123-2251 pages/ajax.render.php• L2253-2389
Preference Ajax operations
The preference page uses Ajax for small changes that should update the current shell without a full page rebuild. A user picture selection calls preferences.set_user_picture and receives JSON with success state and updated picture data, while shortcut dialogs use the legacy operation path to create, rename, or delete a user-owned shortcut and then update or reload the navigation menu. pages/preferences.php pages/ajax.render.php pages/ajax.render.php application/shortcut.class.inc.php
References: pages/preferences.php• L431-492 pages/ajax.render.php• L1161-1291 pages/ajax.render.php• L2282-2302 application/shortcut.class.inc.php• L59-129
Linked-object Ajax operations
The LinkSetController serves small Ajax actions for object relationships. It returns JSON for linked-object deletion, detachment, and remote-object lookup. It returns an HTML fragment for the modal form that creates a linked object. These actions keep relationship editing inside the object page while the server still checks the request type and transaction token. sources/…/LinkSetController.php sources/…/LinkSetController.php sources/…/LinkSetController.php
References: sources/…/LinkSetController.php• L33-120 sources/…/LinkSetController.php• L123-265 sources/…/LinkSetController.php• L267-301
Search and document endpoints
Specialized endpoints keep high-use browser actions separate from the broad Ajax dispatcher. pages/ajax.searchform.php turns search criteria into a partial result view. pages/ajax.document.php serves documents, inline images, and cached dictionary data with response headers suited to each content type. pages/ajax.searchform.php pages/ajax.searchform.php pages/ajax.document.php pages/ajax.document.php
References: pages/ajax.searchform.php• L18-44 pages/ajax.searchform.php• L70-91 pages/ajax.document.php• L32-64 pages/ajax.document.php• L66-95
Portal Ajax behavior
The portal uses the same Symfony route and controller model for page actions and browser requests. Its shared template marks jQuery requests with X-Combodo-Ajax, handles session expiry and server errors, and re-initializes tooltips after new markup arrives. This keeps partial portal updates aligned with the portal session and visual shell. datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig
References: datamodels/…/layout.html.twig• L336-405
UI composition
Reusable UI components turn page intent into consistent markup and browser behavior. A page owns a tree of blocks, while each block can provide its visual template, child blocks, data attributes, styles, and scripts.
Back-office shell components
The back-office shell is composed from a navigation menu, a top bar, and page content. The navigation menu exposes application areas and user actions. The top bar holds quick create, global search, breadcrumbs, toolbar content, and extension-provided quick actions. The page content area holds the task-specific blocks. templates/base/layouts/navigation-menu/layout.html.twig templates/base/layouts/top-bar/layout.html.twig sources/…/TopBar.php sources/…/TopBar.php sources/…/TopBarFactory.php sources/…/PageContent.php sources/…/PageContent.php
References: templates/…/layout.html.twig• L1-45 templates/…/layout.html.twig• L1-18 sources/…/TopBar.php• L38-74 sources/…/TopBar.php• L207-257 sources/…/TopBarFactory.php• L52-81 sources/…/PageContent.php• L37-61 sources/…/PageContent.php• L74-117
Preference page
The back-office preference page assembles personal settings from the same page-content, panel, form, field, and button blocks used elsewhere in the shell. It groups interface settings, list and tab behavior, activity-panel behavior, favorite organizations, shortcuts, newsroom choices, keyboard shortcuts, and the user picture placeholder; preference extensions can add their own sections. pages/preferences.php pages/preferences.php pages/preferences.php
References: pages/preferences.php• L42-256 pages/preferences.php• L358-503 pages/preferences.php• L743-935
Reusable UI blocks
UIBlock is the common component contract for reusable page pieces. Blocks have stable identifiers and templates, can contain child or deferred blocks, and can declare the browser resources they need. They can also expose data-* values for browser behavior and ARIA values for accessible controls. Twig factories expose these blocks as template syntax, which lets product areas reuse the same form, field, alert, panel, table, toolbar, and dashboard patterns. sources/…/UIBlock.php sources/…/UIBlock.php sources/…/UIBlock.php sources/…/UIBlock.php sources/…/UIBlockExtension.php sources/…/DataAttributes.php sources/…/AriaAttributes.php
References: sources/…/UIBlock.php• L25-105 sources/…/UIBlock.php• L287-325 sources/…/UIBlock.php• L407-435 sources/…/UIBlock.php• L561-685 sources/…/UIBlockExtension.php• L21-36 sources/…/DataAttributes.php• L12-80 sources/…/AriaAttributes.php• L12-64
Object detail component
The object detail component gives an object page a shared header for identity and lifecycle state. It carries the object class, object ID, display mode, and status in browser metadata, while the visible header shows the object name, class label, and status color. When the data model menu is enabled, the class label also links to the class schema. This lets object-page behavior and users read the same object context from one reusable panel. sources/…/ObjectDetails.php sources/…/ObjectDetails.php templates/base/layouts/object/object-details/layout.html.twig templates/base/components/panel/layout.html.twig
References: sources/…/ObjectDetails.php• L25-45 sources/…/ObjectDetails.php• L80-95 templates/…/layout.html.twig• L3-28 templates/…/layout.html.twig• L3-65
UI action model
Shared action data gives interactive controls one shape across the back office. An action has a stable identity and user-facing label, then chooses either JavaScript behavior or a URL target; a separator preserves groups without an action. Data attributes carry browser state, while ARIA attributes provide the accessible name and related metadata. sources/…/tActionCommon.php sources/…/tActionJs.php sources/…/tActionURL.php sources/…/Grouping.php sources/…/DataAttributes.php sources/…/AriaAttributes.php
References: sources/…/tActionCommon.php• L23-81 sources/…/tActionJs.php• L23-57 sources/…/tActionURL.php• L23-57 sources/…/Grouping.php• L5-23 sources/…/DataAttributes.php• L19-67 sources/…/AriaAttributes.php• L16-64
Button and field components
Buttons express regular or alternative choices with a color that signals the action type. They can submit a form, run JavaScript, or link to another URL. Fields pair a label with a value block and can carry read-only, mandatory, hidden, and dependent-field state, plus related actions. Factories translate older popup-menu actions into these reusable controls. sources/…/Button.php sources/…/Button.php sources/…/ButtonUIBlockFactory.php sources/…/Field.php sources/…/Field.php sources/…/FieldUIBlockFactory.php
References: sources/…/Button.php• L33-117 sources/…/Button.php• L216-291 sources/…/ButtonUIBlockFactory.php• L391-507 sources/…/Field.php• L18-71 sources/…/Field.php• L293-431 sources/…/FieldUIBlockFactory.php• L42-108
Button bar overflow
ButtonBar keeps a group of actions usable when the available space is small. It leaves items in the bar according to a fit rule, a fixed count, or a marker, then exposes the remaining items through a popover menu. The factory accepts buttons and separators so the visible group and its overflow menu keep the same action meaning. sources/…/ButtonSeparator.php sources/…/ButtonBar.php sources/…/ButtonBar.php sources/…/ButtonBarUIBlockFactory.php sources/…/PopoverMenuItemFactory.php
References: sources/…/ButtonSeparator.php• L21-35 sources/…/ButtonBar.php• L33-100 sources/…/ButtonBar.php• L130-289 sources/…/ButtonBarUIBlockFactory.php• L41-133 sources/…/PopoverMenuItemFactory.php• L143-189
Activity panel
The activity panel gives an object page a shared view of case logs and other history. It groups entries by author and source, loads more entries through the Ajax endpoint when needed, and exposes editable case-log forms when the user has modify rights. Extension actions are grouped by case log or activity and become JavaScript or URL controls with a popover for their related items. sources/…/ActivityPanel.php sources/…/ActivityPanel.php sources/…/ActivityPanel.php sources/…/ActivityPanelFactory.php sources/…/ActivityPanelFactory.php sources/…/ActivityPanelActionFactory.php
References: sources/…/ActivityPanel.php• L46-134 sources/…/ActivityPanel.php• L324-361 sources/…/ActivityPanel.php• L932-979 sources/…/ActivityPanelFactory.php• L64-86 sources/…/ActivityPanelFactory.php• L135-224 sources/…/ActivityPanelActionFactory.php• L47-143
Case-log entry forms
Case-log entry forms connect an object page to a rich text editor and its save controls. A form is bridged to the host object during create or edit, while a view page can submit an entry on its own; the activity panel requires one consistent mode across its case logs. Main actions, extra actions, and allowed state transitions use the same button and popover components as the rest of the back office. sources/…/CaseLogEntryForm.php sources/…/CaseLogEntryForm.php sources/…/CaseLogEntryForm.php sources/…/CaseLogEntryFormFactory.php
References: sources/…/CaseLogEntryForm.php• L28-77 sources/…/CaseLogEntryForm.php• L157-195 sources/…/CaseLogEntryForm.php• L250-347 sources/…/CaseLogEntryFormFactory.php• L36-80
Extension detail components
ExtensionDetails is a reusable component for extension management screens. It presents the extension identity and status with a selection control, badges, and a menu for actions such as viewing its description or allowing a forced uninstall. The component keeps these controls together so extension pages can use one consistent interaction pattern. sources/…/ExtensionDetails.php sources/…/ExtensionDetails.php
References: sources/…/ExtensionDetails.php• L15-53 sources/…/ExtensionDetails.php• L181-229
Portal page components
Portal pages use the same high-level idea of a shared shell with feature content. The home controller renders visible portal bricks into the home page, while brick routes provide focused create, browse, manage, object, and aggregate experiences. This makes a portal page a composition of product-facing tiles and controller responses rather than a single fixed screen. datamodels/…/DefaultController.php datamodels/…/create_brick.yaml datamodels/…/browse_brick.yaml datamodels/…/manage_brick.yaml
References: datamodels/…/DefaultController.php• L48-87 datamodels/…/create_brick.yaml• L18-21 datamodels/…/browse_brick.yaml• L18-52 datamodels/…/manage_brick.yaml• L18-46
Change checklist
When these files or sections are changed, remember to consider these:
- A new back-office controller operation must remain discoverable by the route service and must have a route URL that matches every caller.
- A change to a page template or UI block resource contract must cover both the first page load and later Ajax loads. Resource de-duplication depends on stable file identifiers.
- A change to an Ajax response type must preserve the client contract for HTML fragments, direct JSON data, wrapped JSON data, raw downloads, PDF files, or Turbo stream updates.
- A controller-backed legacy Ajax operation must keep its operation name, controller action, success shape, and error shape aligned with the browser caller.
- A portal route change must keep the route name, URL pattern, controller action, and any generated links aligned across the route collection and portal templates.
- A portal template override must use the template identifier registered by the controller or provider. A path change without that registration leaves the route with no view.
- A form or unsafe Ajax request must keep the expected Ajax header or transaction protection. Otherwise the endpoint rejects the request before it reaches its operation.
- A linked-object Ajax action must keep its JSON or HTML response contract and must carry a valid transaction token for changes. A change to the linked-object form must also preserve the host object and relation context used to prefill it.
- A JavaScript or URL action must keep its UID, target behavior, data attributes, ARIA values, and source popup-menu item aligned when it is converted into a button, top-bar action, or activity-panel action.
- A button-bar change must keep button IDs and the overflow marker consistent. The visible item and its popover copy use those IDs to stay linked.
- A case-log activity action must keep its case-log section and submission mode aligned. Mixed autonomous and bridged forms are not a valid activity-panel state.
- Data attribute names must remain valid normalized names. Invalid names stop the UI block from producing its browser metadata.
- An object detail template change must keep its object class, object ID, display mode, state metadata, and optional schema link aligned with the object detail block and its browser behavior.
- A preference field must keep its stored key, allowed values, validation, and apply operation aligned so the page does not show a setting that cannot persist.
- A shortcut change must keep the user owner, saved page context, OQL, table settings, and navigation update aligned across the model, preference page, and Ajax operations.
- A user-picture Ajax change must keep the JSON success and image-data shape aligned with the preference page code that updates the navigation image and shows the result message.
- Export and inline-image operations must keep their portal or console access classification aligned with the caller. A shared operation can be rejected if it is assigned the wrong context.
- A route dispatched through pages/ajax.render.php must preserve its output ownership. A non-page response must finish its own output, while a
WebPageresponse must continue through the endpoint's page output path. - Dashboard, relation, upload, and lock operations must keep their output type and client follow-up aligned. Some return direct JSON or files, while others return markup or scripts that trigger a later refresh.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Missing or unreadable back-office configuration | The request stops at a setup or configuration message instead of opening the application | The application root checks configuration presence and access before redirecting to the start page or setup |
| Unknown back-office route | URL generation fails early or dispatch falls through to the legacy operation path | The router validates route availability before generation and pages/UI.php checks CanDispatchRoute() |
| Missing Ajax header or invalid transaction token on an unsafe request | The server returns 401 Unauthorized before the operation runs | The Ajax endpoint checks X-Combodo-Ajax after login and validates the transaction token when the header is absent |
| Portal or console context is wrong for a shared Ajax operation | A valid export or editor request is rejected by the login check | pages/ajax.render.php classifies portal-compatible operations before login and uses the console context for the rest |
A routed Ajax action writes output but returns no WebPage | The endpoint must stop without trying to render a second response | The route branch ends the script when the router has already produced a non-page response |
| Missing Twig template or template error | A full request fails as a page error, while an async request receives an error alert in its returned markup | Twig rendering logs the source and converts async template errors into a visible alert |
| Reuse of a response type for the wrong client | The browser may try to parse a page shell as JSON or show scripts and markup where a file, PDF, or Turbo stream is expected | JsonPage, AjaxPage, DownloadPage, PDFPage, and the Turbo response path keep separate content and output rules |
| Linked-object action is called outside Ajax or with an invalid transaction token | The relationship action fails instead of changing or returning linked-object data | LinkSetController requires an XMLHttpRequest for its operations and validates the transaction token before delete or detach |
| Portal route points to an unavailable controller action | Symfony cannot produce the portal page or response | The portal route collection binds each pattern to a controller action and imports extension routes in one place |
| Controller-backed Ajax operation returns a changed JSON shape | The browser treats a successful action as a failure or cannot apply the returned page state | Each operation keeps its named success and error fields aligned with its caller |
| Object detail metadata or status context is missing | Object-page browser behavior or the visible object header cannot identify the object or its current state | ObjectDetails supplies stable object metadata and the template emits the status and optional schema link from the same block |
| Button-bar item has an invalid type or a missing overflow marker ID | The bar rejects the item or cannot move the intended action into its overflow menu | The button-bar factory accepts only buttons and separators, and the overflow mode uses stable button IDs |
| Action UID is reused in one activity panel | The action builder merges entries that should be separate | Activity-panel action construction groups actions by UID and requires unique action identities |
| Case-log forms use mixed submission modes | The activity panel cannot decide whether its compose action submits autonomously or through the host form | ActivityPanel::IsCaseLogsSubmitAutonomous() rejects a mix of autonomous and bridged forms |
| Data attribute name does not match the supported name pattern | UI block metadata creation raises an invalid-attribute error | DataAttributes normalizes names and accepts only lower-case names with supported separators |
| Preference field name or apply operation does not match its stored preference | The page can display a value that is not saved or can save the wrong setting | pages/preferences.php builds the field and handles its named operation as one contract |
| Shortcut request targets a shortcut owned by another user or an absent shortcut | The rename or delete action fails with an object-not-found security error | Shortcut Ajax operations scope lookup by the current user before changing the object |
| User-picture response omits the expected success or image data | The preference page cannot update the navigation image or show the success state | The preference operation returns a JSON result and the browser checks its success flag before applying the image URL |
| Inline-image browse request has no valid temporary transaction or object access | The editor cannot browse or insert an image and the request is rejected | The endpoint validates the temporary transaction, class, and object visibility before rendering the image picker |
| Dashboard import has an invalid transaction or dashboard definition | The import returns an error instead of changing the dashboard | The endpoint validates the transaction and returns a data-only JSON result with an error field |
Key files
| File | Why to read it |
|---|---|
| index.php | Shows the application-level choice between the normal back-office start page and setup. |
| pages/UI.php | Shows authentication, route-first dispatch, legacy operations, and full-page output. |
| pages/ajax.render.php | Shows the back-office Ajax boundary, route delegation, response selection, legacy UI operations, exports, uploads, locks, and controller-backed JSON actions. |
| pages/preferences.php | Shows how personal settings, favorite organizations, shortcuts, newsroom choices, and user picture controls form one back-office page. |
| application/shortcut.class.inc.php | Shows the user-owned OQL shortcut model, page rendering, table settings, and rename dialog contract. |
| sources/…/Router.php | Defines the back-office route discovery, URL generation, and dispatch contract. |
| sources/…/ObjectController.php | Illustrates controller-driven object create and edit workflows for full and async requests. |
| sources/…/LinkSetController.php | Shows the Ajax contract for linked-object forms, relationship changes, and remote-object data. |
| sources/…/Controller.php | Shows shared access checks, operation handling, Twig setup, page types, and non-HTML responses. |
| sources/…/WebPage.php | Defines page assembly and final Twig rendering for common responses. |
| sources/…/NiceWebPage.php | Defines the shared theme, browser helpers, and activity behavior for interactive back-office pages. |
| sources/…/iTopWebPage.php | Defines the back-office shell and its navigation, top bar, content, and extension areas. |
| sources/…/AjaxPage.php | Defines partial page output and async resource loading. |
| sources/…/PDFPage.php | Defines PDF output used by relation exports and other document responses. |
| sources/…/TwigHelper.php | Defines the shared Twig environment and template error behavior. |
| sources/…/BlockRenderer.php | Defines how reusable UI blocks become HTML, JavaScript, CSS, and child output. |
| sources/…/UIBlock.php | Defines the reusable UI block shape, child blocks, resources, and browser metadata. |
| sources/…/ObjectDetails.php | Defines the object identity, display mode, lifecycle state, and browser context used by object detail panels. |
templates/base/layouts/object/object-details/layout.html.twig | Shows the object detail header metadata, status display, and optional data-model schema link. |
| sources/…/Button.php | Illustrates action buttons and accessible labels for form and navigation controls. |
| sources/…/ButtonBar.php | Defines how action groups fit in the bar and move overflow items into a popover. |
| sources/…/Field.php | Defines the label, value, state, and action composition used by form fields. |
| sources/…/TopBarFactory.php | Shows how configured top-bar features and extension quick actions enter the back-office shell. |
| sources/…/ActivityPanelFactory.php | Shows how object history, case logs, and extension activity actions enter the activity panel. |
| sources/…/ActivityPanelActionFactory.php | Shows how extension popup actions become grouped activity-panel controls. |
| sources/…/CaseLogEntryForm.php | Defines case-log form submission modes and its reusable action areas. |
| sources/…/ExtensionDetails.php | Illustrates a reusable extension-management component with status controls and actions. |
| datamodels/…/index.php | Shows the portal front controller and Symfony request lifecycle. |
| datamodels/…/routes.yaml | Shows the portal route entry point and route groups. |
datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig | Shows the portal shell, session message area, modal regions, and Ajax browser behavior. |
| datamodels/…/DefaultController.php | Shows how portal home content is assembled from visible bricks. |