| Smartsection: item image on first page only |
| by middleton on 2006/12/31 18:56:15 This is a hack for Smartsection 2.12. It changes the display format so that the item image only displays on the first page. I find it useful on long documents that I've paginated using [pagebreak] -- this way, the image only appears on the first page. Step 1: edit item.php Around line 104, you'll see this code: $xoopsTpl->assign('pagenav', $pagenav->renderNav()); Just below it, add this line: le="color: #000000"><?php $xoopsTpl->assign('curpage', $item_page_id); Step 2: edit /templates/smartsection_item.html Look for this line: <{if $item.image_path}> Modify it to this: le="color: #000000"><?php <{if $item.image_path && $curpage == 0}> That should do it! Now, the image will only show up on the first page. Brad |