Comments (3)
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.
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.
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)
- Cm_Diehard_Model_Backend_Magento dynamic blocks broken HOT 1
- Getting a notice when the diehard helper is used in extractContent() HOT 2
- Ajax / Javascript local storage HOT 10
- Getting early_flush to work HOT 4
- Splash messages and dynamic core/messages block HOT 4
- Did we say thank you? HOT 3
- Installation HOT 1
- Serialization of 'Mage_Core_Model_Layout_Element' is not allowed HOT 1
- Call to a member function getId() on a non-object HOT 2
- Notice: Undefined offset: 1 in Diehard/code/Model/Backend/Abstract.php on line 129 HOT 2
- Javascript not finding element with colon in it.
- Implement BigPipe method HOT 1
- Get current store in cache backend getCacheKey() method HOT 1
- White space HOT 2
- Comment out the File Cache backend? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cm_diehard.