Jump to content
MateThemes

Webcam Images

Recommended Posts

Hello everyone!

I have webcam images, that are uploaded every 5 minutes to the server. Currently the webpage is written in plain html but we want to switch to processwire. The current file path is in the root -> cam/someimage.jpg.

Now if i am installing processwire, processwire will be in the root and the images could be still in cam/someimages.jpg but how can I access this images on a page? 

Or does anyone have expiriences with such topics?

Thank you in advance!

Share this post


Link to post
Share on other sites

Hi @MateThemes,

ProcessWire allows you to have any custom folder you want in its root, so you can leave your cam-directory where it is. The path to the images will stay the same. So, if you included an image with <img src="/cam/someimage.jpg"/> before, you do it just like that in your processwire-template file.

Just a small restriction to notice:
You must not create a page with "cam" as path in processwire, because that will block access to your folder. 

  • Like 2

Share this post


Link to post
Share on other sites
19 hours ago, MateThemes said:

but how can I access this images on a page? 

Do you mean access them from an images-field on that page? In that case you'd change the image path to site/assets/files/page-id/ instead.

But you'd still have to add the images to the field programmatically so that PW "sees" the new pics (via hook or Cron).

Share this post


Link to post
Share on other sites
19 hours ago, Sebi said:

Hi @MateThemes,

ProcessWire allows you to have any custom folder you want in its root, so you can leave your cam-directory where it is. The path to the images will stay the same. So, if you included an image with <img src="/cam/someimage.jpg"/> before, you do it just like that in your processwire-template file.

Just a small restriction to notice:
You must not create a page with "cam" as path in processwire, because that will block access to your folder. 

Thank you for your help!!!

It is good that I can leave everything as it is!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...