Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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

Who's Online

164 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits