Very simple template and a component | Community
Skip to main content
Level 8
July 5, 2025
Solved

Very simple template and a component

  • July 5, 2025
  • 2 replies
  • 657 views

Hi All,

 

I created a very simple template and a component.

 

1. When I am creating a page selecting this template, screen becomes blank. Kindly examine the attached package once and suggest. 

 

2. Also, I set allowedPaths of template to /content(/.*)?.

This template is available only at http://localhost:4502/sites.html/content.

How to make it available in this path and also all sites underneath it like "We Retail" and "WKND" ?

 

Highly appreciate all your replies.

 

Thanks,

Rama.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by nsvsrk

Hi,

 

Attaching package again.

 

But it says:

Correct the highlighted errors and try again.

  • The attachment's new pkg.zip content type (application/x-zip-compressed) does not match its file extension and has been removed.

 

Thanks,

RK.


Got resolution to my problem.

 

I deleted "/" before sling:resourceSuperType property of component and sling:resourceType property of template and it worked.

 

This question could be closed.

 

Thanks,

RK.

2 replies

Level 4
July 7, 2025

Hi @nsvsrk ,

By the way, i don't see any attachment.

 

Thanks,

Raju.

nsvsrkAuthor
Level 8
July 7, 2025

Hi,

 

Nothing in error.log.

 

PFA the package.

 

I attached it first time also, but it was lost somehow.

 

It is the simplest of the packages with just one template, one component to display "Hello World".

 

Thanks,

RK.

 

aanchal-sikka
Community Advisor
Community Advisor
July 7, 2025

@nsvsrk 

 

We are unable to access the package. Please share the logs

 

Aanchal Sikka
nsvsrkAuthor
Level 8
July 7, 2025

Hi,

 

Attaching package again and also logs zip.

Not sure you will be able to see them.

 

While creating the page, after selecting the Page Template, next screen is blank, as opposed to asking details of page like label,

 

Hi @kautuk_sahni and all admins, I am attaching documents but they are not seen by others.

Kindly suggest ASAP.

 

Thanks,

RK.

nsvsrkAuthor
Level 8
July 7, 2025

Hi,

 

Attaching package again.

 

But it says:

Correct the highlighted errors and try again.

  • The attachment's new pkg.zip content type (application/x-zip-compressed) does not match its file extension and has been removed.

 

Thanks,

RK.