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

How to disable/enable a dialog dynamically?

$
0
0

I use <cq:include> to include a component, which has a dialog. I want to disable the dialog dynamcally based on some condition, i.e. not allow the author to open the dialog when he double-click on the component. How can I achieve that easily?

 

Thanks,


CQ5: User Accounts & Persistent Managers: LARGE NUMBERS (50M)

$
0
0

Hi,

I am designing a user registration application. I need to architect this so that it could store support upto 50 million (i.e. 50,000,000) user records or registrations.

 

I read some documentation that JackRabbit (the underlying CRX repository) does not appear to support flat content hierarchies i.e. you'll start seeing problems when you put more 10k child nodes under a single parent. Is this true?

 

I can see in CQ5, that there is a ‘home’ folder that contains a ‘user’ folder. Here there are folders in alphabetical order ‘a’, ’b’,‘c’….’z’. These folders store the user email id’s based on the first alphabet of the email. So there seems to be an attempt to possibly create a deeper hierarchy. However, even with this approach, we are looking at about (averages) 2M child nodes - is this supportable?

 

Is the default TarPM (Tar Persistence Manager) the best options for such large amounts of data? Or should we be considering RDBMS based persistence managers?

 

Any inputs / thoughts / suggestions would be greatly appreciated.

 

Thanks
karan

CQ 5.4 - How to create a column layout?

$
0
0

Greetings everyone;

 

 

  I'm trying to create a website with some components that I get from a imported site... So far, so good, but when I try to drop a "column" component in my website from the components little window (even when I select the 2 columns or the 3 columns), the is no one column layout and the "columns" doesn't exist

 

  In Geometrixx samples, the columns got layouts like "2 columns, 50 x 50 x" and others, but none is listed on my Column Layout dialog (editing the component). I try to find the source-code of the component, but without success. Can someone tell me how to get real "columns" structures on my site?

 

  Some images:

 

 

    No Columns 1.jpg

 

     No columns 2.jpg

CQ5 - Download and Start Working

$
0
0

Hi,

 

I am new to Adobe technologies & products. I need to explore Adobe CQ5 in detail as a developer.

 

I am following below link for getting started:

http://dev.day.com/docs/en/cq/current/getting_started/download_and_startworking.html

 

The link is forwarding me to Adobe Licensing Web Site and which asking for user name and password.

 

My concern is that:

 

- Where and How can I download CQ5?

- Is CQ5 is available as developer edition?

- Is CQ5 is available free for developers or for non commerical use?

 

 

Please guide me.

 

Thanks,

Tejas

Where is Content Explorer in CQ 5.5?

$
0
0

Hello,

 

I have tried to use Content Explorer with CQ 5.5. Going to the url, <host>:<port>/crx/, no longer shows the CRX console. What is the new URL for the Content Explorer and the Content Loader?

 

Xavi

Finding broken link in url

$
0
0

Hi, 

 

i would like to generate a report to identify broken links in a page or list pages under a website in CQ5 server. how can we generate this?

 

pleas help me.

 

Raja R

How to set allowedPaths property in Components?

$
0
0

How to set allowedPaths property in Components?

How can we restrict a Cq:component to be used on pages with certain path ,like the way we do do for cq templates.

I have tried allowedParents property as well. Doesn't seem to work.

Any pointers are appreciated.

Thanks!

Karan

AuthenticationSupport service missing after building index.

$
0
0

I got an error on browser console after starting the CQ Author instance saying that "Service Unavailable AuthenticationSupport service missing. Cannot authenticate request. "

 

I just started all the bundles and also rebuit the index but still am getting the same error message.

 

When i logged in to system/console(OSGI Console) One thing i just noticed Authenticator tab is missing.

 

Help out to solve this issue

 

Thanks in Advance...

 

Mahesh


How to improve browser compatibility of Video component?

$
0
0

Hello,

 

I have problems to correctly visualize videos using players created by the ootb video component.

 

We are using the ootb video component of CQ5.4

We set the following configurations and did do the following steps:

 

1) Download of older ffmpeg version ffmpeg-git-61b1d85-win32-shared (supports libvo_aacenc codec)

2) Change in High Quality H.264 Profile in tab Audio the codec to libvo_aacenc and in tab Basic the Extension to mp4 and MIME-type to video/mp4

3) After uploading a mp4, mov, wmv or flv file into DAM a workflow creates the 3 renditions called cq5dam.video.firefoxhq.ogg, cq5dam.video.hq.mp4 and cq5dam.video.flv.flv as wanted.

4) The video can get drag&dropped into the video component, then we change in designmode of the video component:

5) Under tab Profiles add all 3 video profiles (Firefox HQ ogg, Flash 7 + low quality, High Quality H.264), but actually Flash 7 + low quality is not needed for HTML5

6) Under tab Flash choose Flash video player "Strobe (H264, Flash 10.1+) or FLV (Flash 7+)", for Strobe player H264 Profile choose the rendition High Quality H.264, for FLV player FLV profile choose the rendition Flash 7 + low quality.

 

These configurations are saved under the page templates' designs, so we have to publish the page template to see those configs also on published pages.

 

 

Until this point everything is working well. The video is visible with progressive download in IE8, and also in many "modern" browsers such as IE9, Chrome, newer Safari...

 

However, there are often problems with other browsers, since many clients are complaining about low quality (flv rendition?) or even "unavailable" videos and grey empty players, e.g.:

a) FF15, Flash Player 11, Java disabled gives "No video with supported format and MIME type found."

b) Safari 4.0, Flash Player 10, Java enabled gives "The content that you are trying to play requires the latest Flash Player version. Please upgrade and try again."

(Instead Firefox 6.0, Flash Player 9, Java disabled is working well)

...

 

 

--> Did anybody notice same browser incompatibility problems? Did we do something wrong?

--> Does anybody use a custom player which is working better on all browsers? Are there any other developed video components out there?

--> Do you have any suggestions how to improve the quality of the flv rendition by modifying the profile Flash 7 + low quality?

 

Thanks in advance

Connect to JMX tools from java

$
0
0

Hello everyone, hope you’re all having a wonderful day,

 

I’m currently trying to connect to the JMX console’s LDAP functionality through a custom login module. I’m currently trying to use the code located on this web page:

 

http://dev.day.com/content/kb/home/Crx/CrxFAQ/how-to-synchronize-user-with-ldap.html

 

The problem I am running into is this:

 

I run the code, and I am greeted with a null pointer error originating from the line: MBeanServerConnection server = (MBeanServerConnection) JMXConnectorFactory.connect(new JMXServiceURL(serverUrl), attributes).getMBeanServerConnection();

 

What I would like to know is this:

What are the possible causes? I believe that the problem stems from the fact that I cannot connect to the JMX console for some unknown reason, but I could be wrong. I’ve had LDAP working for a while now, so I know that I am able to successfully connect to the server.

 

Additionally: How do I close my connection to the LDAP server after I have finished? I’ve pasted the code below so you guys can try and figure what the problem is. Thanks!

 

            public static void syncUserToCrx(String userName){

                        String userid = "admin";

                        String password = "admin";

                        String serverUrl = "service:jmx:rmi:///jndi/rmi://localhost:9000/jmxrmi";

                        String OBJECT_NAME = "com.adobe.granite.ldap:host=(host),port=389,type=Tools";

                        String[] buffer = new String[] { userid, password };

                        Hashtable<String, String[]> attributes = new Hashtable<String, String[]>();

                        attributes.put("jmx.remote.credentials", (String[]) buffer);       

                        MBeanServerConnection server;

                        ObjectName name;

                        try {

                                    server = (MBeanServerConnection) JMXConnectorFactory.connect(new JMXServiceURL(serverUrl), attributes).getMBeanServerConnection();

                                    name = new ObjectName(OBJECT_NAME);

                                    LDAPUserMBean ldap = (LDAPUserMBean) MBeanServerInvocationHandler.newProxyInstance(server, name, LDAPUserMBean.class,false);

                                    ldap.syncUser(userName);

                                   //This is my trying to close the connection

                                    server.unregisterMBean(name);

                        } catch (MalformedObjectNameException e) {

 

                                    LOG.error("Line 79: "+e.getMessage());

                                    e.printStackTrace();

                        } catch (NullPointerException e) {

 

                                    LOG.error("Line 83: "+e.getMessage());

                                    e.printStackTrace();

                        }

                        catch (MalformedURLException e) {

                                    LOG.error("Line 88: "+e.getMessage());

                                    e.printStackTrace();

                        } catch (IOException e) {

                                    LOG.error("Line 90: "+e.getMessage());

                                    e.printStackTrace();

                        } catch (InstanceNotFoundException e) {

                                    LOG.error("Line 94: "+e.getMessage());

                                    e.printStackTrace();

                        } catch (MBeanRegistrationException e) {

                                    LOG.error("Line 97: "+e.getMessage());

                                    e.printStackTrace();

                        }

 

 

            }

accessing/stroing file from/to DAm programatically

$
0
0

how do I write java code to upload a file in DAM ?

 

How Do I retrieve a file from DAM to save/export on local system. ?

Nothing shows in sidekick inspite of the design selection

$
0
0

Additional update-  If the same page, I view it in preview and revert back to authoring mode, sidekick gets populated. So preview does the trick of sidekick population but not on all the templates. For few, the sidekick stays empty all times but parsys has the component list from design.

 

Hello,

 

     I have a template which has usual header/footer/leftnav embedded in it. In the body of the template there are two components. First is embedded global headline component and next is a parsys component. I go in design and identify the components that will be part of parsys and save it. There are two things happening here.

 

1. No matter what I do, sidekick doesnot populate at all and is always empty.

 

2. If I directly go to the parsys and righclick on new, another popup comes that lists all the selected component identified in the design. So I can create the content directly from parsys but not from sidekick.

 

Why is sidekick empty? How can that be fixed? I have attached the code.

 

<%@ include file="/apps/homesite/components/global.jsp" %>

  <cq:includeClientLib categories="820subNav"/>

<section id="content" class="container_12 clearfix">

          <aside id="leftSubNav" class="twoCol">

                      <cq:include path="leftnav" resourceType="homesite/components/leftnav"/>

          </aside>

          <div id="content-wrapper" class="tenCol">

        <div id="subIndustry" class="mainPadding">

          <cq:include path="globalheadline" resourceType="/apps/homesite/components/globalheadline"/>

          <cq:include path="subindustries" resourceType="/apps/homesite/components/parsys"/>

          <%--For this section of content created in parsys, sidekick will have video and multiple lists with no links --%>

        </div>

          </div>

</section>

<cq:include path="collateralcarousal" resourceType="/apps/homesite/components/insights/collateralcarousel"/>

 

 

Thanks

How to capture comments and read in next participent steps in Workflow?

$
0
0

I want to capture comments in one of the participent steps of my workflow and read them in the next step . Please share some suggestions on it .

I have added a from step as the participent step but it is saving data with random ids . I am not able to figure out how to read the data for corresponding process step in the workflow ?

 

Please help .

Unable to set maximum for tags widget

$
0
0

Hello,

 

according to the 'tags' widget (/libs/cq/tagging/widgets/source/widgets/TagInputField.js) documentation it should be possible to restrict the namespaces to select from usint the 'namespaces' attribute.

This works fine if I only specify the namespaces to restrict to (namespaces = [namespace1,namespace2].

But still according to the documentation, it should also be possible to restrict the number of tags that can be selected using the following format for each namespace in the 'namespaces' array:

 

{

    name: "namespace",

    maximum: 1

}

 

Unfortunately, that does not work. I have tried all sorts of combinations.

 

Anyone else stumbled into this issue?

 

Kind regards,

 

Luc

This node already exists: /etc/packages

$
0
0

Hello all!

 

I've been trying to upload packages into CQ5 via Java, based on the documented curl commands at http://dev.day.com/docs/en/crx/current/how_to/package_manager.html, but I've hit a strange issue when trying to upload packages to publish instances.  The reason I'm uploading to the publisher directly is because the package only contains ACL nodes, and these do not seem to replicate from author to publisher (from everything that I've read and tried).

 

I'm using the older /crx/packmgr/service.jsp method in my Java - I know that this is outdated, but it gives me a better debug output of what goes wrong than the /crx/packmgr/service/.json/?cmd=upload method.  I get the same failures with the newer json methos as well.

 

When I run my code specifying "author", I get the following response, and the package has uploaded successfully:

 

<crx version="2.3.15" user="admin" workspace="crx.default">

  <request>

    <param name="file" value="author_package.zip"/>

    <param name="name" value="author_packagename"/>

  </request>

  <response>

    <data>

      <package>

        <group></group>

        <name>author_packagename</name>

        <version>0.01</version>

        <downloadName>author_package.zip</downloadName>

        <size>1754056</size>

        <created></created>

        <createdBy>admin</createdBy>

        <lastModified></lastModified>

        <lastModifiedBy>admin</lastModifiedBy>

        <lastUnpacked></lastUnpacked>

        <lastUnpackedBy>null</lastUnpackedBy>

      </package>

    </data>

    <status code="200">ok</status>

  </response>

</crx>

 

 

If I run the following curl command, I get the exact same response as my Java, so I'm happy that the Java is correct and working:

 

curl -u admin:admin -F file=@author_package.zip -F name=author_packagename http://127.0.0.1:4504/crx/packmgr/service.jsp

 

 

 

If I run my Java code specifying "publisher", I get the following response, and the package does not upload:

 

<crx version="2.3.15" user="anonymous" workspace="crx.default">

  <request>

    <param name="file" value="publisher_package.zip"/>

    <param name="name" value="publisher_packagename"/>

  </request>

  <response>

    <status code="500">javax.jcr.ItemExistsException: This node already exists: /etc/packages</status>

  </response>

</crx>

 

 

Trying the equivelant curl command, I get the following response, and the package has uploaded:

 

curl -u admin:admin -F file=@publisher_package.zip -F name=publisher_packagename http://127.0.0.1:4505/crx/packmgr/service.jsp

 

<crx version="2.3.15" user="admin" workspace="crx.default">

  <request>

    <param name="file" value="publisher_package.zip"/>

    <param name="name" value="publisher_packagename"/>

  </request>

  <response>

    <data>

      <package>

        <group></group>

        <name>publisher_packagename</name>

        <version>0.99</version>

        <downloadName>publisher_package.zip</downloadName>

        <size>12890709</size>

        <created></created>

        <createdBy>null</createdBy>

        <lastModified></lastModified>

        <lastModifiedBy>null</lastModifiedBy>

        <lastUnpacked></lastUnpacked>

        <lastUnpackedBy>null</lastUnpackedBy>

      </package>

    </data>

    <status code="200">ok</status>

  </response>

</crx>

 

 

If I take away the -u parameter of the successful curl command, I get the following response, which is the same as my "publisher" Java response:

 

curl -F file=@publisher_package.zip -F name=publisher_packagename http://127.0.0.1:4505/crx/packmgr/service.jsp

 

<crx version="2.3.15" user="anonymous" workspace="crx.default">

  <request>

    <param name="file" value="publisher_package.zip"/>

    <param name="name" value="publisher_packagename"/>

  </request>

  <response>

    <status code="500">javax.jcr.ItemExistsException: This node already exists: /etc/packages</status>

  </response>

</crx>

 

So....

 

Does anyone know if a publish instance deals with authentication in a different way from an author instance?  The Java code does not change, but the results are different depending on the type of server I'm trying to upload to.  The fact that the Java "publish" upload reports back as being an anonymous user (which I replicated with the last curl call), but uses the same code as the successful (and authorised) "author" upload besides the package details and port, leads me to believe that it's the CQ5 server that is turning this into an anonymous call.

 

Anyone have any thoughts on what might be happening here, and the best way to solve it?

 

Cheers,

K


CQ and CDNs: purgings

$
0
0

Hello, we're looking at integrating CQ with the Akamai network. I've read a few interesting posts already on this forum, but would like to explore the idea of caching and purging a bit better here.

 

My main question is around what's the best practice around purging content, such that is the most convenient from our authors. I don't want my authors (we have 100s) to go into akamai to do this manually obviously.

 

The best practice seems to be to use versioning on your pages (I want to host pages and assets on Akamai) and to add the version in the URL, but I don't understand yet how to implement that in CQ if possible at all.

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

Radio Buttons

$
0
0

How to create a group of radio buttons in cq5.5

Default java / jsp file which gets executed before DAM asset rendering

$
0
0

Hi,

 

I have a requirement to implement access control on DAM assets on the basis of a metadata property (tags).

Is there a default JAVA / JSP file which gets executed before rendering a DAM asset?

If yes, how can I override it?

If no, how can I add a new JSP / JAVA file to be executed before rendering of each DAM asset?

 

Thanks in advance,

Anurag

Title attribute for links in the Rich Text Editor

$
0
0

Our editors would like to make our site WCAG compatible, but are having problems setting title attributes for hyperlinks.

 

Is there any way to allow an editor to set the title attribute when creating a link in the Rich Text Editor?

Viewing all 12476 articles
Browse latest View live


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