MIGX does also work on Revolution 2.0.8 with limited functionality. (for example no input-properties - use properties instead!)
Hey Bruno, Ya I grabbed your latest commits on those files before I started testing it out.
Would it use a different base path in the migx form compared to the migx grid view? Seems like it is using the same base path but I am not sure. It's weird that the image renders with the correct path on the migx form but not the migx grid. Maybe I am missing something. I just upgraded to 2.1.5pl to see if it was something with modx itself. I am thinking about upgrading to 2.2.0pl2 but I am not sure that is going to make a difference.
Any other ideas of what it could be?
MIGX does also work on Revolution 2.0.8 with limited functionality. (for example no input-properties - use properties instead!)
Can you give an example of how to use MIGX with 2.0.8? For example how to create a simple table with two text columns?
Hi There,
Is there a way to limit the amount of rows a user can add to a MIGx table? Or a way to prevent them adding more than x KB of data?
My client has a fairly large site using MIGx, and the user is data entry happy, occasionally putting more data in than the system is capable of holding. What then happens is the database truncates the data and they get errors. MIGx is brilliantly useful, it'd just be great to stop them putting in more than they should be.
They're not technical, so it'd be great if this could be implemented, I can potentially do this myself if given a nudge in the right direction. Apologies if this has already been asked or I'm missing something very simple![]()
Environment:
MODX Revolution 2.1.3-pl (traditional)
MIGx 1.1.0
PHP Version 5.3.8
MySQL 5.1.56
[[*yourMIGXtv]]
<style> <!-- [[!getImageList? &tvname=`action` &tpl=`actioncssTPL` &limit=`4` ]] --> </style>
#features .action[[+idx]] {background:url([[+actionicon]]) no-repeat 6px 6px;}
<ul id="features"> [[!getImageList? &tvname=`action` &tpl=`calltoactionTPL` &limit=`4` ]] </ul>
<li class="action[[+idx]] [[!If?&subject=`[[+idx]]`&operator=`inarray`&operand=`2,4`&then=`none`]]">
<dl>
<dt>[[+actiontitle]]</dt>
<dd>[[+actioncopy]]</dd>
</dl>
</li>
[
{"caption":"Call to Action", "fields": [ {"field":"actionicon","caption":"Icon","inputTV":"actionicon"},
{"field":"actiontitle","caption":"Heading","inputTV":"actiontitle"},
{"field":"actioncopy","caption":"Description","inputTV":"actioncopy"}
]}
]
[
{"header": "Icon", "width": "500", "sortable": "false", "dataIndex": "actionicon", "renderer": "this.renderImage"},
{"header": "Heading", "width": "500", "sortable": "false", "dataIndex": "actiontitle"},
{"header": "Description", "width": "500", "sortable": "false", "dataIndex": "actioncopy"}
]
&placeholdersKeyField = `0`;
&placeholdersKeyField=`idx`
[[+idx]]
This discussion is closed to further replies. Keep calm and carry on.