add footer and header placeholders
This commit is contained in:
		
					parent
					
						
							
								bc36849178
							
						
					
				
			
			
				commit
				
					
						e7d7cf67b2
					
				
			
		
					 6 changed files with 90 additions and 61 deletions
				
			
		| 
						 | 
				
			
			@ -9,11 +9,17 @@ from cms.models.fields import PlaceholderField
 | 
			
		|||
class CMSIntegration(models.Model):
 | 
			
		||||
    name = models.CharField(
 | 
			
		||||
        max_length=100, unique=True, default='default',
 | 
			
		||||
        help_text='An optional heading for the Section',
 | 
			
		||||
        help_text=(
 | 
			
		||||
            'A unique name for the Integration. This name will be used to '
 | 
			
		||||
            'fetch the Integration into pages'
 | 
			
		||||
        )
 | 
			
		||||
    )
 | 
			
		||||
    footer_placeholder = PlaceholderField('datacenterlight_footer')
 | 
			
		||||
    navbar_placeholder = PlaceholderField('datacenterlight_navbar')
 | 
			
		||||
 | 
			
		||||
    def __str__(self):
 | 
			
		||||
        return self.name
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Models for CMS Plugins
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue