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

  • SEARCH
  • Home
  • 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 8938079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:32:34+00:00 2026-06-15T10:32:34+00:00

Is it possible to use Custom Variables in a layout file? I can use

  • 0

Is it possible to use Custom Variables in a layout file? I can use them in a template file like this:

Mage::getModel('core/variable')->loadByCode('variableCode')->getData('store_plain_value')

But not sure with the xml file.

I know I could use the above instead, but this would be useful to know anyway for future uses too.

UPDATE: Have been most unclear I’m afraid. I am specifically looking to access the admin panel “Custom Variables” section, not just pass my own variables to a block. I do apologise for the lack of clarity.

  • 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-15T10:32:35+00:00Added an answer on June 15, 2026 at 10:32 am

    Based on the updated question:

    Create a helper class which wraps the core/variable functionality, e.g:

    class Some_Module_Helper_Variable
    {
        public function getVariableData($code,$param)
        {
            return Mage::getModel('core/variable')->loadByCode($code)->getData($param);
        }
    }
    

    Then, in layout XML for your block you can do this (I believe):

    <action method="setSomeVal">
        <arg helper="class_group/variable/getVariableData">
            <arg1>variableCode</arg1>
            <arg2>store_plain_value</arg2>
        </arg>
    </action>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to use custom types in OpenCL kernel like gmp types (mpz_t,
Is this possible to use Ajax.Beginform with update target inside of ajax form. like
Is it possible to use a vector graphic as a custom form shape in
In C# it is possible to use the MongoDB driver to define a custom
I am trying to use a ViewPager inside a custom Dialog... is it possible
Is it possible use a MySQL query to perform this kind of check? If
Is it possible to call in a .js file synchronously and then use it
I'm wondering is possible to integrate custom servlet logic with .jsp template view. For
I would like to define the class name using variables in PHP. Is this
Is it possible to define a custom super global variable? (whether in code, or

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.