foxhound |
|
---|---|
I am trying to make something show in my list but only if the list contains more than 3 items. <!-- IF {LIST_ROW_NUM} == 2 AND {LIST_ROW_COUNT} > 2 --> But that no longer works. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
Dayver |
|
---|---|
But this tags have in Siena: {LIST_ROW_NUM} - https://github.com/Cotonti/Cotonti/blob/master/modules/page/inc/page.list.php#L397 Showed how many pages in categories {LIST_ROW_COUNT} - https://github.com/Cotonti/Cotonti/blob/master/modules/page/inc/page.functions.php#L203 Show count visited page
Pavlo Tkachenko aka Dayver
|
foxhound |
|
---|---|
Yes, both tags are there but they will not let you output data in the list if there are more than 3 items in it. {LIST_ROW_NUM} gives the number of a specific item in the list, but again that does not tell me how many items there are in the currently displayed list. I want to show a message if the current list viewed has at least 2 and more than 3 items. And no matter what I tried with the available tags that simply is not possible anymore. Or at least I can not figure it out. Maybe this clears up what I want to do? =====
Or: MY LIST ===== <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
Kort |
|
---|---|
... <!-- BEGIN: LIST_ROW --> <li> <span>{LIST_ROW_SHORTTITLE}</span> <!-- IF {LIST_ROW_NUM} == 2 --> this is item No. 2 <!-- ENDIF --> </li> <!-- END: LIST_ROW --> ... This outputs custom html code for the second item in the list. Checking LIST_ROW_COUNT makes no sense, for it outputs page hitcount SED.by - создание сайтов, разработка плагинов и тем для Котонти
|
foxhound |
|
---|---|
I see I was approahing this the whole wrong way (purely cause i kept trying to do it the same way as I used to). Instead of showing something after list_row_num = 2 and before list_row_num = 3 which code I added to the end of the LIST_ROW block I figured I should reverese my approach. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|