CODNITIVE

Extended ifconfig

  • Popularity Score 144 Popularity Score

    Popularity ScoreReferrals to Site/Downloads

    0 0 1+ 1+ 250+ 250+ 1000+ 1000+ 10000+ 10000+

With 'Extended ifconfig' you can use all boolean, string and numeric type conditions in layouts action tags.
Compatible with:
This extension is currently unavailable on Magento Connect. Please contact the developer.

You will be re-directed to the developer's website to complete your purchase.

You must be registered and logged in to get extension key.
In order to get this extension, you must be logged in to the Magento Community. Click here to login or register.
In order to get this extension, you must have active Magento Go Store. Click here to create Go store.

Magento Connect 2.0

Magento Connect 2.0

FREE
Previous Next
Overview

Extended ifconfig

No matter you are a Magento professional developer, a site owner or a developer which works on Magento, "Extended ifconfig" is for you to improves your works and makes it easier to you coding Magento.
As you know, in Magento layout XML files you can use "action" tag to calling a method. Magento's action can gets name of method in "method" attribute and a boolean condition in "ifconfig" attribute. The ifconfig attribute gets address of a configuration option in Magento admin system and checks it for true or false, if option's value be true then specified method will call.
Now imagine you want call "addJs" method to loading file.js, if option X is false in your extension configuration settings. Or think you want load this file if option X is false but options Y is equal to "animation". That's right, this is not possible by Magento's default core. The action tag calls defined method if the only defined option just be true and nothing else.
But "Extended ifconfig" can handles this new functionalities for you. With this extension you can use action in different types and modes to have more functionalities and flexibilities.

Please note: before installing any extension, first test it on a simulator of your website, if there isn't any problem then install it on your original store.
Please note: don't forget, always make a backup of your original store before any new extension installation.

Key Features:

  • Full Free Extension
  • Checking boolean value (both true and false)
  • Checking string and numeric values
  • Checking for multiple options
  • Using of multiple module
  • Checking multiple options in multiple modules
  • Using custom operation for checking multiple options

User Guide:

You can use this extension in 3 mode:
1. Magento default mode
2. Extended default mode
3. Flexible professional mode

1. This extension is completely compatible with Magento's default action. So don't worry about it, all default ifconfigs used by Magento core team work like always without problem. Also you can use default ifconfig like before anywhere, anytime.

2. Extended default mode just adds a new "condition" attribute which will defines the condition for action method. Let's take a look at above examples. You want load a javascript file in frontend when value of Menu Type option is "animation" for your Professional Menu extension.
You write action tag like this:
...action method="addJs" ifconfig="catalog/promenu/type" condition="animation"...
The extension will gets value of "type" option in "promenu" module and compares it with condition attribute value, if it be equal to "animation" then it will calls addJs method.

3. In professional mode you can use multiple options of a module or multiple modules, with custom operation to check those. Let's describe it with an example.
You want load a stylesheet file when your extension is active and style option is true in your extension setting or when value of skin for theme is equal to "modern".
You must write something like this:
...action method="addCss" modules="general/anextension/; design/theme/" options="active, style; skin" conditions="true, 1; modern" operation="(0 and 1) or 2"...
The ifconfig attribute explodes into two options, "modules" and "options". In modules attribute you define name of section and name of group which you defined for you modules configuration settings in its system.xml file, and you define option in options attribute with the name which you defined inside fields tag in system.xml file. So syntax is modules="section/group/" and options="option_name".
If you want use multiple module, you must separate those with semicolon(;) in modules, options and conditions attributes; and if you want check for multiple options for each module, you must separate each option with comma(,). So in above example, the extension will gets value of active and style from general/anextension/ path from your extension, so they are general/anextension/active and general/anextension/style, and it gets value of skin field from design/theme path which is design/theme/skin.
Now we must define conditions for each one of this options. Let's back to options attribute. The extension reads value of this attribute from left to right and marks each option with a number from zero, so active is 0, style is 1 and skin is 2. In condition attribute we must define condition of each option by its sort order. In above example, active option will checks for true value, style for true also and skin for modern value. The result of comparison will save in its option mark number.
And finally we define our operation to let action to calls addCss. In operation attribute we use mark number of each option instead its name. In the example we said to extension, calls addCss if active option and style both are equal to true or skin option has modern value.

Note:
- Don't use "ifconfig" attribute if you use flexible professional mode.
- Don't forget second slash in modules attribute.
- Separate each module with semicolon(;).
- Separate each module's option with comma(,).
- You must use both modules and options attributes.
- If conditions attribute isn't set or its value is null, true value will use for each option.
- If operation attribute isn't set or its value is null, options mark numbers will use from left to right, and "AND" operator will use for all of them.
- Conditions can be boolean, string and numeric.
- For true condition you can use true, TRUE or 1.
- For false condition you can use false, FALSE or 0.
- For and operator you can use and, AND or .(dot) symbol.
- For or operator you can use or, OR, +(plus) symbol.
- In operation you can use just integers, parentheses and specified operators.

Configuration Guide:

This extension has not any configuration settings.

Release Notes

Bug fix

2013-07-04 11:48:10
  • Version number: 1.7.20
  • Stability: Stable
  • Compatibility: 1.5, 1.6, 1.6.1, 1.6.2.0, 1.7
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

Some minor bugs fixed.

Stable Release

2012-05-02 16:06:37
  • Version number: 1.7.00
  • Stability: Stable
  • Compatibility: 1.5, 1.6, 1.6.1, 1.6.2.0, 1.7
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

Magento 1.7.0.0 compatibility added.

First Release

2012-02-05 17:05:35
  • Version number: 1.6.06
  • Stability: Beta
  • Compatibility: 1.5, 1.6, 1.6.1
You must be registered and logged in to get extension key.

Magento Connect 2.0

Magento Connect 2.0

This is the first released version. The version is beta.
Reviews

About the Developer

This extension was developed by and is supported by CODNITIVE

Q&A
(1 Question : 1 Answer)

Product Q&A

Ask your questions. Share your answers.

 
 
« Back
 
 
Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_25917537
Customer avatar
I have detailed product info blocks I want to put into tabs. I need to enable/disable those tabs depending on the type of product.

if(product attribute value = ABC){show this set of tabs.}

What would it take to set an ifconfig value from a product attribute?
by
netstepinc
-
1 year, 1 month ago
0points
0out of 0found this question helpful.
Was this helpful?Yes0No0

Answers

Avatar Image Url:: http://www.magentocommerce.com/images/avatars/uploads/avatar_178933
Customer avatar
Answer: 
ifconfig is in layout level and works with configuration settings, not attributes.
Maybe you should check for it programmatically in view/block.
by
CODNITIVE
-
1 year, 1 month ago
0points
0out of 0found this answer helpful.
Was this helpful?Yes0No0
1 of 1
1 of 1
Get Help

Support for This Extension

The best place to start if you need help with a specific extension is to contact the developer. All Magento developers have both a contact email and a support email listed.

Magento Platform Support

If you need support for a Magento platform, there are different options for support depending on which Magento platform you are using. Below are links for specific platforms.

In order to upload extension, you must be logged in to the Magento Community. Click here to login or register.

Close

Register

* Required Fields

Close window

Forgot Your Password?

Please enter your email below and we'll send you a new password.

* Required Fields

Close window

Login

To upload extension you must be logged in.

* Required Fields

Close window

You are using an outdated browser

We built Magento Connect using the latest techniques and technologies.
This makes Magento Connect faster and easier to use.
Unfortunately, your browser doesn't support those technologies.
Use the links below to download a new browser or upgrade your existing browser.