You can set various Git configuration options within your repository. This configuration option list can be viewed by running the git config command, passing in --list as an option.
$ git config --list
You can then set a configuration option by typing git config [option] [value].
Set the Git username
To set the Git username, ...
A vanilla install of Magento will usually have a page load time of under a second, even with all cache types disabled in the admin. As functionality gets added to the Magento application, the more configuration it has to load and there is an decrease in page speed. However, there are many examples of ...
jQuery is one of the most popular JavaScript libraries used when creating websites and simplifies writing the JavaScript programming language. Using jQuery in web development requires you to add the library to your project using a script include, and with a pair of script tags, you are then able to manipulate the DOM using jQuery ...
The Compass core framework contains functionality that can be re-used within your CSS project without the need of duplicating code. The code Compass provides includes predefined variables, functions and mixins.
This code comes in the form of support files that Compass provides. These files can then be imported into your project using the @import keyword.
When multiple developers are working on a project version controlled using Git, there may be occasions where conflicts between modifications to the same file occur. Resolving Git merge conflicts requires human activity to choose which of the changes to keep or discard.
To demonstrate this in action, let’s assume that two developers, Developer A and ...
Magento’s Page Cache module successfully caches page content and is now a part of the Community Edition releases. The cached content can be split into two parts: public content and private content.
Public content is stored within the cache location you specify for your Magento application, either in the file system, in the database, or ...
Magento allows you to add names and aliases to your blocks when adding a block within layout XML configuration. This is done by defining a block with name and as attributes.
<block type="core/template" name="module.custom.block" as="custom_block" template="custom/template.phtml" />
Often it is unclear what the purpose of these attributes are used for.
When defining a block, the ...
Handling React Events is not too dissimilar to using pure JavaScript on DOM elements.
For click events, a camel-cased onClick attribute is used as opposed to the standard onclick.
In addition, the value within onClick uses the JSX syntax and is not a string.
This can be written within a React component class like ...
React is a a JavaScript library developed by Facebook for building user interfaces. Getting started with React on your local environment requires the following scripts included within your document.
The building blocks used to create the UI are split into components that are rendered using React’s render() function.
The advantages of this approach include ensuring ...
Adding Magento modules give us the ability to extend the default functionality. Sometimes when developers are attempting extending a third party module in Magento, their changes are overwritten when the module is upgraded.
This is usually because changes are made within the third party modules themselves and not within a module that extends them.
Even ...