Issue in using dialog in Touch UI of AEM 6.2 - aem

I am working on AEM 6.2. I am creating a dialog (cq:dialog) for touch UI. After creating a page i am not able to see my component in the design mode of the touch UI while trying to enable it and thus the dialog not enabled. Tried creating a simple dialog (using create->dialog) for classic UI for the same component and now i can see my component along with its dialog in touch UI of the page. Is it mandatory to create dialog for both views (Touch & Classic) to get the dialog enabled and working on both UI's?

No it is not mandatory to create a dialog node. However, some node is required indicating it is an editable component.
If you want to see your component in design view then you can create either of the nodes:
cq:editConfig [cq:EditConfig]
dialog
design_dialog
So in your case if you dont want a dialog node you can work with editConfig.

Related

Issue when use a Control Layer on marker out of group on Drupal with custom module

When a marker is out of a group (cyrcle numbered) if I use the control filters by clicking on a checkbox the marker disappears correctly, by clicking on the checkbox again it no longer appears. This does not happen with the markers present in the groups.
Here the project on StackBlitz,this doesn't work on Drupal in my custom module.
Here the Drupal site.
Edit
I just found out that it doesn't just work when logged in. Everything seems to work anonymously.

AEM 6.1 Reference component references are not showing up in Classic UI

Was going to the AEM 6.1 Page-author documentation for reference component. Strange is am not able to see any references link in Classic UI (i.e. via the sidekick Page tab -->Show References)
Steps to reproduce.
Drag and drop OOTB Text component in /content/geometrixx-outdoors/en/men/coats page and author some content.
Drag and drop OOTB Reference component in /content/geometrixx-outdoors/en/equipment page
Edit the Reference component and select the text component that has been authored in above step-1.
Refreshed both the pages, And on /content/geometrixx-outdoors/en/men/coats page sidekick-->Page tab --> click on Show References Expected is to show a dialog popup with all the references available for that page.
When i test the same with Touch UI it shows correctly the text under Lent Content section
Step1
Step2
Step3
Step4
Touch UI

How to open a popup on click of button placed in menu page in master detail page in xamarin forms?

I am working on xamarin.forms. I am using Master detail page. In menupage of MasterDetailPage I have some menu items that are listed. At the bottom of the Menu list I placed a button on menu page. Now I need to open a popup on click of that button. I am trying with PopupLayout but not able to get any success.
Please tell me how I can open a custom popup box at the click of the button that is placed in menu page?
Regards,
Anand Dubey
Without going into separate, native projects for all platforms you are targeting (such as Android, iOS, UWP...), you cannot pop out custom UI content over existing pages in Xamarin.Forms out of the box. You would need to bring in additional references or get creative with the AbsoluteLayout control.
Here are a few options you have:
Simple popup with message and or option selection
If all you need is a simple popup message or a list of buttons, you should look into the native DisplayAlert and DisplayActionSheet methods. They are built into Xamarin.Forms and work really well for these simple cases.
More complex popup dialogs
For anything more complex than that, there is the excellent UserDialogs project: ACR UserDialogs github page
It will give you support for various loading dialogs, date, time pickers, action sheet, success/info/error toasts and more.
Fully custom UI markup with AbsoluteLayout
There is a technique where by you prepare the underlying page with a root absoltue layout, which enables you to dynamically add new UI on top of all other controls on your page. This is fiddly and can ruin your performance if you are not careful. This is also the approach that the PopupLayout control that you mentioned uses. If done properly, this can be a good solution, but I don't recommend it as it involves additional complexity on each page that hosts the popup content.
Fully custom UI popup on native projects
Your most flexible option, as always, is to fall back to the native projects. This would involve coding up the popup logic on each separate platform that you are targeting, then using DependencyService (or one of the other techniques) to call into it from the shared project. For this you should look at samples and tutorials for popups on separate native platforms as it gets pretty broad and goes way outside the topic of this question.

How to drag and drop a component over other components (other than parsys) in CQ5?

I have created a button component in CQ5 without inheriting existing button component. Now I want to
place this button component over another custom Banner component by drag and drop method from sidekick. I gave the banner comp as parent for my button and in banner I gave this button in allowed children and made it as container too. also I have created design dialog for the banner component where I added this button component in allowed components option. still I am not able to drag and drop this button over the banner, as its going either above or below this banner and the banner itself is inside parsys. if I include the component via jsp, its working fine. but I must do it by drag and drop.
I am new to CQ5, appreciate any help I can get. thanks in advance.
A parsys is the fundamental container component for composition. Applying this functionality manually into another component would require quite a bit of custom configuration.
If you look at the parsys at /libs/foundation/components/parsys, you will see that it is defined as a container by the property cq:isContainer - true, which instructs CQ to allow for drag and drop. There are multiple sub nodes that will need to be defined etc.
If you are trying to limit only a particular component to be dropped in, this may make sense, and yo should look at the image component, however, the best approach is to make a component that contains a parsys.
Remember that the author's should have the ability to add as much as they want to, and a single object does not allow for this flexibility. You should be handling bad author activity through a review process before the content is published, rather than enforcing it on a software level.
Hope that helps.
Drag and Drop feature is available on Parsys or IParsys only. So to achieve your requirement you need to include parsys in banner component.
If you want to restrict banner parsys to allow button component, please use design config and select button component in button's parsys

Windows Forms Error Provider does not display in custom tab control

I'm trying to build a Wizard framework in Windows Forms. I've managed to glean a lot of useful tips from this and other sites which have gotten me very close to success. However, I'm having a problem with displaying an ErrorProvider on any tab page other than the first page of the wizard.
My Wizard control is a UserControl. It contains a custom tab control that I've derived from TabControl so that I can hide tabs and ignore attempts to navigate between tabs using keypresses, along with the usual collection of Back/Next/Finish/Cancel buttons at the bottom of the control.
I've used reflection to allow me to raise the validation events on a particular TabPage that belongs to the Wizard Control when I hit the Next button. (I don't want to validate the whole TabControl, only the currently active page.) When I do this, I see in the debugger that my Validating routine for the controls on the current tab page is correctly called and I see that I've called the ErrorProvider that I've attached to the particular control (a TextBox in this case) with a valid error message. I set Cancel to true for the CancelEventArgs in the validating routine and that's picked up by the code that uses the reflection mechanism so that I see that I've failed and don't change tabs. And I set the focus successfully to the control that failed validation.
So all that appears to be working just fine.
Unfortunately, I don't see the ErrorProvider's cheery blinking icon unless I'm on the first tab page. For all of the other tab pages, there's no message visible at all.
I'm baffled. Any thoughts? I can provide code snippets, if helpful.
Thanks!
I assume that in your case the button that moves to the next step of the wizard is placed outside (below) the TabControl
I noticed that the icon is displayed correctly if I pressed the button without releasing the mouse button. It seems that the button outside the container gets focused event though a validation error has occurred (normally you would not be able to leave the active control).
I worked around this issue by registering an event handler for the buttons MouseUp event to "refocus" the TabControl:
private void cmdOK_MouseUp(object sender, MouseEventArgs e)
{
tabControl1.Focus();
}
Note: you also need to set your forms ActiveControl property the one of the controls that failed validation.