I create my own module with some form field.
How add/remove dynamicaly this form field?
For example, there are "Add button". I click on this button and form field add.
Please HELP!!!
this cannot be done in this section, as a module layout is a static template for the module. All of the fields are set when the xml file is read during module installation.
For set fields you can always use JavaScript to hide particular fields, but if you want to create,edit,delete or update information on multiple instances you will need a component. A nice easy to use component creator can be found here - http://joomlacomponentcreator.codelydia.com/
Related
I would kindly ask for your help :) From couple of days I am trying to achieve "linked" custom field in content editor and dropdown in page editor.
Basically I want to have dropdown in page editor and content editor which are responsible for a same thing.
In my c# code i have enums which represent directions. I created custom field which accepts assembly and class with overridden onload method and successfully populate dropdown values in the content editor. So far so good but i have no idea how to create dropdown which will represent the same functionality inside page editor.
So please give me any ideas...
Judging from your reply to my comment you need to think of the following: How is my field value being rendered onto a page?
If you are always using 1 control to do this then you just need to ensure that this control has 2 different rendering modes depending on the Context.PageMode
But as I understand it you want this dropdown to also appear when someone renders your custom field using a <sc:FieldRenderer>. In this case you'll need to look into the RenderField pipeline of Sitecore. There you find a processor called RenderWebEditing. Possibly through some manipulation here you can get your dropdown appear as you wish.
Magento 1.7.2 (adminpanel attribute)
TypeError: this.fileValue.toJSON is not a function
$(this.idName+'_save').value = this.fileValue.toJSON();
I have add Attribute drop down option value multiple but after saving
data only one value display there. How to get all attribute option
list.
I have added there option
after save only one value there.
Attribute label option issue generate with Ecommerce Team
SEO Layered Navigation. so i have disable this plugin on this
place on my Project.
app/etc/modules
EcommerceTeam_Sln.xml
I have added new custom fields (checkbox) in catalog\category. using Installer.
it appears in a new tab as i want but can't save the value checked,
if anyone can help me to save the custom Checkbox Value.
It sounds like you have added an attribute using the install script, and although Magento will display a checkbox the data won't be saved, even if you are using the eav/entity_attribute_source_boolean source model.
I would consider using a select rather than a checkbox. However if you require a the input to be a checkbox, you will need to create your own input & source model to handle it.
I've already created a custom module that overrides the sales/order/view/tab/info.phtml layout file and creates a new field in the sales_flat_order table. Now I need figure out how to add a text input field to the order page:
The save button doesn't necessarily need to be right near the custom field and the field doesn't need to necessarily appear right where I put it in the graphic. Bottom line is, the administrator needs to be able to edit my new custom field in the admin.
What is the best way to do that?
Look at Comments History block
implementation - class Mage_Adminhtml_Block_Sales_Order_View_History, its template \app\design\adminhtml\default\default\template\sales\order\view\history.phtml and Mage_Adminhtml_Sales_OrderController::addCommentAction(). You should create similar block class with similar template and create controller with action which will save form data to your db field.
I built a Joomla 1.5 component, non-MVC, and it's working fine, so I'd rather not change it to MVC. I need to have some menu items point to my component, each menu item passing different parameters to the component. The 'Menu item specific parameters' section in http://docs.joomla.org/Component_parameters is pretty clear, except that the tutorial locates the XML file that contains the parameters assuming an MVC structure.
If my component doesn't follow MVC, where should I put that XML file, and what should be its name, so that Joomla can find it and show the parameters in the menu creation screen?
Thanks
You can store those parameters in the database table. There is a parameter column where you can define any parameters you want for each menu element. This is explained in the same joomla doc that you link to in your answer...
I ended up changing to MVC. :|