SSL Labs ScoreHSTS Preloaded

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

3 years 1 month ago #1327 by michael
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">
        var ai = document.getElementsByClassName('article-index');
        var target = document.getElementById('mod_article_index');

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!

Update 12-11-2018: Replaced jQuery code with pure Javascript.

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

1 year 10 months ago #3881 by radu81
This is what I was looking for a few weeks back, but didn't find it, just found it now by chance, thanks for sharing it, I will surely test it and use it.

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Powered by Kunena Forum