Hacks

Smarty plugin for Publisher

heyula  19-Nov-2025 10:40 72 Reads   1 comment 
Publisher-Smart-Plugins
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.

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.

{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"}


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.

Parameter Type | Default | Description Example |
|-----------|------|---------|-------------|---------|
| **
category** | integer Category ID (all categories) | `category="2"` |
| **
template** | string publisher_custom Template file to use | `template="topgames"` |
| **
available** | string | - | Content tag filter | `available="spotlight"` |
| **
from** | integer 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 Content status filter | `status="2"` |
| **
debug** | boolean | - | Enable debug mode | `debug="1"` |


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

Example usage in theme.tpl

Resized Image


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

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

Forum:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=79635&post_id=367532#forumpost367532
Rating 5.00/5
Rating: 5.0/5 (1 vote)
Voting is disabled!
user

 Re: Smarty plugin for Publisher


That looks very cool!!!

I can't wait to test it!

Bravo!

 


Login

Who's Online

148 user(s) are online (4 user(s) are browsing Publisher)


Members: 0


Guests: 148


more...

Donat-O-Meter

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

Latest GitHub Commits

Categories