Solved

Wordpress as a CMS - Easy file upload

Posted on 2011-03-01
8
668 Views
Last Modified: 2012-08-13
Hi there,

I'm creating a site and using Wordpress as a CMS for a client. One of the requirements is to have a page that lists a bunch of publications which my client will update themselves on a continual basis. I want to make things as easy as possible for them so I'd like to create some sort of system where all they'll need to do is upload the file, a thumbnail of the publication, and enter the title - and everything will be populated and added to the page. The content will either be organized in a table or with divs so I would rather not allow the client to add the files themselves in the WYSIWYG editor to prevent them from messing up the layout of the page.

I was thinking that using custom fields might be the way to go but wasn't sure if there are any better alternatives that someone could suggest. Over time, there is going to be a whole lot of publications so something that keeps things simple and organized would be best. Any help would be greatly appreciated. Thanks.
0
Comment
Question by:Adam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 35010513
Hi furio13.

You are probably looking at doing something with post/page templates.  However, if they are into the backend, it's kind of tricky to disable the uploader and media buttons in a sane and rational way.

What you could do is investigate using a form->post capable plugin (like GravityForms) to create a custom form with uploads for the user to fill out and you manage on the backend with a template to create the kind of post you want.
0
 
LVL 1

Author Comment

by:Adam
ID: 35010715
Thanks for the reply jason1178.

I appreciate the suggestion but I would much rather keep everything in the admin backend. The client will eventually have access to the backend to allow them to create new posts and edit content. For the publications, I don't necessarily need to "hide" the WYSIWYG editor - I was just hoping to provide a simplified option to add new publications.

I was even considering some sort of setup where publications are generated from "Posts" that are in a particular category I create (i.e. "publications"). I can create a page within my theme that would then post the publications from that category and it would be laid out as I want it.

Not sure if that's more work then it needs to be though....

Thoughts?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 35010805
The problem with keeping everything in the backend is that you will mostly have to live with the media uploader and it's embedding method.  
0
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
LVL 1

Author Comment

by:Adam
ID: 35010844
I agree that the client would have to first upload their file through the media uploader but once they have the URL to the files, I can create custom fields and get them to place the info there. Then in the theme, have it call on the files and have them embedded the way I want.

I could be missing your point though. Can you elaborate?
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 35010879
My larger point is you will have to actively prevent them from also clicking on "insert into post" when using the media uploader which will involve a hack to the core WordPress files.  Not saying it can't be done, only that you have some work ahead of you.

Going with the form-based solution prevents this issue entirely while giving you a bit more control over what happens.  Not saying it is a perfect solution, but maybe a middle-ground for you to investigate before locking into the backend.
0
 
LVL 1

Author Closing Comment

by:Adam
ID: 35048057
Unfortunately, not quite the answer I was hoping for but I guess there may not be many easy options for what I'm looking to do.
0
 
LVL 1

Author Comment

by:Adam
ID: 35048059
Thanks for the help jason1178.
0
 
LVL 1

Author Comment

by:Adam
ID: 35101715
For anyone who has faced the same issue, I came across a plugin called Magic Fields that I think would help solve a situation like this.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question