Hi Wolfgang,
i think you will add a custom Control. For example a selectbox with special
inputs right?
Then you can add a control like this.
public class SexSelect extends DialogSelect {
@Override
public void init(HttpServletRequest request, HttpServletResponse
response, Content websiteNode, Content configNode) throws RepositoryException {
super.init(request, response, websiteNode, configNode);
this.addOption(new SelectOption("Label", "Name"));
this.addOption(new SelectOption("Label2", "Name2"));
}
}
}
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Im Auftrag von Wolfgang Wachsmuth (via Magnolia Forums)
Gesendet: Mittwoch, 25. Juli 2012 09:50
An: Magnolia User List
Betreff: [magnolia-user] Re: How is a dialog linked to it's component?
Hi Marvin,
thanks a lot for your reply. But it seems I did not clearly describe my
problem... or I did not understand you :-)
I want to access a page's property from a dialog. So the component's dialog
shall know what properties the pageNode has.
I am trying to illustrate it
[code]
________________________________________________________________
| PAGENODE |
| __________________________ |
| | PROPERTY sex : "male" | |
| |__________________________| |
| |
| _________________________________________________________ |
| | COMPONENT | |
| | | |
| | __________________________________________________ | |
| | | DIALOG | | |
| | | | | |
| | | ... if page-property-sex == 'male' showTools() | | |
| | |__________________________________________________| | |
| |________________________________________________________| |
|_______________________________________________________________|
[/code]
it's about the if-condition inside the dialog
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=6dc31d69-ef96-4db9-8788-80be64f83cdf
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------