Keyword

Content highlights

  • Michael Weckert
  • Michael Weckert's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 months ago - 8 years 8 months ago #137307 by Michael Weckert
Content highlights was created by Michael Weckert
hello there nuevvos,
my questions:

1. when I have no modules in the nuModusVersus_Below_Slideshow position, the template generated content highlights for the frontpage are not shown anymore...
is there another solution than setting up an empty module on the nuModusVersus_Below_Slideshow position?

2. how do I implement a "go to top" anchor on the front page?

thank you, best regards, Michael

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

More
8 years 8 months ago - 8 years 8 months ago #137308 by Yiota
Replied by Yiota on topic Content highlights
Hello,

1. In line 64 of the index.php of the nuModusVersus template, replace this code
<?php if($this->countModules('nuModusVersus_Below_Slideshow') || ($isFrontpage && $this->params->get('nuContentHighlights'))): ?>
with this:
<?php if($this->countModules('nuModusVersus_Below_Slideshow') || ($isFrontpage && $this->params->get('contentHighlights'))): ?>
This code snippet will be included in the next update of the template.

2. If you are using K2, try to add this code somewhere in the bottom of your index.php file
<div class="itemBackToTop">
<a class="k2Anchor" href="#startOfPageId<?php echo JRequest::getInt('id'); ?>">
<i class="icon-circle-arrow-up"></i>
<?php echo JText::_('K2_BACK_TO_TOP'); ?></a>
</div>

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

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

  • Michael Weckert
  • Michael Weckert's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 months ago #137309 by Michael Weckert
Replied by Michael Weckert on topic Content highlights
Gia sou Yiota,

thank you for your fast reply... the solution for content highlight worked fine... "back to top" will not work on the frontpage (homepage) - I tried different places for the code, link appears but does not work... but this is no big issue anyway.

xairetismous pollous kai kales yiortes!
Michael

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

More
8 years 8 months ago #137310 by Yiota
Replied by Yiota on topic Content highlights
You will also have to add this javascript code in custom.js file of the template

// Smooth Scroll
var $nv = jQuery.noConflict();
$nv('.k2Anchor').click(function(event){
event.preventDefault();
var target = this.hash;
$nv('html, body').stop().animate({
scrollTop: $nv(target).offset().top
}, 500);
});

Sorry about that. I thought that the K2 component was loading in the homepage of this template but it doesn't.

Thank you for the wishes :)

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

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

  • Michael Weckert
  • Michael Weckert's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 months ago #137311 by Michael Weckert
Replied by Michael Weckert on topic Content highlights
gea sou Yiota,
thank you again... I inserted the code into custom.js and the div-snipet into the index.php after the footer div... same as before... link shows but not working... bot don't bother.. there are more important things to do... btw, I appreciate your great work.
Hope life will become better soon in Greece... it's a shame!

best regards,
Michael

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

More
8 years 8 months ago #137312 by Yiota
Replied by Yiota on topic Content highlights
Add this right under your <body> class
<span id="startOfPageId<?php echo JRequest::getInt('id'); ?>"></span>

The anchor is good by itself but it cannot go where there is no actual starting point to go.

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

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

  • Michael Weckert
  • Michael Weckert's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 months ago #137313 by Michael Weckert
Replied by Michael Weckert on topic Content highlights
geia sou Yiota,

you are right, of course ;o) ...
thanks you again!

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

More
8 years 8 months ago #137314 by Yiota
Replied by Yiota on topic Content highlights
You are 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