diff --git a/src/app/community-page/community-page-routing.module.ts b/src/app/community-page/community-page-routing.module.ts
index c37f8832f8..a2d727218e 100644
--- a/src/app/community-page/community-page-routing.module.ts
+++ b/src/app/community-page/community-page-routing.module.ts
@@ -15,6 +15,7 @@ import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model';
import { ThemedCommunityPageComponent } from './themed-community-page.component';
import { MenuItemType } from '../shared/menu/menu-item-type.model';
import { DSOEditMenuResolver } from '../shared/dso-page/dso-edit-menu.resolver';
+import { SubComColSectionComponent } from './sections/sub-com-col-section/sub-com-col-section.component';
@NgModule({
imports: [
@@ -46,9 +47,15 @@ import { DSOEditMenuResolver } from '../shared/dso-page/dso-edit-menu.resolver';
canActivate: [AuthenticatedGuard],
},
{
- path: '',
+ path: '**',
component: ThemedCommunityPageComponent,
pathMatch: 'full',
+ children: [
+ {
+ path: '',
+ component: SubComColSectionComponent,
+ },
+ ],
}
],
data: {
diff --git a/src/app/community-page/community-page.module.ts b/src/app/community-page/community-page.module.ts
index 499e9092e3..61c17de8fa 100644
--- a/src/app/community-page/community-page.module.ts
+++ b/src/app/community-page/community-page.module.ts
@@ -20,6 +20,7 @@ import {
ThemedCollectionPageSubCollectionListComponent
} from './sections/sub-com-col-section/sub-collection-list/themed-community-page-sub-collection-list.component';
import { DsoPageModule } from '../shared/dso-page/dso-page.module';
+import { SubComColSectionComponent } from './sections/sub-com-col-section/sub-com-col-section.component';
const DECLARATIONS = [CommunityPageComponent,
ThemedCommunityPageComponent,
@@ -28,7 +29,9 @@ const DECLARATIONS = [CommunityPageComponent,
ThemedCollectionPageSubCollectionListComponent,
CommunityPageSubCommunityListComponent,
CreateCommunityPageComponent,
- DeleteCommunityPageComponent];
+ DeleteCommunityPageComponent,
+ SubComColSectionComponent,
+];
@NgModule({
imports: [
diff --git a/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.html b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.html
new file mode 100644
index 0000000000..515e08ffdf
--- /dev/null
+++ b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.html
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.scss b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.scss
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.spec.ts b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.spec.ts
new file mode 100644
index 0000000000..804299d3d9
--- /dev/null
+++ b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.spec.ts
@@ -0,0 +1,32 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { SubComColSectionComponent } from './sub-com-col-section.component';
+import { ActivatedRoute } from '@angular/router';
+import { ActivatedRouteStub } from '../../../shared/testing/active-router.stub';
+
+describe('SubComColSectionComponent', () => {
+ let component: SubComColSectionComponent;
+ let fixture: ComponentFixture;
+
+ let activatedRoute: ActivatedRouteStub;
+
+ beforeEach(async () => {
+ activatedRoute = new ActivatedRouteStub();
+
+ await TestBed.configureTestingModule({
+ declarations: [
+ SubComColSectionComponent,
+ ],
+ providers: [
+ { provide: ActivatedRoute, useValue: activatedRoute },
+ ],
+ }).compileComponents();
+
+ fixture = TestBed.createComponent(SubComColSectionComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.ts b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.ts
new file mode 100644
index 0000000000..ff30e51607
--- /dev/null
+++ b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.ts
@@ -0,0 +1,28 @@
+import { Component, OnInit } from '@angular/core';
+import { Observable } from 'rxjs';
+import { RemoteData } from '../../../core/data/remote-data';
+import { Community } from '../../../core/shared/community.model';
+import { ActivatedRoute, Data } from '@angular/router';
+import { map } from 'rxjs/operators';
+
+@Component({
+ selector: 'ds-sub-com-col-section',
+ templateUrl: './sub-com-col-section.component.html',
+ styleUrls: ['./sub-com-col-section.component.scss'],
+})
+export class SubComColSectionComponent implements OnInit {
+
+ community$: Observable;
+
+ constructor(
+ private route: ActivatedRoute,
+ ) {
+ }
+
+ ngOnInit(): void {
+ this.community$ = this.route.data.pipe(
+ map((data: Data) => (data.dso as RemoteData).payload),
+ );
+ }
+
+}