MIGX icon indicating copy to clipboard operation
MIGX copied to clipboard

Media source error when using Multiple Formtabs

Open pawelmil opened this issue 11 years ago • 4 comments

Hi, I'm trying to display Images and paragraphs with MIGX Multiple Formtabs option, but media source base path is missing in external code. When I remove Multiple Formtabs from configuration, then images paths are ok...

pawelmil avatar Oct 14 '14 16:10 pawelmil

I'm encountering the same issue, is there a fix maybe for that? I even tried adding a pseudo-field with a media source in the "parent-formtab", but to no avail.

sebastian-marinescu avatar Jan 21 '16 21:01 sebastian-marinescu

It definitely works if I just add one of the sub-formtabs ('linkToFile') directly to the TV. But as soon as I setup the migx-config in the TV which has the multiple formtabs ('DeeplinksConfig'), with the before mentioned sub-formtab, in it, the basePath of the Media-Source isn't added anymore.

I created the formtabs with the migx-cmp. If it may help, here are the formtabs JSON-Configs.

DeeplinksConfig (the migx-config set up in the TV input-options)

{
  "formtabs":[
    {
      "MIGX_id":7,
      "caption":"xxx",
      "print_before_tabs":1,
      "fields":[
        {
          "MIGX_id":10,
          "field":"linkUrl",
          "caption":"Test",
          "description":"test",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"text",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":[
            {
              "MIGX_id":1,
              "context":"web",
              "sourceid":2
            }
          ],
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":1
        }
      ],
      "pos":1
    }
  ],
  "contextmenus":"edit_migx||duplicate_migx||remove_migx||movetotop_migx||movetotop_bottom",
  "actionbuttons":"",
  "columnbuttons":"",
  "filters":"",
  "extended":{
    "migx_add":"Neue Verlinkung erstellen",
    "disable_add_item":"",
    "add_items_directly":"",
    "formcaption":"Projekt-Link",
    "update_win_title":"Neue Verlinkung f\u00fcr Projekt",
    "win_id":"deeplinks",
    "maxRecords":5,
    "addNewItemAt":"bottom",
    "multiple_formtabs":"3||4",
    "multiple_formtabs_label":"Link-Typ ausw\u00e4hlen:",
    "multiple_formtabs_field":"linkType",
    "multiple_formtabs_optionstext":"",
    "multiple_formtabs_optionsvalue":"",
    "actionbuttonsperrow":4,
    "winbuttonslist":"",
    "extrahandlers":"this.resetWinPosition",
    "filtersperrow":4,
    "packageName":"",
    "classname":"",
    "task":"",
    "getlistsort":"",
    "getlistsortdir":"",
    "sortconfig":"",
    "gridpagesize":"",
    "use_custom_prefix":"0",
    "prefix":"",
    "grid":"",
    "gridload_mode":1,
    "check_resid":1,
    "check_resid_TV":"",
    "join_alias":"",
    "has_jointable":"yes",
    "getlistwhere":"",
    "joins":"",
    "hooksnippets":"",
    "cmpmaincaption":"",
    "cmptabcaption":"",
    "cmptabdescription":"",
    "cmptabcontroller":"",
    "winbuttons":"",
    "onsubmitsuccess":"",
    "submitparams":""
  },
  "columns":[
    {
      "MIGX_id":1,
      "header":"Text",
      "dataIndex":"linkLabel",
      "width":30,
      "sortable":"false",
      "show_in_grid":1,
      "customrenderer":"",
      "renderer":"",
      "clickaction":"",
      "selectorconfig":"",
      "renderchunktpl":"",
      "renderoptions":"",
      "editor":"this.textEditor"
    },
    {
      "MIGX_id":2,
      "header":"Link",
      "dataIndex":"linkUrl",
      "width":70,
      "sortable":"false",
      "show_in_grid":1,
      "customrenderer":"",
      "renderer":"",
      "clickaction":"",
      "selectorconfig":"",
      "renderchunktpl":"",
      "renderoptions":"",
      "editor":""
    }
  ]
}

linkToFile

{
  "formtabs":[
    {
      "MIGX_id":3,
      "caption":"Information",
      "print_before_tabs":"0",
      "fields":[
        {
          "MIGX_id":6,
          "field":"linkLabel",
          "caption":"Link-Bezeichnung",
          "description":"Kurze Beschreibung des Links. Maximal 12 Zeichen.",
          "description_is_code":"0",
          "inputTV":"text",
          "inputTVtype":"text",
          "validation":"",
          "configs":{
            "maxLength":12
          },
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":1
        }
      ],
      "pos":1
    },
    {
      "MIGX_id":4,
      "caption":"Datei",
      "print_before_tabs":"0",
      "fields":[
        {
          "MIGX_id":7,
          "field":"linkUrl",
          "caption":"File-Link",
          "description":"Link zu einem Bild.",
          "description_is_code":"0",
          "inputTV":"projectFile",
          "inputTVtype":"",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":[
            {
              "MIGX_id":1,
              "context":"web",
              "sourceid":2
            }
          ],
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":1
        }
      ],
      "pos":2
    }
  ],
  "contextmenus":"",
  "actionbuttons":"",
  "columnbuttons":"",
  "filters":"",
  "extended":{
    "migx_add":"Neuer Link zu einer Datei",
    "disable_add_item":"",
    "add_items_directly":"",
    "formcaption":"",
    "update_win_title":"",
    "win_id":"",
    "maxRecords":"",
    "addNewItemAt":"bottom",
    "multiple_formtabs":"",
    "multiple_formtabs_label":"",
    "multiple_formtabs_field":"",
    "multiple_formtabs_optionstext":"Bild vom Server",
    "multiple_formtabs_optionsvalue":"image",
    "actionbuttonsperrow":4,
    "winbuttonslist":"",
    "extrahandlers":"",
    "filtersperrow":4,
    "packageName":"",
    "classname":"",
    "task":"",
    "getlistsort":"",
    "getlistsortdir":"",
    "sortconfig":"",
    "gridpagesize":"",
    "use_custom_prefix":"0",
    "prefix":"",
    "grid":"",
    "gridload_mode":1,
    "check_resid":1,
    "check_resid_TV":"",
    "join_alias":"",
    "has_jointable":"yes",
    "getlistwhere":"",
    "joins":"",
    "hooksnippets":"",
    "cmpmaincaption":"",
    "cmptabcaption":"",
    "cmptabdescription":"",
    "cmptabcontroller":"",
    "winbuttons":"",
    "onsubmitsuccess":"",
    "submitparams":""
  },
  "columns":""
}

linkToWebsite

{
  "formtabs":[
    {
      "MIGX_id":5,
      "caption":"Information",
      "print_before_tabs":"0",
      "fields":[
        {
          "MIGX_id":8,
          "field":"linkLabel",
          "caption":"Link-Bezeichnung",
          "description":"Kurze Beschreibung des Links. Maximal 12 Zeichen.",
          "description_is_code":"0",
          "inputTV":"text",
          "inputTVtype":"",
          "validation":"",
          "configs":{
            "maxLength":12
          },
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":1
        }
      ],
      "pos":1
    },
    {
      "MIGX_id":6,
      "caption":"Link zu Extern",
      "print_before_tabs":"0",
      "fields":[
        {
          "MIGX_id":9,
          "field":"linkUrl",
          "caption":"Link-URL",
          "description":"Die URL zu einer externen Seite.",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"url",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":1
        }
      ],
      "pos":2
    }
  ],
  "contextmenus":"",
  "actionbuttons":"",
  "columnbuttons":"",
  "filters":"",
  "extended":{
    "migx_add":"Neue externe Verlinkung",
    "disable_add_item":"",
    "add_items_directly":"",
    "formcaption":"",
    "update_win_title":"",
    "win_id":"",
    "maxRecords":"",
    "addNewItemAt":"bottom",
    "multiple_formtabs":"",
    "multiple_formtabs_label":"",
    "multiple_formtabs_field":"",
    "multiple_formtabs_optionstext":"Externer Link",
    "multiple_formtabs_optionsvalue":"iframe",
    "actionbuttonsperrow":4,
    "winbuttonslist":"",
    "extrahandlers":"",
    "filtersperrow":4,
    "packageName":"",
    "classname":"",
    "task":"",
    "getlistsort":"",
    "getlistsortdir":"",
    "sortconfig":"",
    "gridpagesize":"",
    "use_custom_prefix":"0",
    "prefix":"",
    "grid":"",
    "gridload_mode":1,
    "check_resid":1,
    "check_resid_TV":"",
    "join_alias":"",
    "has_jointable":"yes",
    "getlistwhere":"",
    "joins":"",
    "hooksnippets":"",
    "cmpmaincaption":"",
    "cmptabcaption":"",
    "cmptabdescription":"",
    "cmptabcontroller":"",
    "winbuttons":"",
    "onsubmitsuccess":"",
    "submitparams":""
  },
  "columns":""
}

I appreciate every help and answer.

sebastian-marinescu avatar Jan 22 '16 10:01 sebastian-marinescu

@Bruno17 You got any idea where to look for this issue?

sebastian-marinescu avatar Jan 23 '16 10:01 sebastian-marinescu

Bumping this...same issue here. Also tried with helper TV but media source base path is missing in template.

travisbotello avatar Mar 25 '22 14:03 travisbotello