minifrontpage
- Posted by Thei (4) Offline
is there a possibility to ad a default thumb to minifp in case there is an article without picture?
Now its generating an error if i place an article without picture.
9 years 4 months ago #1
by Thei
Now its generating an error if i place an article without picture.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi, Can you tell me what is the error message? Anyway, try to go to your administrator page then open System -> Global Configuration -> Server and set the Error Reporting to None
9 years 4 months ago #2
by TemplatePlazza
Please Log in or Create an account to join the conversation.
- Posted by Thei (4) Offline
Hi,
Error message is:
Notice: Undefined property: stdClass::$thumb in /public/sites/scopias.mediacradle.nl/modules/mod_minifrontpage/themes/tabbed-slide-left-right/tmpl/bottom.php on line 48
It diassapears when i set error reporting to none or sipmle.
But it would be really great if i could insert a default image.
Thanks for your help.
9 years 4 months ago #3
by Thei
Error message is:
Notice: Undefined property: stdClass::$thumb in /public/sites/scopias.mediacradle.nl/modules/mod_minifrontpage/themes/tabbed-slide-left-right/tmpl/bottom.php on line 48
It diassapears when i set error reporting to none or sipmle.
But it would be really great if i could insert a default image.
Thanks for your help.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi you can do that by editing the file root/modules/mod_minifrontpage/mod_minifrontpage.php:But it would be really great if i could insert a default image.
at line 105 you will see this code :
foreach($list as $index => $item)
{
if ($thumb_embed)
foreach($list as $index => $item)
{$item->thumb = "<img src='path/to/your/default/image' />";
if ($thumb_embed)
Please Log in or Create an account to join the conversation.
- Posted by Thei (4) Offline
Thank for this very fast answer.
Insertion of the above code is working.
But now the allignement of the text is below the article and not on the side.
You can check it on my testsite scopias.mediacradle.nl
The articles with the scopias logo.
9 years 4 months ago #5
by Thei
Insertion of the above code is working.
But now the allignement of the text is below the article and not on the side.
You can check it on my testsite scopias.mediacradle.nl
The articles with the scopias logo.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi, try to change the code I suggested before to this one :
9 years 4 months ago #6
by TemplatePlazza
foreach($list as $index => $item)
{$item->thumb = "<img src='path/to/your/default/image' class='mfp-img-left'/>";
if ($thumb_embed)
Please Log in or Create an account to join the conversation.