- Posts: 11
- Thank you received: 0
Need more front page explanation
- 
        wdesign
 Inactive member
- 
            
				 Topic Author Topic Author
- New Member
- 
              
        Less
        More
        
            
    
        
            
        
                11 years 9 months ago                #36161
        by wdesign
    
    
            
            
            
            
            
                                
    
                                                
    
        Need more front page explanation was created by wdesign            
    
        I am using the Kindergarten theme as a sub theme on a school web site. 
    www.sjschool.org
 It is used for the Early Childhood (ECLC) portion of the site. I would like the main link for the ECLC to use the kindergarten home page theme and the other pages the normal page theme.
I read through an earlier thread on this and tried the suggested change to the code but it didn't work for me.
I would like more explanation on how the text is applied to the home page also.
Lance
I read through an earlier thread on this and tried the suggested change to the code but it didn't work for me.
I would like more explanation on how the text is applied to the home page also.
Lance
Please Log in to join the conversation.
- 
        ivan.milic
 Support Staff
- 
            
				  
- Moderator
- 
              
        Less
        More
        
            
    
        - Posts: 14116
- Thank you received: 1639
            
        
                11 years 9 months ago                #36175
        by ivan.milic
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Need more front page explanation            
    
        Code you found probably contains come page IDs , which are different form site to site and you need to put ones form your site. Post link to that post so I can see.    
Please Log in to join the conversation.
- 
        wdesign
 Inactive member
- 
            
				 Topic Author Topic Author
- New Member
- 
              
        Less
        More
        
            
    
        - Posts: 11
- Thank you received: 0
            
        
                11 years 9 months ago                #36180
        by wdesign
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by wdesign on topic Need more front page explanation            
    
Please Log in to join the conversation.
- 
        ivan.milic
 Support Staff
- 
            
				  
- Moderator
- 
              
        Less
        More
        
            
    
        - Posts: 14116
- Thank you received: 1639
            
        
                11 years 9 months ago                #36181
        by ivan.milic
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Need more front page explanation            
    
        So for this change:
with and if/else:
9999 should be replaced with ID of menu item that is intended for kindergarten home page. ID is last column in menu items list view.
Code:
<body<?php if ($menu->getActive() == $menu->getDefault()) { echo ' class="sparky_home"'; }else{ echo ' class="sparky_inner"'; } ?>>
with and if/else:
Code:
	$currentMenuId = JSite::getMenu()->getActive()->id ;
	if ($currentMenuId==9999) { 
		echo '<body class="sparky_home">'; 
		}else{ 
		echo '<body class="sparky_inner">'; 
		}
9999 should be replaced with ID of menu item that is intended for kindergarten home page. ID is last column in menu items list view.
Please Log in to join the conversation.
- 
        wdesign
 Inactive member
- 
            
				 Topic Author Topic Author
- New Member
- 
              
        Less
        More
        
            
    
        - Posts: 11
- Thank you received: 0
            
        
                11 years 9 months ago                #36182
        by wdesign
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by wdesign on topic Need more front page explanation            
    
        Can you tell me also where the text on the home page comes from?    
Please Log in to join the conversation.
- 
        ivan.milic
 Support Staff
- 
            
				  
- Moderator
- 
              
        Less
        More
        
            
    
        - Posts: 14116
- Thank you received: 1639
            
        
                11 years 9 months ago                #36184
        by ivan.milic
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Need more front page explanation            
    
        That page is of type Featured articles. So it shows featured articles.    
Please Log in to join the conversation.
        Time to create page: 0.114 seconds    
    