test
Viewing 1 post (of 1 total)
  • Author
    Posts
  • adplus Friend
    #730003

    Hello,

    The code for category blog item is:


    <div class="col-sm-<?php echo round((12 / $this->columns));?>"
    onclick="window.location = '<?php echo the code to create item article link';">
    <div class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>"
    itemprop="blogPost" itemscope="" itemtype="http://schema.org/BlogPosting">
    <?php
    $this->item = &$item;
    echo $this->loadTemplate('item');
    ?>
    </div> <!-- end item -->
    </div>

    I want to add javascript onclick event for every blog item <div> with link to article. How to write here the php code which will generate correct article link here.

    Jaak

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  adplus 9 years, 4 months ago.

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