1
heyula
Smarty plugin for Publisher
  • 2025/11/19 10:30

  • heyula

  • Theme Designer

  • Posts: 605

  • Since: 2008/4/24


Resized Image


XOOPS Publisher Custom Plugin is a powerful and flexible Smarty plugin developed for the XOOPS CMS Publisher module. With this plugin, you can display your Publisher module content anywhere in your theme files, in any format you desire.

DEMO:
https://turkish.erenyumak.com/

DOWNLOAD:
http://erenyumak.com/uploads/shared/Publisher-Smart.zip

All detailed explanations are available in the README_EN.md file.

Examples

le="color: #000000"><?php {custom order="random" template="slider" limit="5" status="2" cache="no"} {custom order="counter" template="topgames" limit="2" status="2" cache="no"} {custom category="5" order="rating" template="publisher_custom" limit="5" status="2" cache="no"}


le="color: #000000"><?php | Parameter | Type | Default | Description | Example | |-----------|------|---------|-------------|---------| | **category** | integer | 0 | Category ID (0 = all categories) | `category="2"` | | **template** | string | publisher_custom | Template file to use | `template="topgames"` | | **available** | string | - | Content tag filter | `available="spotlight"` | | **from** | integer | 0 | Starting offset for pagination | `from="10"` | | **limit** | integer | 10 | Number of items to display | `limit="20"` | | **cache** | string | no | Enable caching (yes/no) | `cache="yes"` | | **order** | string | date | Sort field | `order="rating"` | | **sort** | string | DESC | Sort direction (ASC/DESC) | `sort="ASC"` | | **status** | integer | 1 | Content status filter | `status="2"` | | **debug** | boolean | - | Enable debug mode | `debug="1"` |

2
heyula
Re: Smarty plugin for Publisher
  • 2025/11/19 10:37

  • heyula

  • Theme Designer

  • Posts: 605

  • Since: 2008/4/24


With this smart add-on, you can display the contents of the Publisher module anywhere you want in your theme, independently of the Publisher module's blocks.

Example:
le="color: #000000"><?php < {custom category="5" order="rating" template="publisher_custom" limit="5" status="2" cache="no"} >


custom category="5" = category selection
order="rating": Sorting type
template="publisher_custom": Template to be used
limit="5": Number of articles to display
status="2": News with an active status.

You can find many more example codes and all parameters in the README_EN.md file.

Example usage in theme.tpl
Resized Image

3
Mamba
Re: Smarty plugin for Publisher
  • 2025/11/20 10:21

  • Mamba

  • Moderator

  • Posts: 11520

  • Since: 2004/4/23


That looks very cool!!!

I can't wait to test it!

Bravo!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Who's Online

113 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 113


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