We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8489
    • 90 Posts
    I have set up 3 Listbox TV’s (New products / Used products / Product of the month) and assigned the TV’s to the home template.
    From the back-end the client can choose from 3 Listboxes to populate content on the home page.

    When update only one TV Listbox the other two are being set to their default when saving.

    Is it possible when updating only one Listbox, having the other listboxes not being set to their default?


    First time selected and saved
    [table]
    [tr][td]New products[/td][td]Used products[/td][td]Product of the month[/td][/tr]
    [tr][td]product c (selected)[/td][td]product b (selected)[/td][td]product c (selected)[/td][/tr]
    [tr][td]product a[/td][td]product a[/td][td]product a[/td][/tr]
    [tr][td]product b[/td][td]product c[/td][td]product b[/td][/tr]
    [/table]

    Updating only New products and saved
    [table]
    [tr][td]New products[/td][td]Used products[/td][td]Product of the month[/td][/tr]
    [tr][td]product b (selected)[/td][td]product a (being set to default)[/td][td]product a (being set to default)[/td][/tr]
    [tr][td]product a[/td][td]product b[/td][td]product b[/td][/tr]
    [tr][td]product c[/td][td]product c[/td][td]product c[/td][/tr]
    [/table]


    TV Listbox - New products
    Input Option Values:
    @EVAL return $modx->runSnippet(’getResources’, array( ’parents’=>’1001,1002,1003’,’hideContainers’=>’0’,’includeContent’=>’1’,’depth’=>’10’,’tpl’=>’newProductsList’,’context’=>’web’,’limit’=>’0’, ’includeTVs’=>’1’,’processTVs’=>’1’,’sortby’=>’editedon’,’sortdir’=>’DESC’));

    TV Listbox - Used products
    Input Option Values:
    @EVAL return $modx->runSnippet(’getResources’, array( ’parents’=>’1013,1014,1015’,’hideContainers’=>’0’,’includeContent’=>’1’,’depth’=>’10’,’tpl’=>’usedProductsList’,’context’=>’web’,’limit’=>’0’, ’includeTVs’=>’1’,’processTVs’=>’1’,’sortby’=>’editedon’,’sortdir’=>’DESC’));

    TV Listbox - Product of the month
    Input Option Values:
    @EVAL return $modx->runSnippet(’getResources’, array( ’parents’=>’1022,1023,1024’,’hideContainers’=>’0’,’includeContent’=>’1’,’depth’=>’10’,’tpl’=>’productMonthList’,’context’=>’web’,’limit’=>’0’, ’includeTVs’=>’1’,’processTVs’=>’1’,’sortby’=>’editedon’,’sortdir’=>’DESC’));


    • Sounds like a bug?
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 8489
        • 90 Posts
        Oké thanks Mark, I will report it on http://bugs.modx.com/projects/revo/