Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7778773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:28:56+00:00 2026-06-01T18:28:56+00:00

Instead of using the system.xml to create groups and sections in a static way

  • 0

Instead of using the system.xml to create groups and sections in a static way I want to create a section and groups in the code. Pls take a look at the screenshot:

groups

Whats shown on the screen was done in the modules system.xml, now I want to do that directly in the code. I also found the place where the form is being built, its in app/code/core/Mage/Adminhtml/Block/System/Config/Form.php in the initForm() function. There it reads the sections and the inner groups. The problem I have is, that I dont know how to proceed from here. Maybe somebody has done a similiar thing or can point me in the right direction. I guess part of it is creating a Mage_Core_Model_Config_Element by myself?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:28:57+00:00Added an answer on June 1, 2026 at 6:28 pm

    This way to use system/config screen is not the Magento standard.

    If you want to keep stay in standard, you have two options:

    1. Create your own config screen.
    2. Use the frontend_model property of groups in your config.xml

      <?xml version="1.0"?>
      <config>
          <sections>
              <your_section>
                  <groups>
                      <your_group>
                           <frontend_model>your_module/your_block</frontend_model>
                      </your_group>
                  </groups>
              </your_section>
          </sections>
      </config>
      

    Then you are able to do whatever you want with the provided block, create dynamically as many fieldset as you want, adding custom fields, etc.

    This block must extends Mage_Adminhtml_Block_System_Config_Form_Fieldset and if you want your fields to save data in core_config_data, they will need to have name=’groups[your_group][fields][your_field][value]’ (Magento will take care of the your_section part for you).

    Your fields must read data theimselves too, just put that in their value attribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code: WebRequest request = HttpWebRequest.Create(url); WebResponse response = request.GetResponse(); using (System.IO.StreamReader
I'm using MonoTouch and also System.Data to create a DataSet (just xml to those
My air app is using the FlexChrome instead of the system chrome. The problem
Instead of using an external web-based Mercurial host, I want to set one up
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.IO; using System.Xml; using System.Xml.Linq;
I am using the (.NET 3.5 SP1) System.Xml.Linq namespace to populate an html template
I'm using the XML parsing methods from System.Xml.Linq . I've been ignoring this problem
We were using class 'System.Xml.Xsl.XslTransform' in our project and now recently we started using
Here's the relevant (C#.NET) code: WebRequest webRequest = System.Net.WebRequest.Create(authenticationUrl); UTF8Encoding encoding = new UTF8Encoding();
Instead using the google search appliance crawler for index content, im using a query

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.