1
heyula
Smarty plugin for Publisher
  • Today 10:30

  • heyula

  • Theme Designer

  • Posts: 600

  • 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

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


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"` |

2
heyula
Re: Smarty plugin for Publisher
  • Today 10:37

  • heyula

  • Theme Designer

  • Posts: 600

  • 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:
< {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

Login

Who's Online

222 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 222


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