Solved

Wordpress as a CMS - Easy file upload

Posted on 2011-03-01
8
641 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
  • 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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Read about how to approach blogging and about ways to do it right. Stand out from the crowd and let your knowledge be consumed by a large audience. This article aims to explain how your blog should look like,  the most important things to do while b…
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now