{Giúp với} giúp mình khi click vào ảnh sản phẩm sẽ đưa vào trang nội dung sản phẩm

Thảo luận trong 'Hướng dẫn - Hỏi đáp' bắt đầu bởi newcentury214, 7/9/16.

  1. newcentury214

    newcentury214 Mới tham gia

    Bài viết:
    2
    Likes :
    0
    Mình xài Joomla 1.5.26.
    Trang mình hiện tại khi click vào ảnh sản phẩm nó hiện ra ảnh lớn. Mình muốn khi click vào ảnh sản phẩm nó sẽ đưa mình vào trang nội dung của sản phẫm luôn, giống như khi mình click vào tên sản phẩm vậy đó. Các bạn giúp mình với, mình code gà quá......
    Mình thấy trong mục template\html\com_content\category có file default.php. Code như thế này :

    defined('_JEXEC') or die('Restricted access'); ?>
    <?php if ($this->params->get('show_page_title')) : ?>
    <h1 class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
    <?php echo $this->category->title; ?>
    </h1>
    <?php endif; ?>
    <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="contentpane<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
    <tr>
    <td width="60%" valign="top" class="contentdescription<?php echo $this->params->get( 'pageclass_sfx' ); ?>" colspan="2">
    <?php if ($this->category->image) : ?>
    <img src="images/stories/<?php echo $this->category->image;?>" align="<?php echo $this->category->image_position;?>" hspace="6" alt="<?php echo $this->this->category->image;?>" />
    <?php endif; ?>
    <?php echo $this->category->description; ?>
    </td>
    </tr>
    <tr>
    <td>
    <?php
    $this->items =& $this->getItems();
    echo $this->loadTemplate('items');
    ?>

    <?php if ($this->access->canEdit || $this->access->canEditOwn) :
    echo JHTML::_('icon.create', $this->category , $this->params, $this->access);
    endif; ?>
    </td>
    </tr>
    </table>


    Không biết có phải edit ở đây không, và edit như thế nào, mọi người giúp mình với nha
     
comments powered by Disqus

Chia sẻ trang này