1
kadavy
Availability of smarty variables
  • 2007/11/5 7:32

  • kadavy

  • Just popping in

  • Posts: 4

  • Since: 2007/10/28


I am trying to edit the home page block for the Events Guide module. By default, it doesn't display the summary of an event. So, after looking at the eguide_item.html template page, I extrapolated that I could probably just put:

<{$event.disp_summary}>


but I was wrong, apparently that variable isn't available on the template that I am editing (eguide_block_top.html).

All sorts of other variables are available, do I need to load this one somehow?

Thanks for your help!

2
Catzwolf
Re: Availability of smarty variables
  • 2007/11/5 7:36

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Quote:

kadavy wrote:
I am trying to edit the home page block for the Events Guide module. By default, it doesn't display the summary of an event. So, after looking at the eguide_item.html template page, I extrapolated that I could probably just put:

<{$event.disp_summary}>


but I was wrong, apparently that variable isn't available on the template that I am editing (eguide_block_top.html).

All sorts of other variables are available, do I need to load this one somehow?

Thanks for your help!


You need to define that smarty var somewhere before the template is called. Is there an array called $event with 'disp_summary' defined or a null value? If not then it will not show.

3
kadavy
Re: Availability of smarty variables
  • 2007/11/5 9:09

  • kadavy

  • Just popping in

  • Posts: 4

  • Since: 2007/10/28


Thanks catz, no there isn't a place where that variable is defined in this block's template, but there isn't for any of the other variables either. There must be some place where the variables for a block are called - does anyone know? I'm a PHP novice and a XOOPS newb, so my sifting around is slow.

Thanks again!

Login

Who's Online

273 user(s) are online (235 user(s) are browsing Support Forums)


Members: 0


Guests: 273


more...

Donat-O-Meter

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

Latest GitHub Commits