Keyword

Highlights section...

  • Leslie Fournier
  • Leslie Fournier's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 1 month ago #138011 by Leslie Fournier
Highlights section... was created by Leslie Fournier
Hello, the Highlights section is showing on all the pages… Since it's generated from the template parameters I can see a place to remove it like I would remove a module. What am I missing? Thanks in advance...

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 month ago #138012 by Krikor Boghossian
Replied by Krikor Boghossian on topic Highlights section...
Hello Leslie,

You just need to either clear all the highlights from your template's params. The highlights code is located in index.php

Just in case this the code that generates the highlights.
<!-- Highlights -->
          <?php $highlights = $this->params->get('contentHighlights'); ?>
          <?php if(isset($highlights->entries)): ?>
          <div class="module columnItems-4">  
            <div class="moduleContent">
              <div class="modItemsBlock k2ItemsBlock columnItems-4">
                  <ul>
                  <?php foreach($highlights->entries as $key=>$highlight): ?>
                  <li class="column large-3 small-6 mobile-4">
                    <div class="moduleItemBody equalHeights">                      
                      <div class="moduleItemIcon">
                        <?php echo $highlight->icon; ?>
                      </div>                    
                      <a class="moduleItemTitle" href="<?php echo $highlight->link; ?>"><?php echo $highlight->title; ?></a>                                       
                      <div class="moduleItemIntrotext"><?php echo $highlight->description; ?></div>
                    </div>
                    <div class="moduleItemReadMore">
                      <a href="<?php echo $highlight->link; ?>"><span><?php echo JText::_('NU_READMORE'); ?></span></a>
                    </div>
                    <div class="clr"></div>                    
                  </li>
                  <?php endforeach; ?>
                  <li class="clearList">&nbsp;</li>
                  </ul>
                </div>
              </div> 
              <div class="clr"></div>
          </div>
          <?php endif; ?>          

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

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

  • Leslie Fournier
  • Leslie Fournier's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 1 month ago #138013 by Leslie Fournier
Replied by Leslie Fournier on topic Highlights section...
Thanks for your quick reply Krikor! I wanted the highlights on the home page only (sorry I didn't specify that). I solved the problem by duplicating the style and clearing the params in the second style, which I applied to all pages except the home page. I still think I may be missing something about how to apply the template's "Inner" page style vs. the "Home" style? I am new to Joomla so perhaps I am just not understanding the documentation.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 month ago #138014 by Krikor Boghossian
Replied by Krikor Boghossian on topic Highlights section...
There is an even simpler solution which I strong advise.
Locate the block of code I sent you and this little part
<?php if(isset($highlights->entries)): ?>

now change it to this
<?php if(isset($highlights->entries) && $isFrontpage): ?>

If you need any further explanation of a documentation don't hesitate to ask me.

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

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

  • Leslie Fournier
  • Leslie Fournier's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 1 month ago #138015 by Leslie Fournier
Replied by Leslie Fournier on topic Highlights section...
Ah, so easy! Thanks again!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 month ago #138016 by Krikor Boghossian
Replied by Krikor Boghossian on topic Highlights section...
You 're welcome

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