Specials page blank

Locked

Views: 1,486

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Sep 2006, 11:04 PM
#1
stevensmedia avatar

stevensmedia

New Zenner

Join Date:
Jan 2006
Posts:
88
Plugin Contributions:
0

Specials page blank

Recently, I upgraded to 1.3.5 and now my Specials page is blank when there are no specials to display. The blank content area also causes the layout to collapse a bit.

Modifying tpl_specials_default.php doesn't seem to have any effect on the page. I can add foo code to it, but then can't find that in the resulting page.

Looking closer at tpl_modules_specials_default.php, it appears to call tpl_columnar_display.php for the template, not tpl_specials_default.php.

I want to insert

<?php
  if ($specials_split->number_of_rows < 1)
{
    echo '<tr><td>Sorry, there are no Specials available at this time.</td></tr>';
} 

into the correct template so that this message shows when there are no specials. Which template should I add this to?

I did a search for "if ($specials_split->number_of_rows < 1)" in all the default templates, but didn't find it. Has this code been removed in 1.3.5?

20 Sep 2006, 11:33 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Specials page blank

...if there are not any Specials, there aren't any links to the page. Why do you need to change the page?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

21 Sep 2006, 4:12 AM
#3
stevensmedia avatar

stevensmedia

New Zenner

Join Date:
Jan 2006
Posts:
88
Plugin Contributions:
0

Re: Specials page blank

Well, we have a hard link to the Specials page in the image navigation.

Any other ideas?