adobe / aem-eclipse-developer-tools

The Eclipse plugin that brings you the full connection to the Adobe Experience Manager, with auto-sync and project creation wizard.
Apache License 2.0
35 stars 23 forks source link

JCR Properties- adding cq:designPath to jcr:content(PageContent) node #62

Closed AliShirazi closed 4 years ago

AliShirazi commented 8 years ago

Hey guys,

I am getting a weird error when adding the cq:designPath to the jcr:content PageContent node. It says "The prefix "cq" for attribute "cq:designPath" associated with an element type "jcr:content" is not bound. Thinking the property type was the issue, I then tried to manually set it to String but no luck. It just stays empty. I also made sure the property was listed before jcr:primaryType. Even though the property still shows in the .content.xml on my local system, it does not auto-update in crxde lite unless I force push it to the AEM server or edit the node in crxde lite.

If I add the property in crxde lite and then "Import from Server" using the AEM plugin, there are no longer any errors about the cq:designPath property and the String type is automatically assigned. If I then remove and readd the property, I get the error again.

screen shot 2016-02-03 at 3 18 51 pm

rombert commented 8 years ago

Thanks for the report. How do you add the property, with the XML editor or via the JCR properties view?

AliShirazi commented 8 years ago

Hey Robert,

Not a problem, thanks for the quick reply! I tried to add it with both the XML editor and the JCR properties view.

Eclipse Version: Mars.1 Release (4.5.1)

I'm also using the latest version of the AEM plugin

AliShirazi commented 8 years ago

Robert,

It looks like this is actually a namespace issue, similar to https://github.com/Adobe-Marketing-Cloud/aem-eclipse-developer-tools/issues/50. I noticed the .context.xml file imported from CRXDE lite had xmlns:cq="http://www.day.com/jcr/cq/1.0". When I create a node of cq:PageContent, I only see the sling.apache.org/jcr/sling/1.0 namespace. I mentioned above about the issue with adding/re-adding, but I can't reproduce it after restarting eclipse and having the namespace there.

I guess CRXDE lite inputs them automatically in the .content xml file or something. I unfortunately did not think to double-check

rombert commented 8 years ago

I'll close this then as a duplicate and continue the discussion in #50

gabrielwalt commented 4 years ago

Closing this as there hasn't been activity for over a year.