All thumbs instead of "Other Articles Placement" when the last row isnt full?

Hello,

my problem is, that I dont want the only Link to other items, for example when the last row contains only 2 items in an 4 comlums grid. Is it possible to show thumbnail and title for the last ones too? I want the pictures of the last to guides on this site: www.grazguides.at/neu2/de/team

Thanks for help, best regards and many thanks for your great work!

Jürgen Neuhold
8 years 2 months ago #1 by Jürgen Neuhold

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
Hi could you tell me what values do you have for these fields in the module backend :

Number of Columns
Number of Rows
Number of tabs
Number of Articles
8 years 2 months ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Number of Columns 4
Number of Rows 999
Number of tabs 0
Number of Articles 999

Same intention on www.grazguides.at/neu2/de/programm
8 years 2 months ago #3 by Jürgen Neuhold

Please Log in or Create an account to join the conversation.

Every time, the number of items divided through the number of colums isnt an integer, the "rest" and last items appears without thumbnail ...
8 years 2 months ago #4 by Jürgen Neuhold

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
Hi jurgenhold, yes the sum of number of articles divided by the number of column should be an integer.
8 years 2 months ago #5 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Because in my layout always 4 columns are used, I did a quick and dirty workaround in the default.php after line 18 in the do while loop:
if ($total_articles == "1" || $total_articles == "5" || $total_articles == "9" || $total_articles == "13" || $total_articles == "17" || $total_articles == "21" || $total_articles == "25" || $total_articles == "29" || $total_articles == "33" || $total_articles == "37" || $total_articles == "41" || $total_articles == "45" || $total_articles == "49" || $total_articles == "53" || $total_articles == "57"){
		$total_intro_text = $total_intro_text-3;
	}
	if ($total_articles == "2" || $total_articles == "6" || $total_articles == "10" || $total_articles == "14" || $total_articles == "18" || $total_articles == "22" || $total_articles == "26" || $total_articles == "30" || $total_articles == "34" || $total_articles == "38" || $total_articles == "42" || $total_articles == "46" || $total_articles == "50" || $total_articles == "54" || $total_articles == "58"){
		$total_intro_text = $total_intro_text-2;
	}
	if ($total_articles == "3" || $total_articles == "7" || $total_articles == "11" || $total_articles == "15" || $total_articles == "19" || $total_articles == "23" || $total_articles == "27" || $total_articles == "31" || $total_articles == "35" || $total_articles == "39" || $total_articles == "43" || $total_articles == "47" || $total_articles == "51" || $total_articles == "55" || $total_articles == "59"){
		$total_intro_text = $total_intro_text-1;
	}

is working for my, for now ... best regards
8 years 2 months ago #6 by Jürgen Neuhold

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum