Project

General

Profile

« Previous | Next » 

Revision 52452

Add new Content Page, add property in order to add or not the link in bottom menu

View differences:

app.component.ts
36 36
              </span></a>
37 37
          </cookie-law>
38 38
           <bottom *ngIf= "isClient && showMenu && !community" [menuItems]=bottomMenuItems></bottom>
39
           <bottom *ngIf= "isClient && community" [showSocialButton] = "false" [showMenu]=false [showDnet] =false showOpenaire=true [(communityId)]="community.id" [(APIUrl)]="properties.adminToolsAPIURL" ></bottom>
39
           <bottom *ngIf= "isClient && community" [showSocialButton] = "false" [showMenu]=true [showDnet] =false showOpenaire=true [(communityId)]="community.id" [(APIUrl)]="properties.adminToolsAPIURL" [menuItems]=bottomMenuItems ></bottom>
40 40

  
41 41
`
42 42

  
......
116 116
                  new MenuItem("","Blog","https://blogs.openaire.eu/","",false,[],[],{}),
117 117
                  new MenuItem("","Contact us","https://beta.openaire.eu/contact-us","",false,[],[],{})
118 118
                ];
119
                if(this.properties.showContent){
120
                  this.bottomMenuItems.push(new MenuItem("","Content Policy","","/content",false,[],[],{}));
121
                }
119 122

  
120 123
              }else{
121
                this.bottomMenuItems = []
124
                this.bottomMenuItems = [
125
                  new MenuItem("","About","","/about",false,[],["/about"],(typeof document !== 'undefined' && ConnectHelper.isProduction(document.location.hostname))?{}:{communityId:community.communityId}),
126
                  new MenuItem("","Organizations","","/organizations",false,[],["/organizations"],(typeof document !== 'undefined' && ConnectHelper.isProduction(document.location.hostname))?{}:{communityId:community.communityId})               
127
                ];
128
                if(this.properties.showContent){
129
                  this.bottomMenuItems.push(new MenuItem("","Content Policy","","/content",false,[],[],{}));
130
                }
122 131
              }
123 132
                this.showMenu = true;
124 133

  

Also available in: Unified diff