Developer forum

Forum » Templates » Frontend editing NewsV2 images

Frontend editing NewsV2 images

Charlotte Mogensen
Reply
Is it not possible to upload images to the newsv2 module in frontend editing mode?

I have tried to insert the tag @NewsImage_ctrl, but it doesn't output the image field.
DwTemplateTags is also not working in the template (Files/Templates/NewsV2/Edit/Form.html).



Replies

 
Yury Zhukovskiy
Reply

Hi Charlotte, I'm glad to see again.

To upload images you need to add a news custom field with “file manager” type. Then choose the custom field in page’s paragraph settings. After you will see upload control in the news form.

 

Kind Regards 

Zhukovskiy Yury



 
Charlotte Mogensen
Reply

Hi Yury - good to see you too :)
I have done as you say and I get the field visible in the form. But it seems there is no image anywhere after I upload, so where is this images placed? In the notify.html template there is a tag "News.Image", but this image is empty, so there must be a coupling missing.

Kind regards, Charlotte
 
Charlotte Mogensen
Reply

Ok I found the images - in the Files folder (!!!). So now they are ok. Next question is how do I refer to these in the mail (Notify template). I tried using the same tag as for the custom field, but nothing shows up in the email - I expected at least the file path to be there.
 
Yury Zhukovskiy
Reply

Hi Charlotte ,

I have researched the problem and found:

First, you can’t extent notify template by custom fields, you can use only standard image tags.

Second, there is no Image tag in Form.html template, all possible tags are hardcoded, except custom field.

 

So, you can make a new feature request for DW or try another solution, for example with new Forms module. It has configuration, so you can configure fields set (also a filemanger). And the Forms module can sent notifications.

 

 

Kind Regards

Zhukovskiy Yury

 

You must be logged in to post in the forum