11
Bleekk
Re: use smartys in theme
  • 2014/1/4 13:42

  • Bleekk

  • Theme Designer

  • Posts: 938

  • Since: 2002/12/14


I am not sure if I understand you right, you want one block to use twice on a website. For example one time to show only the title and second time to show only the article image?
Is this right?

12
Bleekk
Re: use smartys in theme
  • 2014/1/4 15:19

  • Bleekk

  • Theme Designer

  • Posts: 938

  • Since: 2002/12/14


I have created a smarty for you to get the title or image from the latest publisher article.

Please download this one
Unzip it and put it in following folder 'class/smarty/xoops_plugins/'

Now can use this smarty wherever you want in your theme

For image url:
<{publisher_latest}>
or
<{
publisher_latest ret='image'}>


For the article title:
<{publisher_latest ret='title'}>


Let me know if it works

13
heyula
Re: use smartys in theme
  • 2014/1/5 9:07

  • heyula

  • Theme Designer

  • Posts: 560

  • Since: 2008/4/24


@Bleekk
awesome super
Thank you

14
sova
Re: use smartys in theme
  • 2014/1/5 10:20

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


Quote:

Bleekk wrote:
I have created a smarty for you to get the title or image from the latest publisher article.

Please download this one
Unzip it and put it in following folder 'class/smarty/xoops_plugins/'

Now can use this smarty wherever you want in your theme

For image url:
<{publisher_latest}>
or
<{
publisher_latest ret='image'}>


For the article title:
<{publisher_latest ret='title'}>


Let me know if it works


Thank you Dear Bleekk.
Of This Smartys for all modules

15
Bleekk
Re: use smartys in theme
  • 2014/1/5 10:24

  • Bleekk

  • Theme Designer

  • Posts: 938

  • Since: 2002/12/14


@heyula @sova you are welcome

you can not have one smarty for all modules because every module handles the images in a different way

16
sova
Re: use smartys in theme
  • 2014/1/5 12:21

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


I say writing For all modules

17
heyula
Re: use smartys in theme
  • 2014/1/5 17:51

  • heyula

  • Theme Designer

  • Posts: 560

  • Since: 2008/4/24


@Bleekk

Can we call multiple images to?

$itemsObj $publisher->getHandler('item')->getItems($limit 3$start 0'', -1$sort 'datesub'$order='DESC'''true$criteria nulltrue);

18
Bleekk
Re: use smartys in theme
  • 2014/1/7 10:41

  • Bleekk

  • Theme Designer

  • Posts: 938

  • Since: 2002/12/14


I am sure that it will work. I will take a look at it asap

19
Bleekk
Re: use smartys in theme
  • 2014/1/7 14:44

  • Bleekk

  • Theme Designer

  • Posts: 938

  • Since: 2002/12/14


HERE is the same smarty for the xnews module because @sova asked for it
you use it like the one for publisher
<{xnews_latest}>

20
sova
Re: use smartys in theme
  • 2014/1/8 11:15

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


is It smarty, the latest news shows?
Do can display a category's latest news?

==============================
Excuse me.
I can not speak English well.
I get help from Google Translate.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

58 user(s) are online (28 user(s) are browsing Support Forums)


Members: 0


Guests: 58


more...

Donat-O-Meter

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

Latest GitHub Commits