WordPress.org

Ready to get started?Download WordPress

Forums

Article List Manager (arlima)
[resolved] problem articles in 2 columns (5 posts)

  1. bustel
    Member
    Posted 7 months ago #

    template: article.tmpl

    problem:
    I have a few articles and it should be all in two columns, when i have 6 articles: then articles 2, 3, 5 and 6 are in two columns but article 1 and 4 aren't... where can i find the setup of the columns? or how should i do to put all the articles in two columns???

    http://wordpress.org/plugins/arlima/

  2. bustel
    Member
    Posted 7 months ago #

    I have 6 articles...

    article 2 & 3 are in <div class="arlima child-wrapper">
    article 5 & 6 are in <div class="arlima child-wrapper">

    article 1 & 4 aren't... how can I set it also in <div class="arlima child-wrapper">?

  3. bustel
    Member
    Posted 7 months ago #

    I think the problem is solve in the template.css but don't know where to search...

  4. bustel
    Member
    Posted 7 months ago #

    I have find something in ListTemplateRenderer.php

    line: 312

    if(
                    ($num_children == 4 && ($count == 1 || $count == 2)) ||
                    ($num_children == 6 && ($count != 0 && $count != 3)) ||
                    ($num_children > 1 && $num_children != 4 && $num_children != 6 && ($count != 0 || $has_even_children) )
                )

    if i remove this code, then the articles are all in two columns... but there is one last problem... the first article is on the right side of column 1, and the thirth article is on the left side on column three... the two articles should be togheter in one column...

  5. victor_jonsson
    Member
    Plugin Author

    Posted 7 months ago #

    This is not a bug, it's a feature :)

    Maybe in the future we'll introduce an action that lets you control how the child articles are grouped without hacking the core of Arlima.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.