Hallo Wolfgang,

This will not be possible without writing some java code.

You will need to extend either the dialog class or the class of some control 
included in the dialog.

Let's assume in your case that "Tools" is a dialog-tab.

In this case, a possible solution might be:
- you could extend the dialog class, and override the addSub() method.
- in the addSub() method you can check the parent content:    something like: 
String sex = PropertyUtil.getString(getStorageNode().getParent(), "sex")
- then you can decide just not to add the "tools" tab if the string is "male".

Hope that makes sense!

Regards from Vienna,

Richard

-----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]>
----------------------------------------------------------------

Reply via email to