Version Notes
FAQ Extension
Download this release
Release Info
Developer | Dropfin |
Extension | Dropfin_Faq |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/community/Dropfin/Faq/Block/Adminhtml/Category/Edit/Tab/Form.php
CHANGED
@@ -53,23 +53,13 @@ class Dropfin_Faq_Block_Adminhtml_Category_Edit_Tab_Form extends Mage_Adminhtml_
|
|
53 |
'name' => 'display_order',
|
54 |
));
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true)
|
64 |
-
));
|
65 |
-
} else {
|
66 |
-
$store_id = $fieldset->addField('store_id', 'hidden',
|
67 |
-
array (
|
68 |
-
'name' => 'store_id[]',
|
69 |
-
'value' => Mage::app()->getStore(true)->getId()
|
70 |
-
));
|
71 |
-
$model->setStoreId(Mage::app()->getStore(true)->getId());
|
72 |
-
}
|
73 |
|
74 |
$fieldset->addField('status', 'select', array(
|
75 |
'label' => Mage::helper('faq')->__('Status'),
|
53 |
'name' => 'display_order',
|
54 |
));
|
55 |
|
56 |
+
$store_id = $fieldset->addField('store_id', 'multiselect', array (
|
57 |
+
'name' => 'store_id[]',
|
58 |
+
'label' => Mage::helper('faq')->__('Store view'),
|
59 |
+
'title' => Mage::helper('faq')->__('Store view'),
|
60 |
+
'required' => true,
|
61 |
+
'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true)
|
62 |
+
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
$fieldset->addField('status', 'select', array(
|
65 |
'label' => Mage::helper('faq')->__('Status'),
|
app/code/community/Dropfin/Faq/Block/Adminhtml/Faq/Edit/Tab/Form.php
CHANGED
@@ -30,23 +30,13 @@ class Dropfin_Faq_Block_Adminhtml_Faq_Edit_Tab_Form extends Mage_Adminhtml_Block
|
|
30 |
$this->setForm($form);
|
31 |
$fieldset = $form->addFieldset('faq_form', array('legend'=>Mage::helper('faq')->__('Faq item information')));
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true)
|
41 |
-
));
|
42 |
-
} else {
|
43 |
-
$storeId = $fieldset->addField('store_id', 'hidden',
|
44 |
-
array (
|
45 |
-
'name' => 'store_id[]',
|
46 |
-
'value' => Mage::app()->getStore(true)->getId()
|
47 |
-
));
|
48 |
-
$model->setStoreId(Mage::app()->getStore(true)->getId());
|
49 |
-
}
|
50 |
|
51 |
$categories = Mage::getModel('faq/category')->getCollection()
|
52 |
->addFieldToFilter('status', array('eq' => 1))
|
30 |
$this->setForm($form);
|
31 |
$fieldset = $form->addFieldset('faq_form', array('legend'=>Mage::helper('faq')->__('Faq item information')));
|
32 |
|
33 |
+
$storeId = $fieldset->addField('store_id', 'multiselect', array (
|
34 |
+
'name' => 'store_id[]',
|
35 |
+
'label' => Mage::helper('faq')->__('Store view'),
|
36 |
+
'title' => Mage::helper('faq')->__('Store view'),
|
37 |
+
'required' => true,
|
38 |
+
'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true)
|
39 |
+
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
$categories = Mage::getModel('faq/category')->getCollection()
|
42 |
->addFieldToFilter('status', array('eq' => 1))
|
app/code/community/Dropfin/Faq/etc/adminhtml.xml
CHANGED
@@ -30,21 +30,21 @@
|
|
30 |
<sort_order>70</sort_order>
|
31 |
<children>
|
32 |
<dropfin_faq translate="title">
|
33 |
-
<title>
|
34 |
<sort_order>50</sort_order>
|
35 |
<children>
|
36 |
<category translate="title">
|
37 |
-
<title>
|
38 |
<sort_order>1</sort_order>
|
39 |
<action>adminhtml/faq_category</action>
|
40 |
</category>
|
41 |
<question translate="title">
|
42 |
-
<title>
|
43 |
<sort_order>2</sort_order>
|
44 |
<action>adminhtml/faq</action>
|
45 |
</question>
|
46 |
<configuration translate="title">
|
47 |
-
<title>
|
48 |
<sort_order>3</sort_order>
|
49 |
<action>adminhtml/system_config/edit/section/dropfin_faq</action>
|
50 |
</configuration>
|
@@ -52,6 +52,21 @@
|
|
52 |
</dropfin_faq>
|
53 |
</children>
|
54 |
</dropfin>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
</menu>
|
56 |
<acl>
|
57 |
<resources>
|
30 |
<sort_order>70</sort_order>
|
31 |
<children>
|
32 |
<dropfin_faq translate="title">
|
33 |
+
<title>FAQ</title>
|
34 |
<sort_order>50</sort_order>
|
35 |
<children>
|
36 |
<category translate="title">
|
37 |
+
<title>FAQ Category</title>
|
38 |
<sort_order>1</sort_order>
|
39 |
<action>adminhtml/faq_category</action>
|
40 |
</category>
|
41 |
<question translate="title">
|
42 |
+
<title>FAQ Items</title>
|
43 |
<sort_order>2</sort_order>
|
44 |
<action>adminhtml/faq</action>
|
45 |
</question>
|
46 |
<configuration translate="title">
|
47 |
+
<title>FAQ Configurations</title>
|
48 |
<sort_order>3</sort_order>
|
49 |
<action>adminhtml/system_config/edit/section/dropfin_faq</action>
|
50 |
</configuration>
|
52 |
</dropfin_faq>
|
53 |
</children>
|
54 |
</dropfin>
|
55 |
+
<system>
|
56 |
+
<children>
|
57 |
+
<dropfin>
|
58 |
+
<title>Dropfin Extensions</title>
|
59 |
+
<sort_order>10</sort_order>
|
60 |
+
<children>
|
61 |
+
<dropfin_faq>
|
62 |
+
<title>FAQ</title>
|
63 |
+
<action>adminhtml/system_config/edit/section/dropfin_faq</action>
|
64 |
+
<sort_order>50</sort_order>
|
65 |
+
</dropfin_faq>
|
66 |
+
</children>
|
67 |
+
</dropfin>
|
68 |
+
</children>
|
69 |
+
</system>
|
70 |
</menu>
|
71 |
<acl>
|
72 |
<resources>
|
app/code/community/Dropfin/Faq/etc/config.xml
CHANGED
@@ -26,13 +26,13 @@
|
|
26 |
<config>
|
27 |
<modules>
|
28 |
<Dropfin_Faq>
|
29 |
-
<version>1.0.
|
30 |
</Dropfin_Faq>
|
31 |
</modules>
|
32 |
<default>
|
33 |
<dropfin_faq>
|
34 |
<general module="faq">
|
35 |
-
<enable>
|
36 |
<category_option>1</category_option>
|
37 |
</general>
|
38 |
</dropfin_faq>
|
26 |
<config>
|
27 |
<modules>
|
28 |
<Dropfin_Faq>
|
29 |
+
<version>1.0.1</version>
|
30 |
</Dropfin_Faq>
|
31 |
</modules>
|
32 |
<default>
|
33 |
<dropfin_faq>
|
34 |
<general module="faq">
|
35 |
+
<enable>1</enable>
|
36 |
<category_option>1</category_option>
|
37 |
</general>
|
38 |
</dropfin_faq>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Dropfin_Faq</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>FAQ Extension</summary>
|
10 |
-
<description>
|
11 |
-
<notes>FAQ Extension
|
12 |
<authors><author><name>Dropfin</name><user>Dropfin</user><email>t.balamani88@gmail.com</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Dropfin"><dir name="Faq"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="82dfa1e7cdc613e3fe64fa1323e53b05"/><dir name="Tab"><file name="Form.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Dropfin_Faq</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>FAQ Extension</summary>
|
10 |
+
<description>FAQ Extension</description>
|
11 |
+
<notes>FAQ Extension</notes>
|
12 |
<authors><author><name>Dropfin</name><user>Dropfin</user><email>t.balamani88@gmail.com</email></author></authors>
|
13 |
+
<date>2016-02-25</date>
|
14 |
+
<time>04:28:16</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Dropfin"><dir name="Faq"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="82dfa1e7cdc613e3fe64fa1323e53b05"/><dir name="Tab"><file name="Form.php" hash="7d243bbe553c2ca318fb7675a169ef41"/></dir><file name="Tabs.php" hash="dc987991cba2c6fb2a8c0cb405cf3363"/></dir><file name="Edit.php" hash="8955d2b29bcd2ef369d20289e00c3335"/><file name="Grid.php" hash="b98d5be89d2616dff8fd137f35a5173f"/></dir><file name="Category.php" hash="a16b36e14fe426316e4e2f3d14922908"/><dir name="Faq"><dir name="Edit"><file name="Form.php" hash="576d78c091409070707bb230c8dcb5a0"/><dir name="Tab"><file name="Form.php" hash="e76b7546c616843d09f4e24f72f3a428"/></dir><file name="Tabs.php" hash="d136b611e78648fabec556891daf52b9"/></dir><file name="Edit.php" hash="c2e6dc8c4f12d544a5f7e6be6e4f7033"/><file name="Grid.php" hash="6f5696f306fd224ca467dd389d7f07c3"/></dir><file name="Faq.php" hash="ae764d985a8d0b416f27ccb5156ba134"/><dir name="Widget"><dir name="Form"><dir name="Element"><file name="Selectdependence.php" hash="553bbfe3b85dc1ddf260d2af186eead3"/></dir></dir></dir></dir><file name="Faq.php" hash="8dc95ca2bf9fc684eb77899174425192"/></dir><dir name="Helper"><file name="Data.php" hash="34b00de09d5c0b6610d5c77b3bad309a"/></dir><dir name="Model"><file name="Category.php" hash="af9d8f67cf976b5c6281b6c73942f7ab"/><file name="Faq.php" hash="dc531a36e2b1439b1f859ad9578ad510"/><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="56fbfb48413cc0d40efb7403c8ebadd7"/></dir><file name="Category.php" hash="2a5d01a468ba038b39e3b7743b000c35"/><dir name="Faq"><file name="Collection.php" hash="69c5e7936120ab8a22122a7b09d48df2"/></dir><file name="Faq.php" hash="12a8d5021406baa295e4fa12518684fc"/></dir><file name="Status.php" hash="8a5ac5e9be864a5f6f4c6946e7842545"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Faq"><file name="CategoryController.php" hash="70bb8a6677b04e51fd2567cd56cfa8c4"/></dir><file name="FaqController.php" hash="f76faf7854b9b2a7be27a677c5a0db3f"/></dir><file name="IndexController.php" hash="abc7ea63e58d157a5cd374263474ed08"/></dir><dir name="etc"><file name="adminhtml.xml" hash="362bd6f5ac1eb945868e3f18e6bdfda5"/><file name="config.xml" hash="3d5c33bcac8def1a0b4e19653ed5c261"/><file name="system.xml" hash="1555b8970ed19b1afbfa7ff18150ba0c"/></dir><dir name="sql"><dir name="faq_setup"><file name="mysql4-install-1.0.0.php" hash="bbc65c1d4218d917f7eed493e74171de"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="dropfin"><file name="faq.xml" hash="3e31362d71483fbfc8678d1cea35022b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="dropfin"><file name="faq.xml" hash="b1ca90ecdfa384bf992ea6bd45894ee7"/></dir></dir><dir name="template"><dir name="dropfin"><dir name="faq"><file name="list_with_category.phtml" hash="cd3327205583b6cbe57b5537ee1d7dc2"/><file name="list_without_category.phtml" hash="f9db235e8de308041a29eb08cc5dd0a5"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dropfin_Faq.xml" hash="d1a659078773d20f74c57d0a16a97b57"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Dropfin_Faq.csv" hash="138381ec7d1f65c1272fdaaa936c5511"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="dropfin"><dir name="faq"><dir name="css"><file name="jquery-ui.css" hash="b582c67e3dff1f344a32e05fa73a24fc"/><file name="style.css" hash="712427dd61352fe33a1e01290ff3d30d"/></dir><dir name="images"><file name="ui-bg_flat_75_ffffff_40x100.png" hash="985f46b74b703e605966201743fb6f7e"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="177bd763ea7a4ac8fcb1dc94570dd833"/><file name="ui-bg_glass_75_dadada_1x400.png" hash="2d6f73d4cc0d5c0e6bb8b05c2ebc1d11"/><file name="ui-bg_glass_75_e6e6e6_1x400.png" hash="5c579dd5f9969ffdc83a00007271684c"/><file name="ui-icons_454545_256x240.png" hash="aa541bdd3a9d7e85aa84de5342c5712c"/><file name="ui-icons_888888_256x240.png" hash="0979e30214877ac97c47cd1ea71a1058"/></dir><dir name="js"><file name="jquery-1.10.2.js" hash="91515770ce8c55de23b306444d8ea998"/><file name="jquery-ui.js" hash="04a4db2983450a2970c459ba87b4210a"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="dropfin"><dir name="faq"><dir name="css"><file name="style.css" hash="ccb2748a38fd7f678700b5962494648c"/></dir><dir name="images"><file name="category.png" hash="2f394368568512937ad52d88f8826371"/><file name="faq.png" hash="b636fce764228d1a0e7c2011cad48803"/></dir><dir name="js"><file name="category-auto-updater.js" hash="0b2e57745040c4815c044214572d4917"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|