Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
41e899e
Update core/components/articles/model/articles/articlesrouter.class.php
KHysiek Aug 29, 2012
ef3b722
Update core/components/articles/model/articles/articlesrouter.class.php
KHysiek Aug 29, 2012
2c359f3
Merge branch 'develop' into production
jpdevries Aug 2, 2013
ecc2d4d
Merge branch 'develop' into production
jpdevries Aug 7, 2013
48121d6
Merge branch 'develop' into production
jpdevries Aug 9, 2013
359692e
Merge branch 'develop' into production
jpdevries Sep 7, 2013
05a6821
Merge branch 'develop' into production
jpdevries Sep 7, 2013
a43380b
Manually merging pr15
jpdevries Oct 25, 2013
5f8b414
Adding Container Checkbox to Article Container Update View
jpdevries Oct 27, 2013
05ecf0a
Adding Container Checkbox to ArticleContainer Create View
jpdevries Oct 27, 2013
37b83b2
Tag Bug Fix
jpdevries Oct 29, 2013
2a26456
Update readme.md
dannevang Nov 1, 2013
39170f7
Merge pull request #43 from dannevang/develop
jpdevries Nov 1, 2013
e1212b8
Fix for #44, ArticlesRouter will now set as well as for filters and…
garryn Nov 3, 2013
35b2595
Fix the REQUEST tag variable name
garryn Nov 3, 2013
e65de46
Merge pull request #46 from garryn/issue-44
jpdevries Nov 3, 2013
9a22c12
Change package name from Articles to articles
opengeek Nov 8, 2013
c893d37
Merge pull request #49 from opengeek/package-lowercase
jpdevries Nov 8, 2013
f2e9581
Change package name from Articles to articles
opengeek Nov 8, 2013
00c926c
Bumping version to 1.7.3
jpdevries Nov 8, 2013
952bfc7
Merge branch 'production' into develop
opengeek Dec 5, 2013
8f04a53
Bump version for 1.7.4-dev
opengeek Dec 5, 2013
be6214d
Add support for disabled cache_alias_map
opengeek Dec 5, 2013
ab2ef09
Bumping version to 1.7.4-pl
jpdevries Dec 6, 2013
9bbf9d1
Fix RSS Feeds
jpdevries Dec 8, 2013
54934d3
Bumping version to 1.7.6-dev
jpdevries Dec 8, 2013
00bad35
Update articlescontainer.class.php
Jan 13, 2014
51f5d14
Conditionally load classes in controller - fixes #50
Jan 14, 2014
fcca4ff
Merge pull request #63 from prioritypie/develop
jpdevries Jan 14, 2014
114d747
Remove static html code from code
Jan 16, 2014
2edf452
Update articlescontainer.class.php
Jan 18, 2014
d451110
Fix False Confirm Navigation False Postivies
jpdevries Feb 4, 2014
bdb4091
Merge pull request #64 from pepebe/develop
jpdevries Feb 4, 2014
299c0b7
Merge branch 'develop' of github.com:modxcms/Articles into develop
jpdevries Feb 4, 2014
e80d366
PR # 62 Update articlescontainer.class.php to allow using numbers at …
jpdevries Feb 4, 2014
18fa4ff
update getResources to 1.6.1
jpdevries Feb 4, 2014
3ba67ac
Merge branch 'develop' of github.com:modxcms/Articles into develop
jpdevries Feb 4, 2014
220e828
Add setting for default published status of new article
Mar 27, 2014
ba0a29f
Added 404 page if no resource is found and the default is selected
markwillis82 Apr 7, 2014
9859501
Merge pull request #79 from Adido/develop
jpdevries Apr 7, 2014
2b47eeb
Added 404 to more page alternatives
markwillis82 Apr 7, 2014
b6b1767
Translated missing/changed phrases to German
enigmatic-user Apr 18, 2014
7f63faa
Merge pull request #84 from enigmatic-user/german_translation
jpdevries Apr 18, 2014
fb87b69
Merge pull request #80 from Adido/develop
jpdevries Apr 20, 2014
46df8fe
Update readme.md
jpdevries May 2, 2014
468d107
- #90 Fix Articles in Revolution 2.3
Mark-H Jul 15, 2014
36fdf11
Add contentblocks_replacement class to make Articles compatible with …
Mark-H Jul 15, 2014
b28b108
- #87 Implement compatibility for ContentBlocks (v1.1)
Mark-H Jul 15, 2014
5d67790
Update version in build
Mark-H Jul 15, 2014
9b45f6a
Merge pull request #91 from Mark-H/develop
theboxer Jul 15, 2014
37a621a
Fix processor not found error on Article update
jpdevries Jul 16, 2014
4c9cb4a
Bumping version to 1.7.8
jpdevries Jul 16, 2014
8ab563e
Merge pull request #94 from jpdevries/processor-2.3
theboxer Jul 16, 2014
590f9a1
Fix Articles container > articles grid buttons
exside Aug 5, 2014
63b8873
Fix import window, removed height needs a check in 2.2.x for undesire…
exside Aug 5, 2014
9ff0438
Fix missing close button for special articles tag field
exside Aug 5, 2014
4850b25
Add missing primary-button class to article update actionbar
exside Aug 5, 2014
52c22cf
Updated getlist to be multibyte safe
markwillis82 Sep 9, 2014
b9f2c4c
Updated manager article "update" screen to pre-load the existing MODx…
markwillis82 Sep 9, 2014
dc55614
More 2.3 Fixes
theboxer Oct 7, 2014
95a85e4
Updated getlist to be multibyte safe and article update getButtons ov…
theboxer Oct 7, 2014
cf0127a
Add setting for default published status of new article
theboxer Oct 7, 2014
814fb30
Bump version 1.7.9
theboxer Oct 8, 2014
7a1fd81
Fixes View and Close buttons
jpdevries Nov 28, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions _build/build.transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@
/* define package */
define('PKG_NAME','Articles');
define('PKG_NAME_LOWER',strtolower(PKG_NAME));
define('PKG_VERSION','1.7.2');
define('PKG_VERSION','1.7.9');
define('PKG_RELEASE','pl');

/* define sources */
$root = dirname(dirname(__FILE__)).'/';
$sources = array(
'root' => $root,
'root' => $root,
'build' => $root .'_build/',
'resolvers' => $root . '_build/resolvers/',
Expand Down Expand Up @@ -234,4 +233,4 @@

$modx->log(modX::LOG_LEVEL_INFO,"\n<br />Package Built.<br />\nExecution time: {$totalTime}\n");

exit ();
exit ();
2 changes: 1 addition & 1 deletion _build/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
,"lowCaseName": "articles"
,"description": ""
,"author": "Shaun McCormick"
,"version": "1.7.2"
,"version": "1.7.9"
,"package":{
"elements": {
"plugins": [{
Expand Down
2 changes: 1 addition & 1 deletion _build/data/transport.subpackages.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$subpackages = array(
'archivist' => 'archivist-1.2.4-pl',
'getpage' => 'getpage-1.2.3-pl',
'getresources' => 'getresources-1.6.0-pl',
'getresources' => 'getresources-1.6.1-pl',
'quip' => 'quip-2.3.3-pl',
'taglister' => 'taglister-1.1.7-pl',
);
Expand Down
2 changes: 1 addition & 1 deletion _build/resolvers/packages/resolve.getresources.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
$success= true;
if ($transport && $transport->xpdo) {
$signature = 'getresources-1.6.0-pl';
$signature = 'getresources-1.6.1-pl';
$modx =& $transport->xpdo;
$modx->addPackage('modx.transport',$modx->getOption('core_path').'model/');

Expand Down
Binary file not shown.
Binary file not shown.
13 changes: 2 additions & 11 deletions assets/components/articles/js/article/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Ext.extend(Articles.panel.Article,MODx.panel.Resource,{
,height: 400
,grow: false
,value: (config.record.content || config.record.ta) || ''
,itemCls: 'contentblocks_replacement'
},{
id: 'modx-content-below'
,border: false
Expand Down Expand Up @@ -195,11 +196,6 @@ Ext.extend(Articles.panel.Article,MODx.panel.Resource,{
,hiddenName: 'createdby'
,id: 'modx-resource-createdby'
,allowBlank: true
,baseParams: {
action: 'getList'
,combo: '1'
,limit: 0
}
,width: 300
,value: config.record.createdby || MODx.user.id
},{
Expand Down Expand Up @@ -229,11 +225,6 @@ Ext.extend(Articles.panel.Article,MODx.panel.Resource,{
,id: 'modx-resource-template'
,anchor: '100%'
,editable: false
,baseParams: {
action: 'getList'
,combo: '1'
,limit: '0'
}
},{
xtype: 'textfield'
,fieldLabel: _('articles.article_alias')
Expand Down Expand Up @@ -340,4 +331,4 @@ Ext.extend(Articles.panel.Article,MODx.panel.Resource,{
Ext.apply(o.form.baseParams,d);
}
});
Ext.reg('modx-panel-article',Articles.panel.Article);
Ext.reg('modx-panel-article',Articles.panel.Article);
118 changes: 66 additions & 52 deletions assets/components/articles/js/article/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@ Articles.page.UpdateArticle = function(config) {
Articles.page.UpdateArticle.superclass.constructor.call(this,config);
};
Ext.extend(Articles.page.UpdateArticle,MODx.page.UpdateResource,{

getButtons: function(cfg) {
doesButtonExist: function(btnArray, lexiconKey) {
var exists = false;
btnArray.map(function(item) {
if(lexiconKey == item.text) exists = true;
});
return exists;
}
,getButtons: function(cfg) {
var btns = [];
if (cfg.canSave == 1) {
if (cfg.canSave == 1 && !this.doesButtonExist(btns, _('save'))) {
btns.push({
process: 'update'
process: (MODx.config.connector_url) ? 'resource/update' : 'update'
,text: _('save')
,cls: 'primary-button'
,method: 'remote'
,checkDirty: cfg.richtext || MODx.request.activeSave == 1 ? false : true
,keys: [{
Expand All @@ -25,53 +32,69 @@ Ext.extend(Articles.page.UpdateArticle,MODx.page.UpdateResource,{
}]
});
btns.push('-');
} else if (cfg.locked) {
} else if (cfg.locked && !this.doesButtonExist(btns, _('locked'))) {
btns.push({
text: cfg.lockedText || _('locked')
,handler: Ext.emptyFn
,disabled: true
});
btns.push('-');
}
btns.push({
text: _('articles.article_publish')
,id: 'modx-article-publish'
,hidden: cfg.record.published ? true : false
,handler: this.publishArticle
});
btns.push({
text: _('articles.article_unpublish')
,id: 'modx-article-unpublish'
,hidden: cfg.record.published ? false : true
,handler: this.unpublishArticle
});
btns.push('-');
btns.push({
process: 'preview'
,text: _('view')
,handler: this.preview
,scope: this
});
btns.push('-');
btns.push({
process: 'cancel'
,text: _('cancel')
,handler: this.cancel
,scope: this
});
btns.push('-');
btns.push({
text: _('help_ex')
,handler: MODx.loadHelpPane
});
return btns;
if(cfg.publish_document && !this.doesButtonExist(btns, _('articles.article_publish'))) {
btns.push({
text: _('articles.article_publish')
,id: 'modx-article-publish'
,hidden: cfg.record.published ? true : false
,handler: this.publishArticle
});
btns.push({
text: _('articles.article_unpublish')
,id: 'modx-article-unpublish'
,hidden: cfg.record.published ? false : true
,handler: this.unpublishArticle
});
btns.push('-');
}
if(!this.doesButtonExist(btns, _('view'))) {
btns.push({
process: 'preview'
,text: _('view')
,handler: this.preview
,scope: this
});
btns.push('-');
}
if(!this.doesButtonExist(btns, _('cancel'))) {
btns.push({
process: 'cancel'
,text: _('cancel')
,handler: this.cancel
,scope: this
});
btns.push('-');
}
if(!this.doesButtonExist(btns, _('help_ex'))) {
btns.push({
text: _('help_ex')
,handler: MODx.loadHelpPane
});
}

// remove duplicate spacings
for(var i=0; i<=(btns.length - 1); i++) {
var item = btns[i];
if(item != '-') continue;
if(btns[i+1] == '-' || (btns[i+1] && btns[i+1].hidden == true)) btns.splice(i,1);
}

return btns;
}

,publishArticle: function(btn,e) {
MODx.Ajax.request({
url: MODx.config.connectors_url+'resource/index.php'
url: (MODx.config.connector_url) ? MODx.config.connector_url : MODx.config.connectors_url+'resource/index.php'
,params: {
action: 'publish'
action: (MODx.config.connector_url) ? 'resource/publish' : 'publish'
,id: MODx.request.id
}
,listeners: {
Expand Down Expand Up @@ -99,9 +122,9 @@ Ext.extend(Articles.page.UpdateArticle,MODx.page.UpdateResource,{

,unpublishArticle: function(btn,e) {
MODx.Ajax.request({
url: MODx.config.connectors_url+'resource/index.php'
url: (MODx.config.connector_url) ? MODx.config.connector_url : MODx.config.connectors_url+'resource/index.php'
,params: {
action: 'unpublish'
action: (MODx.config.connector_url) ? 'resource/unpublish' : 'unpublish'
,id: MODx.request.id
}
,listeners: {
Expand Down Expand Up @@ -305,6 +328,7 @@ Ext.extend(Articles.panel.Article,MODx.panel.Resource,{
,height: 400
,grow: false
,value: (config.record.content || config.record.ta) || ''
,itemCls: 'contentblocks_replacement'
},{
id: 'modx-content-below'
,border: false
Expand Down Expand Up @@ -371,11 +395,6 @@ Ext.extend(Articles.panel.Article,MODx.panel.Resource,{
,hiddenName: 'createdby'
,id: 'modx-resource-createdby'
,allowBlank: true
,baseParams: {
action: 'getList'
,combo: '1'
,limit: 0
}
,width: 300
,value: config.record.createdby
},{
Expand Down Expand Up @@ -405,11 +424,6 @@ Ext.extend(Articles.panel.Article,MODx.panel.Resource,{
,id: 'modx-resource-template'
,anchor: '100%'
,editable: false
,baseParams: {
action: 'getList'
,combo: '1'
,limit: '0'
}
},{
xtype: 'textfield'
,fieldLabel: _('articles.article_alias')
Expand Down Expand Up @@ -539,4 +553,4 @@ Ext.extend(Articles.panel.Article,MODx.panel.Resource,{
}
}
});
Ext.reg('modx-panel-article',Articles.panel.Article);
Ext.reg('modx-panel-article',Articles.panel.Article);
24 changes: 13 additions & 11 deletions assets/components/articles/js/container/articles.import.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Articles.window.ArticlesImport = function(config) {
Ext.applyIf(config,{
title: _('articles.articles_import')
,id: this.ident
,height: 150
,width: '75%'
,minWidth: 650
// ,height: 150
// ,width: '75%'
,width: 600
,url: Articles.connector_url
,action: 'container/import'
,fileUpload: true
Expand Down Expand Up @@ -81,12 +81,13 @@ Articles.panel.ImportOptionsWordPress = function(config) {
msgTarget: 'under'
}
,items: [{
xtype: 'textfield'
,inputType: 'file'
xtype: (MODx.config.connector_url) ? 'fileuploadfield' : 'textfield' // check for 2.3
,buttonText: _('upload.buttons.upload')
,name: 'wp-file'
,fieldLabel: _('articles.import_wp_file')
,inputType: (MODx.config.connector_url) ? 'text' : 'file' // check for 2.3
,id: this.ident+'-wp-file'
,anchor: '98%'
,anchor: (MODx.config.connector_url) ? '100%' : '98%' // check for 2.3
},{
xtype: MODx.expandHelp ? 'label' : 'hidden'
,forId: this.ident+'-wp-file'
Expand All @@ -98,7 +99,7 @@ Articles.panel.ImportOptionsWordPress = function(config) {
,fieldLabel: _('articles.import_wp_file_server')
,description: MODx.expandHelp ? '' : _('articles.import_wp_file_server')
,id: this.ident+'-wp-file-server'
,anchor: '98%'
,anchor: (MODx.config.connector_url) ? '100%' : '98%' // check for 2.3
,value: '{core_path}import/'
},{
xtype: MODx.expandHelp ? 'label' : 'hidden'
Expand Down Expand Up @@ -264,12 +265,13 @@ Articles.panel.ImportOptionsBlogger = function(config) {
msgTarget: 'under'
}
,items: [{
xtype: 'textfield'
,inputType: 'file'
xtype: (MODx.config.connector_url) ? 'fileuploadfield' : 'textfield' // check for 2.3
,buttonText: _('upload.buttons.upload')
,name: 'blogger-file'
,fieldLabel: _('articles.import_blogger_file')
,inputType: (MODx.config.connector_url) ? 'text' : 'file' // check for 2.3
,id: this.ident+'-blogger-file'
,anchor: '98%'
,anchor: (MODx.config.connector_url) ? '100%' : '98%' // check for 2.3
},{
xtype: MODx.expandHelp ? 'label' : 'hidden'
,forId: this.ident+'-blogger-file'
Expand All @@ -281,7 +283,7 @@ Articles.panel.ImportOptionsBlogger = function(config) {
,fieldLabel: _('articles.import_blogger_file_server')
,description: MODx.expandHelp ? '' : _('articles.import_blogger_file_server')
,id: this.ident+'-blogger-file-server'
,anchor: '98%'
,anchor: (MODx.config.connector_url) ? '100%' : '98%' // check for 2.3
,value: '{core_path}import/'
},{
xtype: MODx.expandHelp ? 'label' : 'hidden'
Expand Down
Loading