Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all 12476 articles
Browse latest View live

sling:ResourceSuperType foundation/components/page

$
0
0

Hi Everybody,

 

I'm new to CQ and really enjoying it.  I have a question if someone can please help?

 

Can anyone help me understand how sling resolves a page component that has a resourceSuperType of  foundation/components/page ?  I created a page structure similar to the geometrixx pages, and have the following page component.

 

components/page/contentpage

body.jsp

content.jsp

footer.jsp

header.jsp

 

Therefore I discovered that I can override the body.jsp as this is the page selected by sling (I originally had contentpage.jsp).  Also using this structure I understand that if I have another template and page component I just extend the above "contentpage" component and override "content.jsp" keeping my web site structure (Nice!).

 

But what I don't understand is how how sling resolves to the body.jsp as the preferred script in the first place? Can anyone help me understand?

 

Thanks

Darren


localization in cq5

$
0
0

hi,

has anybody implemented localization in cq5.

plz tell me how to implement this. do i need t create any Locale properties or do any settings. as we do in java.

 

Thanks,

Amit

Need learning material or links for CQ5

$
0
0

Hi All,

 

I am planning to learn Adobe CQ5. Can anyone give me more information on Adobe CQ5?

 

Also share me the links to download the tool, learning material etc if any one has?

 

Thank you

AEM 5.6 and Spring DM

$
0
0

All,

 

I have created a spring DM bundle with an activator class, and tried to install the jar file using Maven commands, it successfully installs and sets the bundle context on first build , during subsequent builds i seem to be getting below error.  I restart the instance and it runs smooth.

This is in AEM 5.6, JDK 1.7. Anyone facing similar issues?

 

ERROR* [SpringOsgiExtenderThread-1] org.apache.sling.extensions.threaddump.internal.Activator Uncaught exception in Thread Thread[SpringOsgiExtenderThread-1,5,spring-osgi-extender[fc6a4c]-threads] java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

          at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory( AbstractRefreshableApplicationContext.java:171)

          at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicati onContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)

          at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicati onContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)

          at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicati onContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)

          at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicati onContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)

          at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.ref resh(AbstractDelegatedExecutionApplicationContext.java:175)

          at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextL oaderListener.java:718)

          at java.lang.Thread.run(Unknown Source)

 

 

Regards,

NZ

 

How to create a custom trait in Segmentation - CQ????

$
0
0

Hi,

 

Can anyone share how we can create a new custom trait which we can implement in segmentation editor???

 

For eg:

 

I have a query parameter, depends on the query parameter value i need to create a teaser.

 

How can i achieve it??

 

Appreciate for any help...

 

Regards,

 

Shankar .A

CQ 5 Tag Search with German special characters

$
0
0

Hi all,

 

I configured CQ 5.5. to do search on a set of custom tags that I created for documents. I did that by adding some new tags in /etc/tags/custom and adding this path in /apps/dam/content/search/searchpanel/facets/tagoptions. I noted that search works fine for any new tag that I created except those tags which contain German characters like . Can anyone help here on what could be the issue ?

 

Thanks!

enable osgi component only on publish instance

$
0
0

How can I active a osgi component only on publish instance or specified author instance in CQ? Is there configuration?

 

thx

Vaultclipse plugin

$
0
0

Has anyone got vaultclipse plugin working for Eclipse in windows machine.  I have it working just fine in Mac.

In windows, same configuration gives me filenotfound error when "import".  It looks like it exports in different folder and tries to import from different folder.

 

Any thoughts?


Page Properties Disabled on pages sidekick

$
0
0

Hello.

 

  I'm trying to set some pages images, this way I may create a carousel. Ok, piece of cake, but when I try to edit my page properties on sidekick, the "Page properties..." option is disabled.

 

Page properties disabled.jpg

 

  The include for global.jsp is in the component jsp file, and I inserted the resourceSuperType property as well (mapping the page parent to foundation/components/page).

 

  What else should I do?

Correct Syntax for Reteriving Current Template

$
0
0

I've been reading over the documentation and I'm have a difficult time getting the template being used on the current page.  In my component, all I want to do is use an IF statement to see if template MyTemplate is being used and apply some  HTML - if not, apply different HTML.

 

<%@include file="/libs/foundation/global.jsp"%><%@page session="false"            import="com.day.cq.wcm.api.WCMMode"
%>

if (currentPage.getTemplate().equals(MyTemplate) {
    %>temp = my template<%
} else {    %>temp not equal to my template<%       }

 

Can someone correct my syntax?

Provide alternative JSON renderer? Without losing default JSON renderer?

$
0
0

REQUIREMENT

Construct some custom JSON rendition of a page. For example: /content/site/page.my.json

 

And we want to accomplish this without losing the out-of-the-box functionality:

 

  • /content/site/page.html - WORKS OUT OF THE BOX
  • /content/site/page.json - WORKS OUT OF THE BOX

 

WHAT WE'VE TRIED

 

We've added a jsp to our global page template and named it my.json.jsp. This has given us this behavior:

 

  • /content/site/page.my.json - INVALID RECURSION SELECTOR (the request gets handled by default json renderer and "my" is not a valid recursion selector)
  • /content/site/page/_jcr_content.my.json - WORKS (we can see our custom json renderer working), but we have other reasons we cannot use this URI.

 

So we're nearly there. Next, we add "json" to the list of extensions that are treated with default resolution behavior, by going to felix config and editing the "Apache Sling Servlet/Script Resolver And Error Handler:
resolverconfig.png

 

By doing this, now our custom json WORKS, but we get the following results:

  • /content/site/page.my.json  - WORKS (our custom JSON renders)
  • /content/site/page.json - DOESN'T WORK (html is rendered rather than the default JSON renderer)

 

How can we provide this custom renderer at *.my.json without losing the functionality of the default  *.json renderer, necessary for dialogs in the page properties, etc.

 

Thanks!

Set Server Timezone

$
0
0

Hello,

 

Our servers are set a Pacific Standard Time; however, when I make a change on one of our author instances it shows as Easter Standard Time.  I would have though the time was taken form teh server.  In any case, where/how do I set the timezone for all of my machines (so that the Publish machines recognize the same timestamp) in a Clustered environment?

 

Thanks

Authentication failing on author and publish servers without being prompted

$
0
0

When trying to view a published page on my publish server, at http://mysite:4503, I'm getting this, with an otherwise blank page back:

"User name and password do not match"

 

I was never prompted for a username.  At that URL, I would normally see the Geometrixx sample page, which would have a login prompt to click on.  Over on my author instance, at this URL (http://mysite:4502), I am no longer greeted by the WCM admin console.  I now have a generic browser dialog that says:

 

"A username and password are being requested by http://mysite:4502.  The site says: "Sling (Development)""

 

None of my admin or other users passwords are accepted.  Just prior to these issues, I was having another authentication error shown on my author instance, which prompted me to restart the instances.  The prior message was simply "Authentication Failed" when trying to view the WCM console, and the URL would change to:

 

http://mysite:4502/system/sling/cqform/defaultlogin.html?resource=%2F&$$login$$=%24%24logi n%24%24

 

 

Any idea what could be going on?  My application itself, was not written to require a login, and on the the only authentication that I'm used to performing is for the WCM console.

 

Thanks.

How to create Tooltip for textfield in CQ?

$
0
0

Hi

 

     I have a textfield. When i keep cursor on the field a tooltip has to appear with a message. What should i write to create the tooltip in the focus event of the textfield so that my requirement is acheived

 

 

Thanks

 

Veena

Manually Clean Dispatcher Cache

$
0
0

We have a requirement that we update some details of a page from a feed after certain interval of time and then we need to clean the dispatcher cache.

 

We have done few sling mapping also

e.g.

for page  /content/mysite/page1.html we have defined a sling mapping and whenever a request comes for http://domainname/mysite/page1.html it serves /content/mysite/page1.html

 

Cache generated : /mysite/page1.html in docroot folder

 

Once the page data is updated by the feed, we need to clean the cache.

 

I am trying to manually clean the cache by making following  POST request at http://domainname/dispatcher/invalidate.cache with parameters

CQ-Action: Activate
CQ-Handle:
/mysite

Content-Length: 0


It returns 201 with following but the cache is not deleted.  Am I doing something wrong ?

 

 

Any help will be much appreciated.

 

Regards,

-Yogesh


javax.jcr.nodetype.ConstraintViolationException : Node is protected

$
0
0

Hi

 

    I have an nt:unstructured node to which i am writing some properties through java code. The properties are getting written but in my error log i am getting

 

javax.jcr.nodetype.ConstraintViolationException: Unable to perform operation. Node is protected.

 

       this error message.  Can anyone tell me why it happens and how to avoid this error message

 

 

 

Thanks and regards

 

Veena

CQ5 Response Encoding

$
0
0

Hi Folks,

 

Does any one know whats default character encoding used by CQ5? (UTF-8, ISO-8859-1 etc)

 

Does it depend on whats the encoding used when the file was stored, if so whats the default encoding CRXDE uses to store file?

/etc/crxde/profiles/default/classpath.xml.xslt has following setting.. does it means anything in this case?

<xsl:output method="xml" encoding="UTF-8" indent="yes"/>

 

Thanks an in advance!

 

- Adnan

How to replicate contents of a folder

$
0
0

We have a folder(nt:folder) containing images. We would like to replicate all the images to the publish environment. I have tried the following implementation but it only replicates the folder  without the content. Is there any way to replicate the content at the same time without iterating through each node?

 

Currently using CQ5.4

 

Thank you.

        String agentId="someAgent";        String folderPath="/content/dam/images/someFolder";        ReplicationOptions opts = new ReplicationOptions();        AgentIdFilter filter = new AgentIdFilter(agentId);        opts.setFilter(filter);        Replicator replicator = sling.getService(Replicator.class);        replicator.replicate(mySession, ReplicationActionType.ACTIVATE, folderPath, opts);

An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97

$
0
0

Hi All,

 

I am new to DAY CQ development. I installed jdk1.6.0_37 in my system. I started cq 5.5 jar on port 4502. When i start cq and open localhost:4502 in browser I am getting following exception "An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97". PFA for more details and help in this

 

Thankscq login exception.jpg

Components are not appearing in Component Group which we mention during component creation...

$
0
0

Hi,

 

The components are not appearing in the Component Group which we mention during component creation...

 

Though i mentioned the property Compoent Group while creating the compoent, it's not appearing in the side-kick under that specified component Group...

 

Can anyone help me on this..??

 

Thanks,

 

Shankar .A

Viewing all 12476 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>