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.

Content Highlights

  • franky01jw
  • franky01jw's Avatar Topic Author
  • Offline
  • Junior Member
More
5 years 2 months ago #139336 by franky01jw
franky01jw created the topic: Content Highlights
In Template Specific - Content Highlights:

1 - I deleted all that content highlight. Now, when i add some new content highlight block, the content is created (i can see it at home page), but in template-specific there is a new content-highlight block, but it is blank! ??

2 - Can it be moved at home page the position of Content Highlights? Do it use a module, a position?

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

More
5 years 1 month ago #139337 by Krikor Boghossian
Krikor Boghossian replied the topic: Content Highlights
The content highlights is not a module. It is specific functionality bound to the template.

You can move the entire block in your template however since the template is designed in zones.

Open you index.php file located in /templates/matchbox/index.php and locate the following block.
<!-- Highlights -->

					<?php if(isset($highlights->entries) && $isFrontpage): ?>

					<?php // Count the grid items and assign the proper class 
				        if ( count($highlights->entries)==3 || count($highlights->entries)==6 ) {
				            $highlightBlock=' large-block-grid-3';
				        } elseif (count($highlights->entries)==2) {
				            $highlightBlock=' medium-block-grid-2 large-block-grid-2';
				        } else {
				            $highlightBlock=' medium-block-grid-2 large-block-grid-4';
				        }
				    ?>
					<section class="column small-12 content-zone highlights">
						
						<?php if($this->params->get('contentHighlightsHeader')): ?>
						<h3 class="moduleTitle"><?php echo $this->params->get('contentHighlightsHeader'); ?></h3>
						<?php endif; ?>

						<ul class="small-block-grid-1<?php echo $highlightBlock; ?>">
							<?php foreach($highlights->entries as $key => $highlight): ?>
							<li>

								<?php if($highlight->icon): ?>
								<div class="text-center highlight-icon">
									<?php echo $highlight->icon; ?>
								</div>
								<?php endif; ?>

								<?php if($highlight->title): ?>
								<h3>
									<?php if($highlight->link): ?>
									<a href="<?php echo $highlight->link; ?>"><?php echo $highlight->title; ?></a>
									<?php else: ?>
									<?php echo $highlight->title; ?>
									<?php endif; ?>
								</h3>
								<?php endif; ?>

								<?php if($highlight->tagline): ?>
								<h4><?php echo $highlight->tagline; ?></h4>
								<?php endif; ?>

								<?php if($highlight->description): ?>
								<p class="text-center"><?php echo $highlight->description; ?></p>
								<?php endif; ?>

								<?php if($highlight->link): ?>
								<a href="<?php echo $highlight->link; ?>">Learn more...</a>
								<?php endif; ?>
							</li>
							<?php endforeach; ?>
						</ul>
					</section>
					<?php endif; ?>

This is the code that generates the highlights.

To paste right above the footer (for example) cut this piece of code and paste it bellow line 259.
Exactly bellow this piece of code.
<?php if($this->countModules('matchbox_Above_Footer')): ?>
					<section class="column small-12 content-zone no-pos">
						<jdoc:include type="modules" name="matchbox_Above_Footer" style="nu" />
					</section>
					<?php endif; ?>

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • franky01jw
  • franky01jw's Avatar Topic Author
  • Offline
  • Junior Member
More
5 years 1 month ago #139338 by franky01jw
franky01jw replied the topic: Content Highlights
Thanks, Krikor. Ok.

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


Powered by Kunena Forum