how to let Related Items Extended only show image?
- Posted by TemplatePlazza (5263) Offline
Hi, I don't understand why you would like to give intro text value = 0. It supposed to be filled with at least 1 value.
Intro text is the the main item style that will display items in left to right ordering, and the secondary item style will show your item in top to down (stack) ordering.
To get different item layout, basically you just need to make a combination of these three fields : count (total article item that will be displayed), introtext (total item with left to right order) and column (column number).
If you you want to display only one row with three items inside, then simply fill the Count value with = 3 and intro text = 3 and colomn = 3.
Please see this screenshot :
www.dropbox.com/s/e2lmjvjo4tr45ww/Untitl...5.02.14_09.47.09.jpg
10 years 10 months ago #7
by TemplatePlazza
Intro text is the the main item style that will display items in left to right ordering, and the secondary item style will show your item in top to down (stack) ordering.
To get different item layout, basically you just need to make a combination of these three fields : count (total article item that will be displayed), introtext (total item with left to right order) and column (column number).
If you you want to display only one row with three items inside, then simply fill the Count value with = 3 and intro text = 3 and colomn = 3.
Please see this screenshot :
www.dropbox.com/s/e2lmjvjo4tr45ww/Untitl...5.02.14_09.47.09.jpg
We don't think this will be used by average users and we want to keep the module as simple as possible. Too much backend options will make the module looks bloated.Oh, yes, this new version has no option for "show / hide image caption" (caption was input via the "image and links" paramter in the article editing page).
Please Log in or Create an account to join the conversation.
- Posted by baijianpeng (7) Offline
Ok, now I know how to set those 3 parameters to get a 3*1 image grid.
However, I really need to show something below the image, a short text. Maybe the article title, maybe the image ALT text, maybe the image caption text. I think caption text is the best choice, because caption text is for "caption" position.
If you don't want to include such an option, Could you please teach me how to hack the code to achieve this function?
Thanks.
10 years 10 months ago #8
by baijianpeng
However, I really need to show something below the image, a short text. Maybe the article title, maybe the image ALT text, maybe the image caption text. I think caption text is the best choice, because caption text is for "caption" position.
If you don't want to include such an option, Could you please teach me how to hack the code to achieve this function?
Thanks.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5263) Offline
You can try to add this code in the file [root]/j322/modules/mod_relateditems_xtd/tmpl/default.php:after the codeat line 82 and 112 to display item title after image
10 years 10 months ago #9
by TemplatePlazza
<?php echo $item->title; ?>
<?php if ($link_to_item) { ?></a><?php } ?>
Please Log in or Create an account to join the conversation.