-
in /class/formelement.php there is a method called setExtra() used to add extra attributes to a form element.
Unfortunately, when it is rendered, the content is pasted just after the last attribute rendered by each element.
For example, if on a XoopsFormText() field I want to add a "title" attribute like this :
$myField->setExtra(" title='blabla'");
it will be rendered like this:
2009-10-13 16:31:41 UTC in XOOPS Web Application Platform
-
instantzero made 1 file-release changes.
2009-10-08 16:12:01 UTC in Oledrion
-
instantzero made 2 file-release changes.
2009-10-08 16:11:02 UTC in Oledrion
-
instantzero made 1 file-release changes.
2009-10-08 16:08:01 UTC in Oledrion
-
In fact every function displaying some text directly should have a such option.
2009-08-07 09:23:10 UTC in XOOPS Web Application Platform
-
Adding a parameter to xoops_confirm to decide if we want to display the confirm message or get its code could be helpful.
2009-08-07 09:22:02 UTC in XOOPS Web Application Platform
-
I've been too quickly, the code should looks like this :
$criteria = new Criteria('my_field', 0, '');
$criteria->setSort($sort)
->setOrder($order);
->setStart($start);
->setLimit($limit);
Two minus were missing.
2009-06-13 13:48:33 UTC in XOOPS Web Application Platform
-
Actually, in CriteriaElement, setLimit, setStart, setSort and setOrder do not returns anything, so when you define a criteria, you to do simething like this :
$criteria = new Criteria('my_field', 0, '');
$criteria->setSort($sort);
$criteria->setOrder($order);
$criteria->setStart($start);
$criteria->setLimit($limit);
If those functions were chainable, it will be easier and...
2009-06-13 13:37:08 UTC in XOOPS Web Application Platform