2019-05-10, 05:10:03
(Replying to http://get-simple.info/forums/showthread...4#pid64234 )
I think I still haven't documented this...
You can use NM Addons' function
Example:
(the default image is relative to data/uploads, but you can also specify a full url like http://...)
But if you just want to set the default image and not specify width, etc.:
You have to insert that code before
(2019-05-10, 02:23:50)smdp-1971 Wrote: If I do not select an image when creating new news - is there a way to set the default image, but only in the sidebar
I think I still haven't documented this...
You can use NM Addons' function
nm_set_custom_image
(with optional paramers for width, height, cropping and default image).Example:
Code:
<?php nm_set_custom_image(200, 150, 1, 'image1.jpg'); ?>
But if you just want to set the default image and not specify width, etc.:
Code:
<?php nm_set_custom_image(null, null, null, 'image2.jpg'); ?>
You have to insert that code before
<?php nm_custom_display_recent ... ?>