Gowthami Reddy
Gowthami Reddy

Reputation: 430

Changing the Landing page cq5 publish

When a user enters localhost:4502 the landing page located at /content/****/****/shop.html should be loaded.

Tried this.

Can you please suggest

  1. How to acquire this a project specific?
  2. How to activate this on publish environment?

Upvotes: 0

Views: 267

Answers (2)

Gowthami Reddy
Gowthami Reddy

Reputation: 430

  1. How to acquire this a project specific?

Copied the config folder from /libs/cq/core/ to /app/<project>/

  1. How to activate this on publish environment?

overridden the com.day.cq.commons.servlets.RootMappingServletfor publish instance.

Ref: BLOG

Upvotes: 0

toniedzwiedz
toniedzwiedz

Reputation: 18553

Go to CRXDE on your Author instance and open the /content node.

The resource type of this node is sling:redirect, its purpose is to take the user to another page when they try to a page specified by the node's sling:target property. This is handled by the Sling Redirect Servlet.

Set sling:target to the path of the page you want to serve (/content/****/****/shop.html). Save the changes.

Then go to the site admin (Websites) and activate the /content page.

Once the content change makes it to the Publish instance, your page should be served when you hit http://localhost:4503

Upvotes: 1

Related Questions