[magnolia-dev] Re: How to repicant the total dialog form as a container and replicant the container

2015-07-22 Thread Christoph Meier (via Magnolia Forums)
Hi

Your yaml file was valid :-). However, i think you won't get with it what you 
are looking for.
Also repeating the tab with these 3 fields is not the solution for what you 
want - i if i understood you right.

I recommend you reading more about dialogs, about the different kind of fields 
we have, etc.
I guess what you are looking for is a combination of a Multivalue and a 
Composite field. See:
- https://documentation.magnolia-cms.com/display/DOCS/Multivalue+field
- https://documentation.magnolia-cms.com/display/DOCS/Composite+field

This should be feasible. 
However, since you considered yourself as a Magnolia beginner ... do your stuff 
step-by-step.
You should rather understand what you do then expecting complete solutions for 
complex use cases.

My last recommendation:
- Create a dialog with a multi value field (to understand the multi value 
concept)
- Do the same with a composite field.
- Try to combine these 2 approaches.

Good luck!

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=95dde8db-1a86-497c-92d2-9dad56275d84



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: 




[magnolia-dev] Re: How to repicant the total dialog form as a container and replicant the container

2015-07-22 Thread asrith (via Magnolia Forums)
Hi,
Thanks for your reply. 

the basic dialog i have created  there are three fields created in dialog there 
is avaliabilty of useing muliti field function for individual field but my 
requirement is to replicant all the three fields at same time so that if i use 
add button can able  get replicant of total dialog

Here the following basic YAML file:
form: 
  tabs: 
- 
  fields: 
- name: headline
  class: info.magnolia.ui.form.field.definition.TextFieldDefinition
  i18n: true
  label: head line

  
- name: Link
  class: info.magnolia.ui.form.field.definition.TextFieldDefinition
  i18n: true
  label: Link
 
- name: image
  class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
  targetWorkspace: dam
  appName: assets
  identifierToPathConverter:
class: 
info.magnolia.dam.app.assets.field.translator.AssetCompositeIdKeyTranslator
  contentPreviewDefinition:
contentPreviewClass: 
info.magnolia.dam.app.ui.field.DamFilePreviewComponent
  label: image
  label: MainBody
  name: FooterTab
actions: 
  cancel: 
class: 
info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition
  commit: 
class: 
info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition  

i hope the question is clear ...looking forward for the soloution

thnks.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=95dde8db-1a86-497c-92d2-9dad56275d84



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: 




[magnolia-dev] Re: How to repicant the total dialog form as a container and replicant the container

2015-07-21 Thread Christoph Meier (via Magnolia Forums)
Dear asrith

It would really make sense if you could paste a complete and valid YAML file 
with one complete tab.
With such a file i could show you how to reuse a field, or a complete tab or 
something else within the same dialog (or even reusing a YAML snippet from many 
other YAML files).
It would help to understand what you really want to do and you also would learn 
something.
You may want to use an online YAML validator such as 
http://codebeautify.org/yaml-validator to check validity of your YAML files.

Until now i can only guess what you want to do ... however i'm not completely 
sure.
Start with a simple example which fulfills your most basic requirements ... 
then explain me about the "more advanced requirements" which you don't know how 
to do at the moment.
And a last point: It usually doesn't make sense to have a dialog which contains 
a bunch of exactly same fields.
You rather have a dialog with one such field and then in the template you have 
an area where you allow to add the component with that field many times.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=95dde8db-1a86-497c-92d2-9dad56275d84



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: 




[magnolia-dev] Re: How to repicant the total dialog form as a container and replicant the container

2015-07-21 Thread asrith (via Magnolia Forums)
Hi,

Thanks for your reply. 

Here is the briefing about my requirement:
In one tab, i have label and link fields. i want to add these as multiple times 
as a single container. so that when clicked on Add, it should be replicated 
with all the fields that container has. Hope you get the meaning of container 
here.

in the below snippet, can we use "fileds" as replicant so all the individual 
fields would be replicated as one more fields

   - name: tabHeaderNav
  label: Header Nav Links
  fields:
- name: Label
  class: info.magnolia.dam.app.ui.field.definition.TextFieldDefinition
  label: Label
Please post your insights on this. Thanks!!!

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=95dde8db-1a86-497c-92d2-9dad56275d84



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: 




[magnolia-dev] Re: How to repicant the total dialog form as a container and replicant the container

2015-07-20 Thread Christoph Meier (via Magnolia Forums)
Hi

I still do not understand why you want to have the same tab definition twice 
within the same dialog.
However ...
... this would be a very nice example of defining and re-using a "variable" 
within YAML or we could use the include mechanism.

Please provide me your dialog definition YAML file - preferably on gisthub or 
pastebin - and i'll give you then the solution to reuse the tab definition with 
the same file.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=95dde8db-1a86-497c-92d2-9dad56275d84



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: