Upload image to S3 bucket which is inside body field

I have configured s3fs module into the Drupal 7 and able to upload the image to the s3 bucket directly from the image field. I can see the preview of the image as soon as it gets uploaded to the s3 bucket and can save node with image into the database.

I want to apply the same settings to the images which we upload inside the text editor in the body field. Currently, images inside shows local file path like /sites/default/files/xyz.png

Anyone has done it before? An example would be helpful.

Thanks,

How to prevent a user from deleting an entity referenced node before deleting the child node first?

I have a Content Type called ItemRequest, and another Content Type called ItemOrder. One of the fields in ItemOrder is "Related Item Request" that is an Entity Reference to ItemRequest. Each ItemOrder has at least one Related Item Request. How do I ensure that a parent ItemRequest node can only be deleted if it does not have any ItemOrder nodes relating to it?

Replace dash with plus symbol

For an external links from the drupal site I would need to replace, in a view, dash or white spaces with the symbol plus.
eg. instead of trend-micro (or trend micro) with trend+micro.

Could it be possible without using modules such as Computed Field?

Many thanks

Trouble with permissions for node revisions

I’m using Drupal 7. I created a Content Type called ItemRequests. One of the fields is a Body field. As my authenticated users keep editing this Body field at different times, I want them to be able to see the full Body field revision history. I went to the Content Type —> Edit, and made sure “Create new revision” was checked. However, when I edit an ItemRequest node, it says I (who has administrator rights) do not have permission to view revisions? Where do I set up permissions for node revisions?

Interaction Checker

Looking to build a tool similar to the Drug Interaction Checker from WebMD - https://www.webmd.com/interaction-checker/default.htm

Any idea what modules would be needed for this or if there are any tutorials?

Thanks

Chris

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x