Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Single Article non shown

  • Pavlos Papadopoulos
  • Pavlos Papadopoulos's Avatar Topic Author
  • Offline
  • New Member
More
10 years 11 months ago - 10 years 11 months ago #137282 by Pavlos Papadopoulos
Single Article non shown was created by Pavlos Papadopoulos
Hello

In www.art-natassa.gr/an2 I have created an Article called "CV" and a main menu item called CV, too, which is my default page.

The problem I face is that selecting CV menu item I take all the modules linked to that, but not the article

Do you have an idea about that?

(backend login: admin / 123456789)

Thnx in advance. Pavlos...

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago - 10 years 11 months ago #137283 by Yiota
Replied by Yiota on topic Single Article non shown
In this template we have chosen not to show the component in the homepage, only modules. To show the component in your homepage you will have to make some modifications in your index.php of the nuArt template.

Just replace the following code block
<div id="mainContentArea" class="<?php if($this->countModules('nuArt_right') && ($isFrontpage || $view=='item' || $view=='article' ||$option=='com_weblinks')) echo 'twoCols'; else echo 'allWidth'; ?>">
  				<?php if ($isFrontpage): ?>
  					<?php if($this->countModules('nuArt_content') || file_exists(JPATH_SITE.DS."templates".DS.$this->template.DS."includes".DS."highlights.php")): ?>
  					<div id="contentMods">
  						<?php if($this->countModules('nuArt_content')): ?>
  						<div class="contentModsTop">
  							<jdoc:include type="modules" name="nuArt_content" style="nu" />
  							<div class="clr"></div>
  						</div>
  						<?php endif; ?>
  
  						<div class="contentModsBtm">
  							<?php include_once(JPATH_SITE.DS."templates".DS.$this->template.DS."includes".DS."highlights.php"); ?>
  						</div>
  					</div>
  					<?php endif; ?>
  					
  				<?php else: ?>
  				  
  				  <?php if($this->countModules('nuArt_content')): ?> 
  				  <div class="contentModsTop">             
              <jdoc:include type="modules" name="nuArt_content" style="nu" />
              <div class="clr"></div>   
            </div>         
            <?php endif; ?>
  				  
  					<jdoc:include type="component" />
  					
  					<?php if($this->countModules('nuArt_ContactInfo')): ?>       
  					  <div class="contactInfoMod">  
                <jdoc:include type="modules" name="nuArt_ContactInfo" style="nu" />     
              </div>
              <div class="clr"></div>          
            <?php endif; ?>
            
  				<?php endif; ?>
  			</div>

with this one:
<div id="mainContentArea" class="<?php if($this->countModules('nuArt_right') && ($isFrontpage || $view=='item' || $view=='article' ||$option=='com_weblinks')) echo 'twoCols'; else echo 'allWidth'; ?>">
  				<?php if ($isFrontpage): ?>  					
  					<div id="contentMods">
  						<?php if($this->countModules('nuArt_content')): ?>
  						<div class="contentModsTop">
  							<jdoc:include type="modules" name="nuArt_content" style="nu" />
  							<div class="clr"></div>
  						</div>
  						<?php endif; ?>
  						
  						<jdoc:include type="component" />
  
              <?php if (file_exists(JPATH_SITE.DS."templates".DS.$this->template.DS."includes".DS."highlights.php")): ?>
  						<div class="contentModsBtm">
  							<?php include_once(JPATH_SITE.DS."templates".DS.$this->template.DS."includes".DS."highlights.php"); ?>
  						</div>
  						<?php endif; ?>
  					</div>  					
  					
  				<?php else: ?>
  				  
  				  <?php if($this->countModules('nuArt_content')): ?> 
  				  <div class="contentModsTop">             
              <jdoc:include type="modules" name="nuArt_content" style="nu" />
              <div class="clr"></div>   
            </div>         
            <?php endif; ?>
  				  
  					<jdoc:include type="component" />
  					
  					<?php if($this->countModules('nuArt_ContactInfo')): ?>       
  					  <div class="contactInfoMod">  
                <jdoc:include type="modules" name="nuArt_ContactInfo" style="nu" />     
              </div>
              <div class="clr"></div>          
            <?php endif; ?>
            
  				<?php endif; ?>
  			</div>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum