Jump to content
mel47

Where put site-specific config page

Recommended Posts

Hi

I have a very basic interrogation about admin. I started to build my own module for users to manage the website (for example export or email sending), via a specific menu. Works well. But now, I wanted to add a config page (currently under home tree, using a settings template). This page contains fields for text, checkbox and images, and have to be edited by website users frequently. Searching around forum and different admin config modules, if I understand correctly, I can't save images, since they are not pages. Do I'm right? Do I should only use a link to harmonize the feeling and find everything under the same menu?

How, you, experienced people, manage this kind of settings page?

Thanks!

Share this post


Link to post
Share on other sites

Images can stored very well in an image field. Enable/use tagging within that image field, place it in your settings template and your done.

Add as much images you want or need and depending on its purpose add a tag like logo, frame, background to that specific image.

https://processwire.com/api/fieldtypes/images/#image_tags

I used it in one project and the maintainer (client) used this ever since and was comfortable with that way.

This might not work in your case but at least there is a way to use one field for images and using them in different places.

 

Regarding the module, that you already have, you can set up those specific fields in that module too. Users just have to edit the module settings then. Don't know what's more comfortable in your project.

Share this post


Link to post
Share on other sites

I usually use Settings Factory, it handles most situations and lets you have links in your admin menu to the settings.

Most sites I build have a centralized Media Library, so i never need to deal with images in settings, e.g. if i needed to have a logo or some other image for a setting, i would make it a page reference to the media library.

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...