Git Product home page Git Product logo

Comments (3)

colinmollenhour avatar colinmollenhour commented on August 28, 2024

I think it should work with just the layout update if you add also:

<action method="setSuppressOutput"><param>1</param></action>

Then be sure to add the formkey block to the dynamic handle (e.g. DIEHARD_DYNAMIC_default).

from cm_diehard.

JamesJohnsonOnstate avatar JamesJohnsonOnstate commented on August 28, 2024

Hi Colin,

I've updated the diehardconfig.xml so that the DIEHARD_DYNAMIC_default now contains

<DIEHARD_DYNAMIC_default>
    <reference name="header">
        <block type="page/template_links" name="top.links" as="topLinks"/>
        <block type="checkout/cart_sidebar" name="cart_sidebar_top" as="topCart" template="checkout/cart/cartheader.phtml"/>
        <block type="checkout/cart_sidebar" name="cart_sidebar_top_mobile" as="topCartMobile" template="checkout/cart/cartheader.phtml"/>
        <block type="page/html_welcome" name="welcome" as="welcome"/>
        <block type="core/template" name="mobile.cart.switch" as="mobileCart" template="page/html/mobile_cart.phtml" />
    </reference>
    <reference name="root">
        <block name="formkey" type="core/template" template="core/formkey.phtml" />
    </reference>
</DIEHARD_DYNAMIC_default>

I've also updated local.xml with

<reference name="formkey">
    <action method="addDefaultIgnored" />
    <action method="setBlockIsDynamic"></action>
    <action method="setSuppressOutput"><param>1</param></action>
</reference>

Something is happening because the Form Key block is now replaced with <div id="dh_formkey"></div>.

But I need it to output the HTML still, is there another step?

Thanks for the help.

from cm_diehard.

colinmollenhour avatar colinmollenhour commented on August 28, 2024

DIEHARD_DYNAMIC_default doesn't exist by default so there is no "root" or "header" block to reference. Try putting all of your blocks directly in the handle as in the example in the README.

from cm_diehard.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.