Press Shift twice and Search Everywhere gets a B2C Entry Points tab. It finds the pipelines, controller routes, hooks, step types and custom APIs of your linked cartridges by name, the same entries as the B2C Entry Points tool window, and Enter opens the code that runs
Enter to open the code that runs. File results name their cartridgeA Site Archive tab sits beside it for what your site archive XML defines, see Site Archive
Open the B2C Entry Points tab
Link a cartridge
The tab shows up in projects with at least one linked cartridge, see Cartridges & Modules. Results need a valid license or trial
Press Shift twice
B2C Entry Points sits after Symbols and before Actions. Click it, or press Tab until it is selected
Type part of a name
An empty field lists nothing. While the IDE indexes, the tab searches the entries it collected last
Press Enter
Pick a result with ↑ and ↓, or scroll the list. The entry opens at the code that runs it, see Open the code. A double-click does the same
What a result shows
Each row is the tool window's tree row with the cartridge at the end
| Kind | Row | Example |
|---|---|---|
| Pipeline | The pipeline name and its type | Cart view app_storefront_pipelines |
| Start node | The route of the start node and start node | Cart-Show start node app_storefront_pipelines |
| Controller route | The full route name and its method. A SiteGenesis route shows its guards, such as get, https | Cart-Show GET app_storefront_base |
| Hook | The hook name, system for a Salesforce hook point, including OCAPI and SCAPI hooks such as dw.ocapi.shop.basket.items.beforePOST, and the script path | dw.order.calculate system ./cartridge/scripts/hooks/cart/calculate.js app_storefront_base |
| Step type | The step type ID, its kind (Script, Chunk or Pipeline) and the module file or pipeline it runs | custom.Loyalty-SyncMembers Chunk syncMembers.js int_loyalty |
| Custom API | The method, the SCAPI path (/<api>/v<version><path>) and the operation ID. An operation missing from schema.yaml shows not in the schema | GET /loyalty/v1/members/{memberId}/points getPoints int_loyalty |
Methods use the colours of the tool window: GET blue, POST green, PUT orange, PATCH purple, DELETE red and others, such as APPEND, grey. A SiteGenesis guard list takes the colour of its first guard. The text your search matched is highlighted
How names match
Names match the way class names do in the IDE: case doesn't matter, and letters match word starts and camel humps anywhere in the name
| You type | Finds |
|---|---|
cart-sh | Cart-Show first, then Cart-SelectShippingMethod and Cart-MiniCartShow |
MiniCS | Cart-MiniCartShow |
order.calc | dw.order.calculate |
syncmem | custom.Loyalty-SyncMembers |
pos | Every kind at once: the PosTerminal pipeline and its start nodes, the pos custom API, pos_terminal payment hooks and OCAPI hooks such as dw.ocapi.shop.basket.beforePOST |
A -, . or _ you type has to appear in the name. Besides its name:
- A custom API also matches by its API name and versioned path, such as
loyaltyorv1/members, one step below a name match - Other text of a row matches as plain text, below every name match: a hook's script path, a step type's module, function and pipeline, a custom API's summary and a pipeline's group and type. So
loyaltyCalculatefinds thedw.order.calculatehook whose script it is
The best match comes first. Equal matches follow the cartridge path of the site selected in the Site Scope widget, so the copy that runs on that site comes first. Cartridges outside that path, and every cartridge with Global scope, follow in the order of the tool window
Filter by kind
The funnel at the right of the tab row picks the kinds the tab shows: Pipelines, Controllers, Hooks, Step Types and Custom APIs, with the buttons All, None and Invert
- The funnel shows a dot while a kind is hidden
- The kinds you hide are saved for the project
- The filter applies to the All tab too
Open the code
Results have no preview. Enter or a double-click opens the code that runs, or the declaration when that code can't be found
| Result | Opens |
|---|---|
| Pipeline | The pipeline in the Pipeline Editor |
| Start node | The pipeline in the Pipeline Editor, on that start node |
| Controller route | The line that defines the route, such as server.append('Show', ...) |
| Hook | The script the hook runs. A system hook opens at the function its name ends with, such as beforePOST for dw.ocapi.shop.basket.items.beforePOST. Without the script, the entry in hooks.json |
| Step type | The step's function in its module, or execute for a script step that names none. A pipeline step opens its pipeline on the start node it calls. Without the module, the declaration in steptypes.json |
| Custom API | The function of the implementation script named after the operation ID. Without it, the operation in schema.yaml, then the endpoint in api.json |
Site Archive
The Site Archive tab finds what the site archive files of the project define, by ID. It comes after B2C Entry Points and needs a license
Enter opens the file in its editor with the row selected| Kind | Finds |
|---|---|
| Service, Profile, Credential | <service>, <service-profile> and <service-credential> in services XML |
| Job | <job> in jobs XML |
| Preference | <preference> in preferences XML, once for all its instance types |
| Custom object | <custom-object>, with its type: PaymentCountry / AT |
| Slot configuration | <slot-configuration>, with its slot and context: header-banner / summer global |
| Content, Folder | <content> and <folder> in library XML |
Each row shows the kind icon, the ID, its kind and the file it is in, such as AcmeUS/preferences.xml. A row marked mode="delete" is struck out. The funnel hides kinds, and the project keeps your choice
Enter opens the file in its site archive editor with that row selected. Commented-out XML isn't found
The All tab
Entry points also show up in the All tab under a B2C Entry Points group, so one search finds a controller file and the routes it defines. File results there and in the Files and Symbols tabs show their cartridge on the right, see Search & Navigation. ISML custom tags are in the Symbols tab by their tag name, see ISML Custom Tags
Troubleshooting
| Symptom | What to do |
|---|---|
| There is no B2C Entry Points tab | Link a cartridge, see Cartridges & Modules |
| The tab finds nothing | Check that the license or trial is valid. Open the funnel and check the kinds, with every kind unchecked nothing matches |
| Routes or hooks are missing from the All tab | The funnel of the B2C Entry Points tab hides that kind |
A search with - or . misses a name | The separator has to appear in the name. Leave it out to match word starts, such as cartsh for Cart-Show |
A hook opens hooks.json, not its script | The script path doesn't resolve to a file. Cmd+Click the path in hooks.json to check it |
Related
B2C Entry Points
Every entry point of your cartridges in one tool window
Site Archive Editors
Where Site Archive results open
Code Vision
Lenses above routes, hooks, step types and cartridge paths
Search & Navigation
Cartridge labels, gutter icons and Go to Declaration
Site Scopes
Order results by one site's cartridge path
Pipeline Editor
Where pipelines and start nodes open
Cartridges & Modules
Link the cartridges the search covers