Get content of CMS Block in Magento 1.xCMS block caching issue in EE 1.14.2Magento base url static blockCalling to custom block from cms page display blank pageUpdate CMS static block content programmaticallyHow to display the static block inside tab content?magento 2 : how to use phtml in cms static blockget cms block title magento2$this keyword is not available in template of core/template blockGet content of CMS block by identifierHow to show static block just below navigation?

Why won't the Republicans use a superdelegate system like the DNC in their nomination process?

Can a bald person be a Nazir?

A torrent of foreign terms

How would you translate this? バタコチーズライス

What is the farthest a camera can see?

How do I call a 6-digit Australian phone number with a US-based mobile phone?

Markov-chain sentence generator in Python

What sort of psychological changes could be made to a genetically engineered human

How was the murder committed?

If "more guns less crime", how do gun advocates explain that the EU has less crime than the US?

(A room / an office) where an artist works

What is the hottest thing in the universe?

Are employers legally allowed to pay employees in goods and services equal to or greater than the minimum wage?

Help, I cannot decide when to start the story

How to find directories containing only specific files

Heating Margarine in Pan = loss of calories?

Does fossil fuels use since 1990 account for half of all the fossil fuels used in history?

Scam? Phone call from "Department of Social Security" asking me to call back

Corroded Metal vs Magical Armor, should it melt it?

PhD advisor lost funding, need advice

Telephone number in spoken words

If I animate and control a zombie, does it benefit from Undead Fortitude when it's reduced to 0 HP?

Modeling the uncertainty of the input parameters

Why is there a large performance impact when looping over an array over 240 elements?



Get content of CMS Block in Magento 1.x


CMS block caching issue in EE 1.14.2Magento base url static blockCalling to custom block from cms page display blank pageUpdate CMS static block content programmaticallyHow to display the static block inside tab content?magento 2 : how to use phtml in cms static blockget cms block title magento2$this keyword is not available in template of core/template blockGet content of CMS block by identifierHow to show static block just below navigation?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















i want get content in CMS Block, i tryed this code but it not show content



My code :



<?php foreach ($this->getAgreements() as $_a): ?>
<?php echo $_a->getContent() ?>
<?php endforeach ?>


It not show content, but show this:



block type="cms/block" block_id="gs_business_terms"









share|improve this question
























  • +1 for answer acceptance :)

    – Shoaib Munir
    Aug 2 at 10:22

















2















i want get content in CMS Block, i tryed this code but it not show content



My code :



<?php foreach ($this->getAgreements() as $_a): ?>
<?php echo $_a->getContent() ?>
<?php endforeach ?>


It not show content, but show this:



block type="cms/block" block_id="gs_business_terms"









share|improve this question
























  • +1 for answer acceptance :)

    – Shoaib Munir
    Aug 2 at 10:22













2












2








2


2






i want get content in CMS Block, i tryed this code but it not show content



My code :



<?php foreach ($this->getAgreements() as $_a): ?>
<?php echo $_a->getContent() ?>
<?php endforeach ?>


It not show content, but show this:



block type="cms/block" block_id="gs_business_terms"









share|improve this question














i want get content in CMS Block, i tryed this code but it not show content



My code :



<?php foreach ($this->getAgreements() as $_a): ?>
<?php echo $_a->getContent() ?>
<?php endforeach ?>


It not show content, but show this:



block type="cms/block" block_id="gs_business_terms"






magento-1.9 static-block cms-block






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 2 at 9:42









TN98TN98

35711 bronze badges




35711 bronze badges















  • +1 for answer acceptance :)

    – Shoaib Munir
    Aug 2 at 10:22

















  • +1 for answer acceptance :)

    – Shoaib Munir
    Aug 2 at 10:22
















+1 for answer acceptance :)

– Shoaib Munir
Aug 2 at 10:22





+1 for answer acceptance :)

– Shoaib Munir
Aug 2 at 10:22










2 Answers
2






active

oldest

votes


















4














Use this code to echo content of cms block



<?php foreach ($this->getAgreements() as $_a): ?>
<?php echo Mage::helper('cms')->getPageTemplateProcessor()->filter($_a->getContent());?>
<?php endforeach ?>


This should work






share|improve this answer




















  • 1





    thank you very much, it work for me! have a nice day Shoaib Munir

    – TN98
    Aug 2 at 10:19


















1














You can call like this one.



<?php foreach ($this->getAgreements() as $_a): ?>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($_a->getIdentifier())->toHtml();
?>
<?php endforeach ?>





share|improve this answer



























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f284204%2fget-content-of-cms-block-in-magento-1-x%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    Use this code to echo content of cms block



    <?php foreach ($this->getAgreements() as $_a): ?>
    <?php echo Mage::helper('cms')->getPageTemplateProcessor()->filter($_a->getContent());?>
    <?php endforeach ?>


    This should work






    share|improve this answer




















    • 1





      thank you very much, it work for me! have a nice day Shoaib Munir

      – TN98
      Aug 2 at 10:19















    4














    Use this code to echo content of cms block



    <?php foreach ($this->getAgreements() as $_a): ?>
    <?php echo Mage::helper('cms')->getPageTemplateProcessor()->filter($_a->getContent());?>
    <?php endforeach ?>


    This should work






    share|improve this answer




















    • 1





      thank you very much, it work for me! have a nice day Shoaib Munir

      – TN98
      Aug 2 at 10:19













    4












    4








    4







    Use this code to echo content of cms block



    <?php foreach ($this->getAgreements() as $_a): ?>
    <?php echo Mage::helper('cms')->getPageTemplateProcessor()->filter($_a->getContent());?>
    <?php endforeach ?>


    This should work






    share|improve this answer













    Use this code to echo content of cms block



    <?php foreach ($this->getAgreements() as $_a): ?>
    <?php echo Mage::helper('cms')->getPageTemplateProcessor()->filter($_a->getContent());?>
    <?php endforeach ?>


    This should work







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 2 at 9:51









    Shoaib MunirShoaib Munir

    5,7616 gold badges24 silver badges71 bronze badges




    5,7616 gold badges24 silver badges71 bronze badges










    • 1





      thank you very much, it work for me! have a nice day Shoaib Munir

      – TN98
      Aug 2 at 10:19












    • 1





      thank you very much, it work for me! have a nice day Shoaib Munir

      – TN98
      Aug 2 at 10:19







    1




    1





    thank you very much, it work for me! have a nice day Shoaib Munir

    – TN98
    Aug 2 at 10:19





    thank you very much, it work for me! have a nice day Shoaib Munir

    – TN98
    Aug 2 at 10:19













    1














    You can call like this one.



    <?php foreach ($this->getAgreements() as $_a): ?>
    <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($_a->getIdentifier())->toHtml();
    ?>
    <?php endforeach ?>





    share|improve this answer





























      1














      You can call like this one.



      <?php foreach ($this->getAgreements() as $_a): ?>
      <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($_a->getIdentifier())->toHtml();
      ?>
      <?php endforeach ?>





      share|improve this answer



























        1












        1








        1







        You can call like this one.



        <?php foreach ($this->getAgreements() as $_a): ?>
        <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($_a->getIdentifier())->toHtml();
        ?>
        <?php endforeach ?>





        share|improve this answer













        You can call like this one.



        <?php foreach ($this->getAgreements() as $_a): ?>
        <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($_a->getIdentifier())->toHtml();
        ?>
        <?php endforeach ?>






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 2 at 10:16









        Dhiren VasoyaDhiren Vasoya

        4,9305 gold badges20 silver badges47 bronze badges




        4,9305 gold badges20 silver badges47 bronze badges






























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f284204%2fget-content-of-cms-block-in-magento-1-x%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form