Covar
Covar

Reputation: 900

How do I generate a URL for children of a WCM Site Area?

I have a servlet that uses the WCM 8.5 API to fetch the children of a SiteArea or and prints the contents in an unordered list. My question is how can I generate a URL to each piece of content so that my list can link out to the content or child portal pages?

Upvotes: 0

Views: 284

Answers (1)

Vaishnavi Dhamnikar
Vaishnavi Dhamnikar

Reputation: 13

You can create a menu component.

Use location as a search criteria. In the result design add the element tag pointing to autofill site area. It will look somewhat like this:

Header:

<ul>

Result Design:

<li>[Element context="autofill" type="content" key="Whichever_Key_used"]  </li>

Footer:

 </ul>

And you can point your servlet to fetch this menu component.

Upvotes: 1

Related Questions