Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • darengr Friend
    #835115

    I can see in the source code viewer within my browser that the "height2" class is added to some images, so they appear taller 2 times.

    class="article-item item height2 "

    I cannot find this in your documentation. where is this "height2" added within the article? thanks

    Pankaj Sharma Moderator
    #835570

    Hi
    kindly share your working site url and a screenshot of issue here , so i can check the issue directly on your site .

    darengr Friend
    #835937

    please see attached image.
    there is no issue in my site, just how to use the functionality.

    the question is, where to add the height2 class (or there is some other way?), so the pictures I want are displayed automatically with double height, as the red berries sweet slice in your demo site.

    thanks


    1. mono
    Pankaj Sharma Moderator
    #835981

    Hi
    this is isotop layout and designed in this way . You can find the class is defined in the php files
    here : /templates/ja_mono/html/com_content/category/isotop.php
    and All the style is defined in the /template.css file .

    darengr Friend
    #836032

    thanks for reply.
    How do I decide which images get double height, and which not?
    I have built a site with 4 images, and all of them get single height,
    but in your demo, some appear double height.

    Pankaj Sharma Moderator
    #836051

    Hi you can not choose specific item to set them , You can only set the no. in menu options > http://prntscr.com/9klpfd And it will be display on site with the order u sent in menu.

    darengr Friend
    #836056

    but there is a difference somewhere…

    <?php if (!empty($this->intro_items)) : ?>
    <?php foreach ($this->intro_items as $key => &$item) : ?>
    <?php
    $itemAttribs = new JRegistry($item->attribs);
    $itemHeight = $itemAttribs->get(‘jcontent_height’, ‘0’);
    ?>
    <?php $rowcount = ((int) $counter % (int) $this->columns) + 1; ?>
    <div class="article-item item <?php echo ($itemHeight ? ‘height2’ : ”); ?> <?php echo $item->state == 0 ? ‘ system-unpublished’ : null; ?>">

    in isotope.php, it finds the height with line
    $itemHeight = $itemAttribs->get(‘jcontent_height’, ‘0’);
    and then modifies the div class, to add height2 if there is something in $itemheight
    with line
    <?php echo ($itemHeight ? ‘height2’ : ”); ?>
    , so it works for only some of the items, not all.

    what is this jcontent_height, where is its value set or defined or computed?

    I can see it working nicely on mono demo site, but not on my site, I have only 4 image items to display, all of them get single height.


    1. mono2
    Pankaj Sharma Moderator
    #836307

    Hi
    Kindly submit your site admin details via Private reply . Without checking site its to assume problems.

    darengr Friend
    #837114
    This reply has been marked as private.
    darengr Friend
    #837441

    based on a recent post (https://www.joomlart.com/forums/topic/ja-extra-field-backend/), I understood that if someone declares within the article category in the extra fields tab the choice "portfolio", then they can choose it within the article…
    regards

    Pankaj Sharma Moderator
    #837704

    @darengr

    Did u solved it ? because i saw u private thread was edited and site details removed by you .

    darengr Friend
    #838003

    Yes,
    please update the documentation, if not updated yet, (that the image height depends on the articles categories functionality JA Extra fields where we put the value Portfolio, and then is is visible in the article itself to choose the height…) so it is easy for us to use the templates and we do not search for days on how to use the specific functionality.
    regards

    Pankaj Sharma Moderator
    #838087

    Thanks for feedback .
    I sent it to concern to re look on this issue and consider it in documentation .

Viewing 13 posts - 1 through 13 (of 13 total)

This topic contains 12 replies, has 2 voices, and was last updated by  Pankaj Sharma 8 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum