Skip to main content

I have created custom module configuration in admin panel forto Enable in frontedfrontend and Modify Heading title. But the settings isare not visible in the admin Store > Settings > Configuration.

I have created custom module configuration in admin panel for Enable in fronted and Heading title. But the settings is not visible in the admin Store > Settings > Configuration.

I have created custom module configuration in admin panel to Enable in frontend and Modify Heading title. But the settings are not visible in the admin Store > Settings > Configuration.

Position.php file code.
Source Link
mageDev0688
  • 696
  • 4
  • 19
  • 34

Below is \Tutorial\SimpleNews\Model\System\Config\LastestNews\Position.php file code:

<?php
 
namespace Tutorial\SimpleNews\Model\System\Config\LastestNews;
 
use Magento\Framework\Option\ArrayInterface;
 
class Position implements ArrayInterface
{
    const LEFT      = 1;
    const RIGHT     = 2;
    const DISABLED  = 0;
 
    /**
     * Get positions of lastest news block
     *
     * @return array
     */
    public function toOptionArray()
    {
        return [
            self::LEFT => __('Left'),
            self::RIGHT => __('Right'),
            self::DISABLED => __('Disabled')
        ];
    }
}

Below is \Tutorial\SimpleNews\Model\System\Config\LastestNews\Position.php file code:

<?php
 
namespace Tutorial\SimpleNews\Model\System\Config\LastestNews;
 
use Magento\Framework\Option\ArrayInterface;
 
class Position implements ArrayInterface
{
    const LEFT      = 1;
    const RIGHT     = 2;
    const DISABLED  = 0;
 
    /**
     * Get positions of lastest news block
     *
     * @return array
     */
    public function toOptionArray()
    {
        return [
            self::LEFT => __('Left'),
            self::RIGHT => __('Right'),
            self::DISABLED => __('Disabled')
        ];
    }
}
system.xml code.
Source Link
mageDev0688
  • 696
  • 4
  • 19
  • 34
added 152 characters in body
Source Link
Rakesh Jesadiya
  • 42.4k
  • 19
  • 132
  • 184
Loading
system.xml code.
Source Link
mageDev0688
  • 696
  • 4
  • 19
  • 34
Loading
Source Link
mageDev0688
  • 696
  • 4
  • 19
  • 34
Loading