Skip to content

Commit 22470de

Browse files
authored
Merge pull request #54 from HermanPeeren/main
some small improvements from various issues
2 parents e27ab59 + 05489a5 commit 22470de

File tree

18 files changed

+50
-92
lines changed

18 files changed

+50
-92
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<access component="com_ccm">
3-
    <section name="component">
4-
        <action name="core.admin" title="JACTION_ADMIN" />
5-
        <action name="core.options" title="JACTION_OPTIONS" />
6-
        <action name="core.manage" title="JACTION_MANAGE" />
7-
        <action name="core.create" title="JACTION_CREATE" />
8-
        <action name="core.delete" title="JACTION_DELETE" />
9-
        <action name="core.edit" title="JACTION_EDIT" />
10-
    </section>
3+
<section name="component">
4+
<action name="core.admin" title="JACTION_ADMIN" />
5+
<action name="core.options" title="JACTION_OPTIONS" />
6+
<action name="core.manage" title="JACTION_MANAGE" />
7+
<action name="core.create" title="JACTION_CREATE" />
8+
<action name="core.delete" title="JACTION_DELETE" />
9+
<action name="core.edit" title="JACTION_EDIT" />
10+
</section>
1111
</access>

src/administrator/components/com_ccm/ccm.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension type="component" method="upgrade">
3-
<name>COM_CCM</name>
3+
<name>com_ccm</name>
44
<creationDate>2025-05-14</creationDate>
55
<author>Joomla! Project</author>
66
<authorEmail>[email protected]</authorEmail>
77
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
8-
<version>1.0.1</version>
8+
<version>0.10.0</version>
99
<description>COM_CCM_DESCRIPTION</description>
1010
<namespace path="src">Joomla\Component\CCM</namespace>
1111
<install>
@@ -42,7 +42,7 @@
4242
<language tag="en-GB">language/en-GB/com_ccm.sys.ini</language>
4343
<language tag="en-GB">language/en-GB/com_ccm.ini</language>
4444
</languages>
45-
<menu link="option=com_ccm&amp;view=cmss" img="class:default">COM_CCM_MENU_BACKEND</menu>
45+
<menu link="option=com_ccm" img="class:default">COM_CCM_MENU_BACKEND</menu>
4646
<submenu>
4747
<menu link="option=com_ccm&amp;view=cmss" img="class:default">COM_CCM_SUBMENU_CMS</menu>
4848
<menu link="option=com_ccm&amp;view=migration" img="class:default">COM_CCM_SUBMENU_MIGRATION</menu>
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<config addfieldprefix="Joomla\Component\CCM\Administrator\Field">
3-
<help key="CCM"/>
3+
<inlinehelp button="show"/>
44
<fieldset name="ccm" label="COM_CCM_OPTIONS">
5-
<field
6-
type="text"
7-
label="COM_CCM_CONFIG_CMS_NAME_LABEL"
8-
description="COM_CCM_CONFIG_CMS_NAME_DESCRIPTION"
9-
/>
5+
106
</fieldset>
11-
</config>
7+
</config>
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
COM_CCM="CMS Migration"
1+
COM_CCM="CMS Content Migration"
22
COM_CCM_APPLY_MIGRATION_BTN="Apply Migration"
33
COM_CCM_CMS_ID="CMS ID"
44
COM_CCM_CMS_NAME="CMS Name"
55
COM_CCM_CMS_NAME_ADD="Add new CMS"
66
COM_CCM_CMS_NAME_EDIT="Edit CMS"
77
COM_CCM_CMS_NAME_LIST="CMS Names List"
8+
COM_CCM_CMSS_TABLE_CAPTION="Content Management Systems"
89
COM_CCM_CONFIG_CCM_MAPPED_FIELDS_LABEL="CCM Mapped Fields"
910
COM_CCM_CONFIG_CCM_MAPPING_LABEL="CCM Mapping"
1011
COM_CCM_CONFIG_CCM_UNMAPPED_FIELDS_LABEL="CCM Unmapped Fields"
@@ -16,14 +17,11 @@ COM_CCM_CONFIG_MIGRATION_LABEL="Select CMS you want to migrate with"
1617
COM_CCM_CONFIG_NAME_LABEL="CMS Name"
1718
COM_CCM_CONFIG_URL_LABEL="CMS URL"
1819
COM_CCM_CONFIGURATION="CCM Migration Configuration"
19-
COM_CCM_DESCRIPTION="CONTENT MIGRATION COMPONENT"
20+
COM_CCM_DESCRIPTION="CMS Content Migration . Migrating content via the web services API from a source CMS to a target CMS."
2021
COM_CCM_FILTER_SEARCH="Search"
21-
COM_CCM_MENU_BACKEND="CMSs"
2222
COM_CCM_MIGRATION_FIELDSET_LABEL="Migration Settings"
2323
COM_CCM_MIGRATION_SOURCE_CMS="Source CMS"
2424
COM_CCM_MIGRATION_TARGET_CMS="Target CMS"
2525
COM_CCM_OPTIONS="Options"
26-
COM_CCM_SUBMENU_CMS="CMS Management"
27-
COM_CCM_SUBMENU_MIGRATION="Migration"
2826
COM_CCM_TITLE_CMS="Content Management Systems"
29-
COM_CCM_TITLE_MIGRATION="Content Migration"
27+
COM_CCM_TITLE_MIGRATION="Content Migration"
Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
1-
COM_CCM="CMS Migration"
2-
COM_CCM_APPLY_MIGRATION_BTN="Apply Migration"
3-
COM_CCM_CMS_ID="CMS ID"
4-
COM_CCM_CMS_NAME="CMS Name"
5-
COM_CCM_CMS_NAME_ADD="Add new CMS"
6-
COM_CCM_CMS_NAME_EDIT="Edit CMS"
7-
COM_CCM_CMS_NAME_LIST="CMS Names List"
8-
COM_CCM_CONFIG_CCM_MAPPED_FIELDS_LABEL="CCM Mapped Fields"
9-
COM_CCM_CONFIG_CCM_MAPPING_LABEL="CCM Mapping"
10-
COM_CCM_CONFIG_CCM_UNMAPPED_FIELDS_LABEL="CCM Unmapped Fields"
11-
COM_CCM_CONFIG_CMS_NAME_DESCRIPTION="The name of the CMS to migrate from."
12-
COM_CCM_CONFIG_CREDENTIALS_LABEL="Credentials"
13-
COM_CCM_CONFIG_ID_LABEL="CMS ID"
14-
COM_CCM_CONFIG_MIGRATION_LABEL="Select CMS you want to migrate with"
15-
COM_CCM_CONFIG_NAME_LABEL="CMS Name"
16-
COM_CCM_CONFIG_URL_LABEL="CMS URL"
17-
COM_CCM_CONFIGURATION="CCM Migration Configuration"
18-
COM_CCM_DESCRIPTION="CONTENT MIGRATION COMPONENT"
19-
COM_CCM_FILTER_SEARCH="Search"
20-
COM_CCM_MENU_BACKEND="CMSs"
21-
COM_CCM_MIGRATION_FIELDSET_LABEL="Migration Settings"
22-
COM_CCM_MIGRATION_SOURCE_CMS="Source CMS"
23-
COM_CCM_MIGRATION_TARGET_CMS="Target CMS"
24-
COM_CCM_OPTIONS="Options"
1+
COM_CCM="CMS Content Migration"
2+
COM_CCM_DESCRIPTION="CMS Content Migration . Migrating content via the web services API from a source CMS to a target CMS."
3+
COM_CCM_MENU_BACKEND="CMS Content Migration"
254
COM_CCM_SUBMENU_CMS="CMS Management"
265
COM_CCM_SUBMENU_MIGRATION="Migration"
27-
COM_CCM_TITLE_CMS="Content Management Systems"
28-
COM_CCM_TITLE_MIGRATION="Content Migration"

src/administrator/components/com_ccm/src/Controller/CmsController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// phpcs:enable PSR1.Files.SideEffects
1515

1616
use Joomla\CMS\MVC\Controller\FormController;
17+
use Joomla\Component\CCM\Administrator\Model\CmsModel;
18+
1719
class CmsController extends FormController
1820
{
1921
protected function getRedirectToListAppend()
@@ -38,6 +40,8 @@ public function migrate()
3840
* @param string $urlVar The name of the URL variable if different from the primary key.
3941
*
4042
* @return void
43+
*
44+
* @since 1.0.0
4145
*/
4246
public function save($key = null, $urlVar = null)
4347
{

src/administrator/components/com_ccm/src/Controller/CmssController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* CmssController class.
2020
*
21-
* @since __DEV__
21+
* @since 1.0.0
2222
*/
2323
class CmssController extends ListController
2424
{

src/administrator/components/com_ccm/src/Controller/DisplayController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DisplayController extends BaseController
2222
* The default view.
2323
*
2424
* @var string
25-
* @since __DEV__
25+
* @since 1.0.0
2626
*/
2727
protected $default_view = 'Cmss';
2828

@@ -34,7 +34,7 @@ class DisplayController extends BaseController
3434
*
3535
* @return static This object to support chaining.
3636
*
37-
* @since __DEV__
37+
* @since 1.0.0
3838
*/
3939
public function display($cachable = false, $urlparams = [])
4040
{

src/administrator/components/com_ccm/src/Extension/CCMComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function boot(ContainerInterface $container) {
2929
*
3030
* @return array
3131
*
32-
* @since __DEV__
32+
* @since 1.0.0
3333
*/
3434
public function getContexts(): array
3535
{

src/administrator/components/com_ccm/src/Fields/CcmField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// what if data is null (e.g. image), then I can't get its type
2121

2222
class CcmField extends ListField {
23-
// define a custom form field
23+
2424
// the name of the type for our new field
2525
protected $type = 'ccm';
2626

0 commit comments

Comments
 (0)