cotonti.com : Extrafield file, how to use it? https://www.cotonti.com Последние сообщения в теме Cotonti en Thu, 27 Nov 2025 23:06:02 -0000 esclkm If You have more simple way - you can say about it)

]]>
вт, 02 авг 2011 12:33:17 -0000
GHengeveld You can use {PAGEADD_FORM_FILE.FILE} {PAGEADD_FORM_FILE.DELETE} and {PAGEADD_FORM_FILE.LINK}

]]>
вт, 02 авг 2011 11:32:20 -0000
Mr G. v 0.9.3, this same on snapshot made from git 4 days ago.

beznazwyrmz.th.jpg

base html generated by Cotonti. i've just put name and descr.and type of field

function  cot_build_extrafields from  /system/extrafields.php returns an array for "file"

case 'file':
			$R["input_text_{$rc_name}"] = (!empty($R["input_text_{$rc_name}"])) ? $R["input_text_{$rc_name}"] : $extrafield['field_html'];

			$result['FILE'] = cot_inputbox('file', $name, '');
			$result['DELETE'] = cot_checkbox(false, 'rdel_' . $name, $L['Delete']);
			$result['LINK'] = htmlspecialchars($data);
			break;

But how to display each 'record' from this array?

]]>
вт, 02 авг 2011 08:05:32 -0000
pieter Which version?

Maybe take a sreeenshot of all parameters you used in admin.php?m=extrafields&n=sed_pages

]]>
вт, 02 авг 2011 07:42:33 -0000
Mr G. Hi, i have one question. How to use extrafield file? When i add an extrafield i.e. img and add in page.edit.tpl tag {PAGEEDIT_FORM_IMG} it only display an "Array" text.

]]>
вт, 02 авг 2011 05:03:22 -0000