Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Best Practice? Creating a node for the homepage (index) instead of using the parent node.

Avatar

Level 4

I am having a debate with the placement of homepage nodes and would like some insight.

Typical AEM convention is to use the parent node as a homepage. Example:

/content/mySite/en

You would simply run en through an HTML rendered and pull up en.html.

We have been talking about placing a node within their to act as the homepage.

/content/mySite/en/index.html

This follows a more traditional model, but isn't used in AEM from what I can tell. Can anyone break down the pros and cons of going with this format? So far we are just thinking it may be easier for content authors, but I feel there will be more configuration on the dispatcher/web server so that www.mySite.com pulls up that content node by default.

Thoughts?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

I would start from a URL perspective.

http://site.com/en.html
http://site.com/en/page1.html
http://site.com/en/page2.html
http://site.com/de/seite1.html

or

http://site.com/en.html
http://site.com/page1.html
http://site.com/page2.html
http://site.de/de.html
 

It depends very much on your specific usecase. If you have a multi-language page, you might want to act the language node as homepage. Or you already use multiple domains (language domains). Basically you can use both approaches.

View solution in original post

3 Replies

Avatar

Level 10

You can use either way but question would be on creating an extra node for index.html alone. Also,, we might have to hide this from navigation aswell.

If you are looking more from a URL perspective of having index.html, you can anyways achieve by creating a vanity URL for en.html

Usual practice of creating website in AEM would be content/<website name>/<locale_region>/pages

Avatar

Level 2

If your homepage goes through frequent updates/activation's, then you would want to have a index.html/home.html as en.html will flush all the child's as well.

Avatar

Correct answer by
Employee Advisor

Hi,

I would start from a URL perspective.

http://site.com/en.html
http://site.com/en/page1.html
http://site.com/en/page2.html
http://site.com/de/seite1.html

or

http://site.com/en.html
http://site.com/page1.html
http://site.com/page2.html
http://site.de/de.html
 

It depends very much on your specific usecase. If you have a multi-language page, you might want to act the language node as homepage. Or you already use multiple domains (language domains). Basically you can use both approaches.