Search the Community
Showing results for tags 'pageautocomplete'.
-
I need to make a quick and easy way to access the edit page for page selects, usually with AsmSelect; so far i have been able to use this jquery to turn the label for the AsmSelect into a link to the page editor for that selected page, but i can't figure any easy way to make it into a modal.. anyone else tried to do this yet? $(function(){ $('div.InputfieldPageAutocomplete ol li').each(function(){ var id = $(this).find('span.itemValue').text(); $(this).find('span.itemLabel').wrapInner(" <a class='edit-modal' href='"+config.urls.admin+"page/edit/?id="+id+"' target='_blank'></a>"); }); }); adding this with the AdminCustomFiles assigned to process page edit..
-
Hi! I have a problem with the PageAutocomplete field. I have made my pages: -- Clientes (template clientes) ---- Luis Santiago (template cliente) I have the PageAutocomplete field here (cliente_inmuebles) . ---- Second Name ---- Third Name -- Inmuebles (template inmobiliaria) id=1053 ---- Pisos (template tipo_inmueble) ------ Piso nº1 (template propiedad) ------ Piso nº2 ------ Piso nº3 ---- Casa ------ Casa nº1 ------ Casa nº2 ------ Casa nº3 Parent of selectable page(s): Inmuebles. Template of selectable pages : tipo_inmueble. Custom selector to find selectable pages: has_parent=1053, template=propiedad. (Without this selector shows nothing) The list of pages appear and I can select them but when I save I get the error: Page 1058 is not valid for cliente_inmuebles