SSL Labs ScoreSecurityHeaders.io Score

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

Put the Article Index - in a Module Position

More
2 weeks 1 day ago #1327 by michael
michael created the topic: Put the Article Index - in a Module Position
How easy is it? It's easier than you think. With...

I got a tweet from someone asking how I did it, and I said that maybe I would turn it into a product to sell, but I would feel guilty if I did that. It's so easy to do, I would feel like a real jerk to charge for this.

How easy is it? It's easier than you think. With one of my free plugins, it's even easier.

  1. You need to download my HeadTag plugin - don't worry, it's one of my free extensions.
    1. Enable and configure the plugin, setting "Process Content Tags" to "Yes"
  2. Create a new "Custom" module.
    1. Assign it to whatever module position you want the article index to appear
    2. Set "Show Title" to "No"
    3. Assign it to appear on all pages
    4. In the "Options" tab, set "Prepare Content" to "Yes"
    5. In the "Advanced" tab, set the "Module Style" to "HTML5" (this is optional, you will probably want to try others depending on your template)
  3. Use the "Toggle Editor" button to view the module content source code, and add the following code:
<div id="mod_article_index">
{headtag:scriptdeclaration}
(function($){
    $(document).ready(function(){
        var ai = $('.article-index');
        $('#mod_article_index').append(ai);
        ai.css({width:'100%'});
    });
})(jQuery);
{/headtag}
</div>

And if you want to see a walkthrough - I made one of those too.

I hope this helps you achieve the same on your website!

Read article...

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Kunena Forum