cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create primary content page in smartedit

0 Likes
2,010

I am using smartedit 1811 version, and creating a new content page under pages section.

I understand that if a primary page already exists for the page type and template, SmartEdit will only allow you to create a variation page.

The question is smartedit provides a list of templates to choose from to select a template for creating new content page. How can i create a content page selecting an existing page template and in display condition selected as "primary", as doing this leads to error ERROR () () [RestHandlerExceptionResolver] java.lang.NullPointerException at de.hybris.platform.cmsfacades.cmsitems.predicates.PrimaryPageWithLabelExistsPredicate.lambda$0(PrimaryPageWithLabelExistsPredicate.java:40)

Thanks SM

Accepted Solutions (1)

Accepted Solutions (1)

former_member633554
Active Participant

I had this same problem, it was due to another cmspage having a null entry in the p_label field.

Run a check on the cmspages to see the nulls and either delete the page or set a label.

select cmspage.p_uid,pagetemplate.p_name,cmspage.p_label ,

pagetemplate.p_name as TemplateName,

catalogversions.p_version,catalogs.p_id

from cmspage

join pagetemplate on pagetemplate.pk=cmspage.p_mastertemplate

join catalogversions on catalogversions.pk=cmspage.p_catalogversion

join catalogs on catalogs.pk=catalogversions.p_catalog

where p_label is null

order by pagetemplate.p_name

As a note i think this issue is more likely to happen to people that upgrade from older version of hybris who have accumulated many content pages over the years.

Answers (0)