Version Notes
Version number: 1.0.3.7
Stability: Stable
Compatibility: 1.4, 1.5, 1.6, 1.7
Download this release
Release Info
Developer | Magento Core Team |
Extension | CommerceLab_News |
Version | 1.0.3.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.3.6 to 1.0.3.7
app/code/community/CommerceLab/News/Block/Adminhtml/News/Edit/Tab/Info.php
CHANGED
@@ -56,9 +56,9 @@ class CommerceLab_News_Block_Adminhtml_News_Edit_Tab_Info extends Mage_Adminhtml
|
|
56 |
'after_element_html' => '<div class="hint"><p class="note">'.$this->__('e.g. domain.com/news/url_key').'</p></div>',
|
57 |
));
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
if (!Mage::app()->isSingleStoreMode()) {
|
63 |
$fieldset->addField('store_id', 'multiselect', array(
|
64 |
'name' => 'stores[]',
|
@@ -68,12 +68,6 @@ class CommerceLab_News_Block_Adminhtml_News_Edit_Tab_Info extends Mage_Adminhtml
|
|
68 |
'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true),
|
69 |
));
|
70 |
}
|
71 |
-
else {
|
72 |
-
$fieldset->addField('store_id', 'hidden', array(
|
73 |
-
'name' => 'stores[]',
|
74 |
-
'value' => Mage::app()->getStore(true)->getId()
|
75 |
-
));
|
76 |
-
}
|
77 |
|
78 |
$categories = array();
|
79 |
$collection = Mage::getModel('clnews/category')->getCollection()->setOrder('sort_id', 'asc');
|
@@ -284,6 +278,13 @@ class CommerceLab_News_Block_Adminhtml_News_Edit_Tab_Info extends Mage_Adminhtml
|
|
284 |
}
|
285 |
$form->setValues($data->getData());
|
286 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
$this->setForm($form);
|
288 |
return $this;
|
289 |
}
|
56 |
'after_element_html' => '<div class="hint"><p class="note">'.$this->__('e.g. domain.com/news/url_key').'</p></div>',
|
57 |
));
|
58 |
|
59 |
+
/**
|
60 |
+
* Check is single store mode
|
61 |
+
*/
|
62 |
if (!Mage::app()->isSingleStoreMode()) {
|
63 |
$fieldset->addField('store_id', 'multiselect', array(
|
64 |
'name' => 'stores[]',
|
68 |
'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true),
|
69 |
));
|
70 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
$categories = array();
|
73 |
$collection = Mage::getModel('clnews/category')->getCollection()->setOrder('sort_id', 'asc');
|
278 |
}
|
279 |
$form->setValues($data->getData());
|
280 |
}
|
281 |
+
|
282 |
+
if (Mage::app()->isSingleStoreMode()) {
|
283 |
+
$fieldset->addField('store_id', 'hidden', array(
|
284 |
+
'name' => 'stores[]',
|
285 |
+
'value' => Mage::app()->getStore(true)->getId()
|
286 |
+
));
|
287 |
+
}
|
288 |
$this->setForm($form);
|
289 |
return $this;
|
290 |
}
|
app/code/community/CommerceLab/News/Block/News.php
CHANGED
@@ -51,22 +51,25 @@ class CommerceLab_News_Block_News extends CommerceLab_News_Block_Abstract
|
|
51 |
));
|
52 |
}
|
53 |
}
|
54 |
-
// set default meta data
|
55 |
-
$head->setTitle(Mage::getStoreConfig('clnews/news/metatitle'));
|
56 |
-
$head->setKeywords(Mage::getStoreConfig('clnews/news/metakeywords'));
|
57 |
-
$head->setDescription(Mage::getStoreConfig('clnews/news/metadescription'));
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
if
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
}
|
72 |
}
|
51 |
));
|
52 |
}
|
53 |
}
|
|
|
|
|
|
|
|
|
54 |
|
55 |
+
if ($moduleName=='clnews') {
|
56 |
+
// set default meta data
|
57 |
+
$head->setTitle(Mage::getStoreConfig('clnews/news/metatitle'));
|
58 |
+
$head->setKeywords(Mage::getStoreConfig('clnews/news/metakeywords'));
|
59 |
+
$head->setDescription(Mage::getStoreConfig('clnews/news/metadescription'));
|
60 |
+
|
61 |
+
// set category meta data if defined
|
62 |
+
$currentCategory = $this->getCurrentCategory();
|
63 |
+
if ($currentCategory!=null) {
|
64 |
+
if ($currentCategory->getTitle()!='') {
|
65 |
+
$head->setTitle($currentCategory->getTitle());
|
66 |
+
}
|
67 |
+
if ($currentCategory->getMetaKeywords()!='') {
|
68 |
+
$head->setKeywords($currentCategory->getMetaKeywords());
|
69 |
+
}
|
70 |
+
if ($currentCategory->getMetaDescription()!='') {
|
71 |
+
$head->setDescription($currentCategory->getMetaDescription());
|
72 |
+
}
|
73 |
}
|
74 |
}
|
75 |
}
|
app/design/frontend/default/default/layout/clnews.xml
CHANGED
@@ -30,9 +30,6 @@
|
|
30 |
|
31 |
<action method="addCss"><stylesheet>css/commercelab/treeview/jquery.treeview.css</stylesheet></action>
|
32 |
</reference>
|
33 |
-
<reference name="root">
|
34 |
-
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
35 |
-
</reference>
|
36 |
<reference name="right">
|
37 |
<block type="clnews/settings" name="right.clnews.menu" before="-">
|
38 |
<action method="setTemplate" ifconfig="clnews/news/showrightblock">
|
@@ -60,6 +57,9 @@
|
|
60 |
</default>
|
61 |
|
62 |
<clnews_index_index>
|
|
|
|
|
|
|
63 |
<reference name="head">
|
64 |
<action method="addJs"><script>commercelab/clnews/news.js</script></action>
|
65 |
</reference>
|
@@ -69,6 +69,9 @@
|
|
69 |
</clnews_index_index>
|
70 |
|
71 |
<clnews_newsitem_view>
|
|
|
|
|
|
|
72 |
<reference name="head">
|
73 |
<action method="addJs"><script>commercelab/clnews/news.js</script></action>
|
74 |
</reference>
|
30 |
|
31 |
<action method="addCss"><stylesheet>css/commercelab/treeview/jquery.treeview.css</stylesheet></action>
|
32 |
</reference>
|
|
|
|
|
|
|
33 |
<reference name="right">
|
34 |
<block type="clnews/settings" name="right.clnews.menu" before="-">
|
35 |
<action method="setTemplate" ifconfig="clnews/news/showrightblock">
|
57 |
</default>
|
58 |
|
59 |
<clnews_index_index>
|
60 |
+
<reference name="root">
|
61 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
62 |
+
</reference>
|
63 |
<reference name="head">
|
64 |
<action method="addJs"><script>commercelab/clnews/news.js</script></action>
|
65 |
</reference>
|
69 |
</clnews_index_index>
|
70 |
|
71 |
<clnews_newsitem_view>
|
72 |
+
<reference name="root">
|
73 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
74 |
+
</reference>
|
75 |
<reference name="head">
|
76 |
<action method="addJs"><script>commercelab/clnews/news.js</script></action>
|
77 |
</reference>
|
app/etc/modules/CommerceLab_News.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceLab_News>
|
5 |
-
<active>
|
6 |
<codePool>community</codePool>
|
7 |
</CommerceLab_News>
|
8 |
</modules>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceLab_News>
|
5 |
+
<active>false</active>
|
6 |
<codePool>community</codePool>
|
7 |
</CommerceLab_News>
|
8 |
</modules>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CommerceLab_News</name>
|
4 |
-
<version>1.0.3.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -35,13 +35,13 @@
|
|
35 |
<br />
|
36 |
<p><strong>CommerceLab – stay open for the world!</strong></p>
|
37 |
<br /></description>
|
38 |
-
<notes>Version number: 1.0.3.
|
39 |
Stability: Stable
|
40 |
Compatibility: 1.4, 1.5, 1.6, 1.7</notes>
|
41 |
<authors><author><name>CommerceLab</name><user>auto-converted</user><email>support@commerce-lab.com</email></author></authors>
|
42 |
-
<date>2013-05-
|
43 |
-
<time>
|
44 |
-
<contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="CommerceLab"><dir name="News"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="55c764e89bcac5a515537a4a5fab18bf"/></dir><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Action.php" hash="768aa10696beb070c5fc9eec9f0141c2"/><file name="SubCategories.php" hash="cc1eac066648cee1cabe3667625a5662"/></dir></dir></dir><file name="Edit.php" hash="5352d9211733adeb9c1c9b463d229fb4"/><file name="Grid.php" hash="fe20f872e49926e54fa91d9b616eccd2"/></dir><dir name="Comment"><dir name="Edit"><file name="Form.php" hash="8d52c5840c93dc462ab7d07a21d875e4"/></dir><file name="Edit.php" hash="44647da407fffe74595a7787d99addca"/><file name="Grid.php" hash="8ae3a0eb316e5ea705408e04f1d8d227"/></dir><dir name="News"><dir name="Edit"><dir name="Tab"><file name="Additional.php" hash="48b6bca5f84a413a7c2abc188aa7f7d7"/><file name="Info.php" hash="
|
45 |
<compatible/>
|
46 |
<dependencies/>
|
47 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CommerceLab_News</name>
|
4 |
+
<version>1.0.3.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
35 |
<br />
|
36 |
<p><strong>CommerceLab – stay open for the world!</strong></p>
|
37 |
<br /></description>
|
38 |
+
<notes>Version number: 1.0.3.7
|
39 |
Stability: Stable
|
40 |
Compatibility: 1.4, 1.5, 1.6, 1.7</notes>
|
41 |
<authors><author><name>CommerceLab</name><user>auto-converted</user><email>support@commerce-lab.com</email></author></authors>
|
42 |
+
<date>2013-05-22</date>
|
43 |
+
<time>05:43:34</time>
|
44 |
+
<contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="CommerceLab"><dir name="News"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="55c764e89bcac5a515537a4a5fab18bf"/></dir><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Action.php" hash="768aa10696beb070c5fc9eec9f0141c2"/><file name="SubCategories.php" hash="cc1eac066648cee1cabe3667625a5662"/></dir></dir></dir><file name="Edit.php" hash="5352d9211733adeb9c1c9b463d229fb4"/><file name="Grid.php" hash="fe20f872e49926e54fa91d9b616eccd2"/></dir><dir name="Comment"><dir name="Edit"><file name="Form.php" hash="8d52c5840c93dc462ab7d07a21d875e4"/></dir><file name="Edit.php" hash="44647da407fffe74595a7787d99addca"/><file name="Grid.php" hash="8ae3a0eb316e5ea705408e04f1d8d227"/></dir><dir name="News"><dir name="Edit"><dir name="Tab"><file name="Additional.php" hash="48b6bca5f84a413a7c2abc188aa7f7d7"/><file name="Info.php" hash="3d11301e77348f00f3ca9da222319e27"/></dir><file name="Form.php" hash="c137eca6d32e407cc6313b943ec3ef13"/><file name="Tabs.php" hash="2a24e69b73d59b1e6e8b8aca166b27e9"/></dir><file name="Edit.php" hash="ad5e3b0e2911d187b5a489ab826fcea4"/><file name="Grid.php" hash="55ecd86836803996343b7d282c7b6576"/></dir><file name="Category.php" hash="39f20ab1d793ab32a9cc1fcebdd6f9ac"/><file name="Comment.php" hash="1d652f6c740eaa2a1b28edb2cb03cc01"/><file name="News.php" hash="5a4483a050582fc9738582988439fea2"/></dir><file name="Abstract.php" hash="844226d79f778415b1b69b76acbfacbc"/><file name="News.php" hash="4a33d4eebf5e73945981ae7068342cd8"/><file name="Newsitem.php" hash="679a9f6edc314b5f28d23b9489ee9f5f"/><file name="Rss.php" hash="70d3ffe74cbb107893782f5c8f40ab65"/><file name="Settings.php" hash="5572127ed9b5ec94cf447c591ee9c0c7"/></dir><dir name="Controller"><file name="Router.php" hash="b24028480568dbc4b1e4ff4a7902a4ba"/></dir><dir name="Helper"><file name="Data.php" hash="c0c2e68a27af5c159772ce4cbcbdbdf2"/><file name="Versions.php" hash="1a57f869d355cf167f64eb7e9070294b"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="d38fe5d97a94566ea9a764e0a22616c1"/></dir><dir name="Comment"><file name="Collection.php" hash="2c7ce498edac7667c17ecdefb1e01ce3"/></dir><dir name="News"><file name="Collection.php" hash="6476e44afa6eb8b4e75fa937ff5bcb53"/></dir><file name="Category.php" hash="b5d406f334591f2c17148c1a2beb57b2"/><file name="Comment.php" hash="95c98f86dd1a056ad1d81d9f09040d64"/><file name="News.php" hash="43a2482fbb9fd3c38c39c0aeb75d7698"/></dir><dir name="Wysiwyg"><file name="Config.php" hash="6eead5875889bfb7d3d8aabd635a3754"/></dir><file name="Category.php" hash="9452474484a934f4d4ac32bddf7fc534"/><file name="Check.php" hash="1ad77d86702648a3149cce1de6cacb84"/><file name="Comment.php" hash="2dbdccefbe89486e952b0c9ccbc74ad1"/><file name="News.php" hash="78ed288affc44d3d3ec883523af87b77"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CategoryController.php" hash="e278629f36176a788ef9057040154967"/><file name="CommentController.php" hash="7901d7438610aa6d30f5a6f6251824dd"/><file name="NewsController.php" hash="34588119ab53439c3823d9ae7b95f9e3"/></dir><file name="IndexController.php" hash="b6caf5dce8e69ca0bccb4f741676245d"/><file name="NewsitemController.php" hash="64085b5addc8fd71e8ff4a9bfef9e310"/><file name="RssController.php" hash="f829908e5558e2d2b92422a51e54f0a3"/></dir><dir name="etc"><file name="config.xml" hash="ae7c7e41eb57773e839ddee015d0eac8"/><file name="system.xml" hash="690f7380bb14ddde58fad997ae00c4ab"/></dir><dir name="sql"><dir name="clnews_setup"><file name="mysql4-install-1.0.0.php" hash="1ac289b76f5999eb73839252c26185fa"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="3efb7204344043f03de7287073b310a8"/></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="clnews.xml" hash="4833eea8167e52e5c1548cd6d1030d64"/></dir><dir name="template"><dir name="clnews"><file name="latest.phtml" hash="a8d422f6fc17af733668e2c46871bd30"/><file name="list.phtml" hash="993af6a99dc4b1fa9bbb6b5338cda206"/><file name="menu.phtml" hash="e1afcaf9580522f434434faeab5b3066"/><file name="news_print.phtml" hash="75b7c6ecc6c4d3d98072a6848576985c"/><file name="newsitem.phtml" hash="e509973b0e8dea633b16bedb912024d1"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="clnews.xml" hash="f15b74649d6bd46af20a6cc4dd2aade4"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="CommerceLab_News.xml" hash="6c8a75b131acaad9196ae4ef8a822b50"/></dir></dir><dir name="locale"><dir name="en_US"><file name="CommerceLab_News.csv" hash="f92dcba3fad8347c24f8d34cb94d364a"/></dir><dir name="it_IT"><file name="CommerceLab_News.csv" hash="7b5c54cf0c9b33336dc1d4974755285a"/></dir><dir name="de_DE"><file name="CommerceLab_News.csv" hash="6a6df96fc463f5b1f7de4721bbe99cd6"/></dir></dir></dir><dir name="js"><dir name="commercelab"><dir name="treeview"><file name="jquery.treeview.pack.js" hash="d1acfe09a5cb97d93ab167952c550a7d"/></dir><dir name="clnews"><file name="news.js" hash="063c7018b7b4f7895d78a63b5a58448f"/></dir><file name="noconflict.js" hash="22e97cd4bf445c956c7ccee56fa433c2"/><file name="category_tree.js" hash="2369a2d52e678de6f5fc0669492d2fda"/></dir><dir name="jquery"><file name="jquery-1.4.4.js" hash="1e2ef16563c5939f247626c6147045aa"/><file name="jquery-1.7.1-min.js" hash="de56dbfca517764d9d056e82068f8d39"/></dir><dir name="prototype"><dir name="windows"><dir name="themes"><dir name="commercelab"><dir name="magento"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="content_bg.gif" hash="21278ea0da2d4256f4ced96b6080ba2e"/><file name="top_bg.gif" hash="26f28090de87d64f9b01bf624f89bfe2"/><file name="window_close.png" hash="3af14f053f360bf31f8ba2df73ec7f1e"/></dir><file name="magento.css" hash="a0b153cee7655dad31ee2923657cc08a"/></dir></dir></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="clnews"><dir name="images"><file name="i-tags.gif" hash="d8acce70b98a2c5827ba8bd6ee166d6d"/><file name="i_attached.gif" hash="4e277173b6372b1a90b0f19e0388ad54"/><file name="i_print.gif" hash="0aed138181495642e9ab29e55d194d40"/><file name="rss.gif" hash="d17678b5dab15949ed62bea2b602090f"/></dir><file name="style.css" hash="ed7080608764f8efa7bac8e6638112fb"/></dir><dir name="commercelab"><dir name="treeview"><dir name="images"><file name="file.gif" hash="9ab0e28d85d8ab5eb954fc28f6ac1e80"/><file name="folder-closed.gif" hash="262d69b7ca267be1994fca2aba46be32"/><file name="folder.gif" hash="9f41e1454905fd7416f89aa4380a65e1"/><file name="minus.gif" hash="e009322a00011359f76cf7ae59b4d33d"/><file name="plus.gif" hash="6c46b98e0c60e6dc2ef14f9d4a6607b8"/><file name="treeview-black-line.gif" hash="0cdd968bdb2f2852ec71e0264b3292cc"/><file name="treeview-black.gif" hash="a3ffb8abd978b0464f7b5b508fcfdef0"/><file name="treeview-default-line.gif" hash="5e3c0e0c48f48c23c45aef7b72c739c0"/><file name="treeview-default.gif" hash="46878a9b3ede269c4e234550c9c89cd0"/><file name="treeview-famfamfam-line.gif" hash="18b3e43abad26bdac6f4cea944777b62"/><file name="treeview-famfamfam.gif" hash="dc335e786863262f594737e26198009c"/><file name="treeview-gray-line.gif" hash="9c2613b4de53f939bc770983976f66cd"/><file name="treeview-gray.gif" hash="02b42894653cfd82e52aac669ad078ed"/><file name="treeview-red-line.gif" hash="feda280e7bffb057ca4c87491aab6943"/><file name="treeview-red.gif" hash="c94a07253c14c98fe69dffafb59228a5"/></dir><file name="jquery.treeview.css" hash="0f9005d3c08bc3057ed4100a3cf7afdd"/></dir></dir></dir><dir name="images"><dir name="clnews"><file name="ajax-loader.gif" hash="7b9776076d5fceef4993b55c9383dedd"/></dir></dir></dir></dir></dir></dir><dir name="."><file name="EULA.pdf" hash="11b09816c8f293f077309b2abd85da66"/><file name="News 2.2 - User Guide.pdf" hash="18b2690a2a9ca066fdd38b3d309bbb44"/></dir></target></contents>
|
45 |
<compatible/>
|
46 |
<dependencies/>
|
47 |
</package>
|