Testing the New Service
When you open the Websites Administration console and browse through your site, the browser is issuing an Ajax call to get the JSON object that is used to build the console. For example, when you browse to the /content/geometrixx
folder, the following request is sent to the AEM server to build the console:
https://localhost:4502/content/geometrixx.pages.json?start=0&limit=30&predicate=siteadmin
To make sure that the new service is running after having deployed the bundle containing it:
-
Point your browser to the following URL:
https://localhost:4502/content/geometrixx.pages.json?start=0&limit=30&predicate=siteadmin -
The response should display the new properties as follows:
Displaying the New Column
The last step consists in adapting the nodes structure of the Websites Administration console to display the new property for all the Geometrixx pages by overlaying /libs/wcm/core/content/siteadmin
. Proceed as follows:
-
In CRXDE Lite, create the nodes structure
/apps/wcm/core/content
with nodes of typesling:Folder
to reflect the structure/libs/wcm/core/content
. -
Copy the node
/libs/wcm/core/content/siteadmin
and paste it below/apps/wcm/core/content
. -
Copy the node
/apps/wcm/core/content/siteadmin/grid/assets
to/apps/wcm/core/content/siteadmin/grid/geometrixx
and changes its properties:-
Remove pageText
-
Set pathRegex to
/content/geometrixx(/.*)?
This makes the grid configuration active for all Geometrixx websites. -
Set storeProxySuffix to
.pages.json
-
Edit the storeReaderFields multivalued property and add the
starred
value. -
To activate MSM functionality, add the following MSM parameters to the multi-String property storeReaderFields:
- msm:isSource
- msm:isInBlueprint
- msm:isLiveCopy
-
-
Add a
starred
node (of type nt:unstructured) below/apps/wcm/core/content/siteadmin/grid/geometrixx/columns
with the following properties:-
dataIndex:
starred
of type String -
header:
Starred
of type String -
xtype:
gridcolumn
of type String
-
-
(optional) Drop the columns that you do not want to display at
/apps/wcm/core/content/siteadmin/grid/geometrixx/columns
-
/siteadmin
is a vanity path that, as default, points to/libs/wcm/core/content/siteadmin
.
To redirect this to your version of siteadmin on/apps/wcm/core/content/siteadmin
, define the propertysling:vanityOrder
to have a value higher than that defined on/libs/wcm/core/content/siteadmin
. The default value is 300, so anything higher is suitable. -
Go to the Websites Administration console and navigate to the Geometrixx site:
https://localhost:4502/siteadmin#/content/geometrixx. -
The new column called Starred is available, displaying custom information as follows: