since ‎30-08-2012
‎27-05-2020
andyshreve
Level 3
Re: How can I add arbitrary css to editor.html? andyshreve - Adobe Experience Manager
Assign your CSS clientlib to the "cq.authoring.editor.core" category documented at https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/jsdoc/ui-touch/editor-core/index.html
354
Views
1
Like
0
Answers
Re: How can I add arbitrary css to editor.html? andyshreve - Adobe Experience Manager
This technique also works in 6.3.
729
Views
0
Likes
0
Comments
Re: How can I add arbitrary css to editor.html? andyshreve - Adobe Experience Manager
One approach is to create a new CSS clientlib and assign it to the "cq.authoring.editor.hook" clientlib like so: Then put your editor.html specific CSS in your new clientlib and it should load when /editor.html is loaded. You can also use this approach if you want to load custom javascript on /editor.html. One advantage to this approach is that this CSS is separate from the rest of your CSS and page code so it isn't present on your published pages. Adobe describes this approach in more detail ...
1208
Views
1
Like
3
Answers
Re: How do I override the nested parsys limit in 6.4? andyshreve - Adobe Experience Manager
Our short term solution to this problem was to take the AEM 6.3 version of /libs/cq/gui/components/authoring/editors/clientlibs/core/js/model/Inspectable.js and install it as an overlay at /apps/cq/gui/components/authoring/editors/clientlibs/core/js/model/Inspectable.js in 6.4. Its hasPlaceholder method was refactored in 6.4 but was misinterpreting the DOM structure of our pages. We were told by Adobe day care this issue is fixed in 6.5.
2293
Views
0
Likes
0
Replies
Re: 404 errors from root of site start with a 301 redirect andyshreve - Adobe Experience Manager
In my view, sites are easier to maintain if the dispatcher is set to "allow" content by default so authors can deploy new language folders under /content without requiring any adjustments to dispatcher rules. Ideally the dispatcher rules are never a bottleneck for authors who are pushing out new content. You don't want to be in a position where you have to update your dispatcher rules while you are vacation because authors want to urgently deploy some new language pages. Of course you always hav...
829
Views
1
Like
0
Answers
Re: google reCaptcha configuration for multiple website p... andyshreve - Adobe Experience Manager
A basic approach that I've seen used successfully is to put a site-specific property at the root page of the site, like at /content/site1/en_us, and then adjust the component to inherit that property using InheritanceValueMap like this:InheritanceValueMap ivmap = new ComponentInheritanceValueMap(resource); String captchakey = ivmap.getInherited("captchakey", String.class);
770
Views
1
Like
0
Answers
Re: How do I override the nested parsys limit in 6.4? andyshreve - Adobe Experience Manager
This appears to be a dropzone bug in touch ui. My component has cq:dropTargets in its editConfig and I can fix the problem by removing cq:dropTargets but I need cq:dropTargets because it is needed for in-place editing of the component's background image. I may need to create an Adobe support ticket.
2413
Views
1
Like
0
Replies
How do I override the nested parsys limit in 6.4? andyshreve - Adobe Experience Manager
I have a container-like component that has a parsys and it is often nested several deep on my 6.3 site that is migrating to 6.4.8. However, when I have a page that has four of these nested components, the 6.4 touch ui doesn't let me add any components to the parsys of the inner-most component. I can nest four of these components on a page but I can't nest anything inside the fourth one. My pages use /etc/designs and aren't yet using policies under /conf. The sling:resourceSuperType of this compo...
2431
Views
0
Likes
3
Replies
Re: Exporting site content in AEM 6.2.0 andyshreve - Adobe Experience Manager
Smartling has an AEM connector that lets authors submit pages for translation:https://help.smartling.com/hc/en-us/categories/360000740573-Connectors-SDKs
570
Views
1
Like
0
Answers
Replacement for "Daycare Support Tools"? andyshreve - Adobe Experience Manager
I have an old "Daycare Support Tools" package that installs a Tools tab in the osgi console in 6.3 but that tab doesn't display in 6.4. It lets you download logs and analyze thread dumps. I'm guessing Adobe no longer supports that package. How do folks download logs and analyze threads in 6.4?
1194
Views
0
Likes
3
Answers and Comments
Re: How do I view a component's dialog in a livecopy without cancelling inheritance? andyshreve - Adobe Experience Manager
The developer mode does give some high level info about the livecopy's components, but it doesn't allow one to open the touch dialog for any of the components. My authors want to open the livecopie's touch dialogs in read-only mode so they can understand how its components are configured.What I think I need to do is add an extra button to the component toolbar that opens the touch dialog in a way that prevents the author from saving any changes. Perhaps as the dialog opens, a new javascript woul...
1050
Views
0
Likes
0
Replies
How do I view a component's dialog in a livecopy without cancelling inheritance? andyshreve - Adobe Experience Manager
In AEM 6.3 Touch mode, where a blueprint has been rolled out to a livecopy page, a component on the livecopy cannot be edited unless one cancels inheritance for that component. I understand this is by design, but is there a way in the livecopy to open the component's dialog to see how it is configured without having to do one of the following actions:Cancel inheritanceGo back to the blueprint page to open the component's dialogSwitch to classic mode to open the component's dialogIs there a way t...
1129
Views
0
Likes
2
Replies
Re: Dispatcher Security - .feed extension andyshreve - Adobe Experience Manager
Documentation should serve as a starting point even though it can be incorrect or incomplete. Sample code provided online is rarely production-ready, and in this case you'll want to write a deny configuration for the feed extension. The documentation lists paths that should be blocked, so you may need to write configuration to block those at a minimum. The other selectors I listed that aren't documented were Adobe ones I've seen over the last 7 years which may or may not still be supported. I ha...
585
Views
0
Likes
0
Answers
Re: Dispatcher Security - .feed extension andyshreve - Adobe Experience Manager
It's good to harden the dispatcher to block content grabbing requests because they can expose the architecture of your site and overload your server. Without this kind of hardening at your dispatcher, a crafted request could fetch all your content or expose your source code. The .feed extension can expose areas of your site you might want hidden so it's good to just block it. Blocking _jcr_content or jcr:content is more of a judgement call that depends on how your site works. For example, you mi...
593
Views
1
Like
0
Answers
Re: Touch ui Tool tip broken when field description is big andyshreve - Adobe Experience Manager
I had a similar issue in 6.3 with long tooltip descriptions being clipped off or not fully displayed in a dialog. I solved it by putting 2 new styles in a new CSS clientlib assigned to the coralui2 and coralui3 categories. These styles allow the long tooltips to wrap to multiple lines./* Style to correct tooltip alignment when the tooltip is left of the icon */.coral3-Tooltip--info.coral3-Tooltip--arrowLeft { left: auto !important; right: 25px !important;}/* Style to correct tooltip alignment wh...
529
Views
0
Likes
0
Answers
When will support for Felix SCR annotations be removed? andyshreve - Adobe Experience Manager
I have a bunch of legacy code that uses the deprecated Felix SCR annotations and I'm wondering how much longer they will be supported in core AEM. I've read the "Deprecated and Removed Features" docs for 6.4 & 6.5 and they don't mention anything about annotations. Does anyone have any thoughts or insights on this?
1343
Views
0
Likes
2
Answers and Comments
Can a MSM rollout be cancelled in 6.3 andyshreve - Adobe Experience Manager
I had a large MSM rollout that began to encounter errors. Is it possible to cancel a rollout that is underway without restarting the author instance? Are there any useful management tools in the osgi console or JMX console related to rollouts?
1110
Views
0
Likes
1
Answers and Comments
Did anything change in etc between 6.4 and 6.5 andyshreve - Adobe Experience Manager
I know that a 6.4 upgrade involves restructuring things out of etc, but what I can't figure out from Adobe's repository restructuring documentation is if 6.5 introduces any additional restructuring changes to etc. The restructuring docs for 6.5 appear to have the same info as the 6.4 restructuring docs. So did all of the etc restructuring happen in 6.4? Are there 6.4 features that use etc that are no longer supported in 6.5? Any background on how aggressive Adobe is deprecating etc would be help...
528
Views
0
Likes
1
Answers and Comments
Re: Touch UI Mode edit configs andyshreve - Adobe Experience Manager
You do not actually need to use or call if you are just concerned with Touch mode. I had used that to detect if the page is being viewed in Classic mode so I could show a similar message to Classic users:Submit Button ComponentI've found this method of edit mode messages to be a useful way to communicate the component name. You could use CSS to style them further if you want to set them apart from regular text. They are also a good way to tell authors additional info about the component without...
969
Views
1
Like
0
Answers
Re: Touch UI Mode edit configs andyshreve - Adobe Experience Manager
One option is to edit your custom component so the name of the component is displayed in Touch edit mode. Say you have an HTL (aka Sightly) component for a submit button. Below is an example that shows how to make an edit mode message that displays the name of the component in Touch edit mode:
887
Views
1
Like
0
Answers
Crop an image in Touch UI page properties andyshreve - Adobe Experience Manager
Is there a way to use the image crop tool on an image that is displayed inside a page's Touch UI page properties dialog? I have AEM pages where an image has been dropped into a dropzone in a page properties tab, and there is a need to crop the image to a specific dimension. In other words, the image is visible when you open a page's page properties, and doesn't rely on an Image component that has been dropped onto the page. This feature is available in Classic page properties but I don't see how...
789
Views
0
Likes
1
Answers and Comments
Re: Help with DAM audit Log Purge rule andyshreve - Adobe Experience Manager
Thanks! I configured a DAM audit Log Purge rule and observed in the error.log that it did run when I ran the weekly "AuditLog Maintenance Task". The AEM doc doesn't mention the dam purge rule and the Granite maintenance page doesn't link to the dam purge rule, but it does run after you configure it in the osgi console.
573
Views
0
Likes
0
Answers
Help with DAM audit Log Purge rule andyshreve - Adobe Experience Manager
I have a dam in AEM 6.3 that has a large audit log stored under /var/audit/com.day.cq.dam and I want to reduce its size with a weekly purge. The dam audit log is so large that the Timeline feature in Touch UI doesn't work so it needs to be purged. I can see an osgi config named "DAM audit Log Purge rule" under /system/console/configMgr but I don't see how to get that rule running in the weekly maintenance tasks at /libs/granite/operations/content/maintenanceWindow.html/libs/settings/granite/oper...
715
Views
0
Likes
2
Answers and Comments
Re: Companies using AEM andyshreve - Adobe Experience Manager
You might try builtwith.com which has a report of Adobe CQ sites behind their paywall:Adobe CQ Usage Statistics
992
Views
2
Likes
0
Replies
Re: XSS AntiSamy configuration for data attributes andyshreve - Adobe Experience Manager
This topic was raised in an internal discussion at my company where there is a desire to use HTML5 "data-" attributes without having to wire each one into the AntiSamy config.xml. This use case was once publicly discussed in a non-AEM project at https://jira.sakaiproject.org/browse/KNL-1007 . I was just wondering if this is currently possible with AEM AntiSamy.
821
Views
0
Likes
0
Answers
XSS AntiSamy configuration for data attributes andyshreve - Adobe Experience Manager
If I had an overlay of of the AntiSamy config file at /apps/cq/xssprotection/config.xml, could I adjust it to allow random data attributes specified by authors? I see it uses regular expressions to validate attribute values, but can I use a regular expression to validate an attribute name? For example, say an author wanted a div to have a data attribute with a name that ended in random letters like:Is there a way to allow random attribute names like that in the AntiSamy config?
1458
Views
0
Likes
3
Answers and Comments
Re: Image crop in html5smartimage xtype andyshreve - Adobe Experience Manager
I don't know precisely what the issue is but here are a couple things to check. Make sure your local and dev instances both have the same service packs & cumulative fix packs. In general it's not uncommon to see subtle variations like this when your AEM instances aren't all the same. Also, sometimes the cache of AEM javascript clientlibs under /var/clientlibs/libs becomes obsolete and doesn't reflect the javascript that is installed under /libs. To be safe, back up /var/clientlibs/libs and then ...
492
Views
1
Like
0
Answers
Re: How to add external link to an image andyshreve - Adobe Experience Manager
The AEM Image component supports linking to other sites. Open the dialog for the Image component and then paste in the URL of the external website into the "Link to" field.
1305
Views
2
Likes
1
Replies
Re: Hyphens missing in the page name andyshreve - Adobe Experience Manager
I didn't see the issue you described after fixing my issue in AEM 6.0. I also haven't seen this issue in AEM 6.1 after several months.
356
Views
0
Likes
0
Answers
Re: No renderer for extension js andyshreve - Adobe Experience Manager
So it sounds like this is a known issue with the clientcontext component. I know I can ignore these errors because I've been ignoring them for years. Is there something I can do to either fix or suppress these errors? Would removing those ACLs from /etc/segmentation be helpful?
510
Views
0
Likes
0
Answers