We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37638
    • 63 Posts
    I have the following template code:

    <div class="grid_7 alpha suffix_1 ident-bot-4 rt-block-1 rt-ident-left-1">
    
    	[[getImageList?
    		&tvname=`homePageContentBoxes`
    		&tpl=`@CODE:
    			<div>
    				<img class="img-ident-1" src="[[+icon]]" alt="" />
    				<h3 class="h3-ident">[[+title]]</h3>
    				<div class="clear"></div>
    			</div>
    			<div class="line ident-bot-2"></div>
    			<p class="ident-bot-3">[[+text]]</p>
    			<a class="button" href="[[+link]]">more</a>
    		`
    		&toSeparatePlaceholders=`homePageContentBox`
    		&limit=`4`
    	]]
    
    	[[+homePageContentBox.1]]
    
    </div>
    
    <div class="grid_7 omega ident-bot-4 rt-block-1 rt-ident-left-1">
    [[+homePageContentBox.2]]
    </div>
    
    <div class="grid_7 alpha suffix_1 rt-ident-bottom-1 rt-block-1 rt-ident-left-1">
    [[+homePageContentBox.3]]
    </div>
    
    <div class="grid_7 omega rt-block-1 rt-ident-left-1">
    [[+homePageContentBox.4]]
    </div>


    When I add 4 items in the backend to MIGX it works exactly as expected. However, when I (1) delete the first item and (2) add a new item at the end, it only fills in [[+homePageContentBox.2]], [[+homePageContentBox.3]] [[+homePageContentBox.4]]. Deleting the 2nd item will produce a similar result.

    I have the same problem on multiple templates, it is like MIGX is appending the MIGX item ID to the placeholder, not the actual returned row number.
      • 4172
      • 5,888 Posts
      you can use any field for the placeholder-key, default is MIGX_id

      try to use
      &placeholdersKeyField=`idx`


      or
      &placeholdersKeyField=``


        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 37638
        • 63 Posts
        That did it, awesomeness!

        Thanks!