Skip to main content

FS_LIST MIgration

Comments

4 comments

  • Zendesk API User
    Author: bIT_sosswald - 2/3/2022 14:56

    Hi,

    even your code snipped is hard to read because ist nor formatted I think you mix this up a little bit.

    The error message is talking about an "INDEX editor". Your code example is using an FS_CATALOG.

    For an FS_INDEX the syntax is slightly different, see Migration Documentation 

    When iterating over an FS_INDEX editor you should use something like the following snipped:

    $CMS_FOR(VARIABLE, LISTNAME.values)$ $CMS_VALUE(VARIABLE.ELEMENT)$ $CMS_END_FOR$

     

    For FS_INDEX you need to add ".values" in your loop and for FS_CATALOG ".item". Then you can access the actual form fields like before.

    More information can be found on the detailed documentation for FS_INDEX and FS_CATALOG.

     

    Greetings
    Sandro

    0
  • Zendesk API User
    Author: AditeeR - 2/10/2022 11:34


    We have tried -

    $CMS_FOR(section,st_tabs_list.item)$
    <li class="tab-navigator $CMS_IF(#for.isFirst)$ tab_selected$CMS_END_IF$"><a href="#tab-$CMS_VALUE(#this.id, default:"")$-$CMS_VALUE(#for.index)$" $CMS_VALUE(editorId(target:section,editorName:"st_tab_title"))$>$CMS_VALUE(section.item.st_tab_title,default:"")$</a></li>
    $CMS_END_FOR$
    </ul>
    <div class="clearfix"></div>
    <div class="tab-content-wrapper shadow">
    $CMS_FOR(section,st_tabs_list.item)$
    <div class="tab" id="tab-$CMS_VALUE(#this.id, default:"")$-$CMS_VALUE(#for.index)$" $CMS_IF(#for.isFirst)$style="display:block;"$CMS_ELSE$style="display:none"$CMS_END_IF$>
    $CMS_VALUE(section)$
    </div>
    $CMS_END_FOR$

     

    We have tried solutions (i.e.   .values in case of FS_INDEX and .item in case of FS_CATALOG) provided in attached documentation of firstspirit,but still we are getting the same Warnings.

    We can find below note in documentation ,could you please explain the  same??

    Rendering of an FS_INDEX input component using $CMS_VALUE(...)$
    is no longer supported and will cause generation warnings (“use of
    deprecated value generation method for an index editor”). Please always
    use $CMS_FOR(...)$ for the rendering (see FS_INDEX output example).

     

     

     

    0
  • Zendesk API User
    Author: TWidmayer - 2/10/2022 13:37

    Hello,

    if your problem with the migration is only the warnings in the generation log, you should try to create a new revision of all entities of your datasources (change the entities and release them)

    As i remember correct, the new revision is needed, so that the new/migrated structure of the data is saved.

    Give it a try.

    Regards

    0
  • Zendesk API User
    Author: AditeeR - 2/23/2022 6:59

    Dear Team,

     

    Could you please explain what exactly needs  to be done in case of creating new entities of data sources?

    I don't think it is quite feasible thing to do so in production server.

     

    Thanks!

    0

Please sign in to leave a comment.