Keyword

Problem with k2 Plugin

  • Sergio Di Mare
  • Sergio Di Mare's Avatar Topic Author
  • Offline
  • New Member
More
9 years 1 month ago #153106 by Sergio Di Mare
Problem with k2 Plugin was created by Sergio Di Mare
i create a plugin in k2
in xml file i add
.....
......
<!-- K2 plugin parameters which extend K2 backend forms are defined here -->
	<fields group="item-content">
			<field name="tabella" id="tabella"
				type="repeatable"
				icon="list"
				select ="Inserisci/Modifica"
				description="Inserisci, modifica le righe della tabella"
				label="Tabella Articoli Prodotto"
				default="{'articolo':['xxxxxx'],'prodotto':['Nome Prodotto'],'dimensioni':['cm 5x5'],'confezione':['10 pz']}">
				<fieldset  name="tabella_modal" id="tabella_modal" repeat="true" hidden="true">
						<field name="articolo"	label="Codice dell'articolo" size="30" type="text" />
						<field name="prodotto"	label="Nome del prodotto"	description="Scrivere il nome del prodotto o qualche codice particolare" size="30" type="text" />
						<field name="dimensioni" label="Misura"	description="Scrivere la misura del prodotto largezza x altezza" size="10"		type="text" />
						<field name="confezione" label="Quantità nella confezione"	description="Numero di pezzi disponibili nella confezione"	size="10" type="text" />
				</fieldset>
			</field>
	</fields>

it works but though i insert hidden="true" i see the input tag in backend (see imgur.com/OzMt8m4)
Joomla 3.5.1 - k2 2.7.0

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #153113 by Krikor Boghossian
Replied by Krikor Boghossian on topic Problem with k2 Plugin
The field (not the fieldset) can be hidden by using type="hidden" .

Please Log in or Create an account to join the conversation.

  • Sergio Di Mare
  • Sergio Di Mare's Avatar Topic Author
  • Offline
  • New Member
More
9 years 1 month ago #153117 by Sergio Di Mare
Replied by Sergio Di Mare on topic Problem with k2 Plugin
if i write
<field name="articolo" label="Codice dell'articolo" size="30" type="hidden" />
this hide in modal...
imgur.com/mkbr245

Please Log in or Create an account to join the conversation.

  • Sergio Di Mare
  • Sergio Di Mare's Avatar Topic Author
  • Offline
  • New Member
More
9 years 1 month ago #153118 by Sergio Di Mare
Replied by Sergio Di Mare on topic Problem with k2 Plugin
i think that it's a problem of k2
the same code work in plugin option page.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #153169 by Krikor Boghossian
Replied by Krikor Boghossian on topic Problem with k2 Plugin
You can hide it with CSS as well in the backend only.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum