I've just started learning the WordPress CMS, i have a small PHP programming background and i wanted to masters in WordPress now. for the learning sake, i have started a project on my local server, Where user can register, login and upload images afterwards.
My Question is that, how do i organize all media uploads to a Category Base directory, all uploads should go to a specific directory based on user selection. If user selects "PLACES" category then the uploaded image/file should go to Places directory.
-Thanks
UPDATE
If the above option can not be achieved then how about creating a directory with post slug? like year/month/day/post-slug/images goes here
Only your written articles can be sorted by category.
Unfortunately there is no folder system for images. The only thing you can do is writing a post, import a image into the article and assign a category to the article. But anyway, assigning a category to a image is not necessary.
Related
TL;DR: Can I upload hundreds of files via WordPress (vanilla or with free/premium plugins) which will appear on my website as downloadable files, or would another CMS be better suited to this task?
More info: I'm building a site to replace an old WordPress MU site. My (non-technical) client needs to be able to create a single profile page for each of their employees. Each employee page must include some or all of:
A header image
A text intro
A photo gallery
A list of links
Multiple audio embeds
Multiple video embeds
A list of ~1000 downloadable files, mostly pdf/jpg, divided into subgroups
Ideally the last point would be achieved something like this:
Client adds a custom field and must name it
Client drags any number (realistically 1-100) of files onto the field, or uploads via "add files" function
Files are saved in the backend to a folder named after the custom field
File order is editable by client
The field is output to the HTML page like this:
<h1>Custom Field Name</h1>
<ul>
<li><a>file1.pdf</a></li>
<li><a>file2.jpg</a></li>
...~100
</ul>
Employee A is totally separate from Employee B, C, etc. All employees' pages will be managed by a single user. Their files should exist separately in the backend. The paths to their files will ideally include their name, but only the filename itself needs to be printed to the page. A file system like this would be perfect:
/EmployeeFirstName-EmployeeLastName/Media/YYYY/Filename.xxx
I believe WP's default media file save directories can be customised via plugins.
I'm trying to do this in WP because it's what I've used in the past and it's what my client is familiar with. A friend recommended the Advanced Custom Fields plugin for WP, which I am looking into. I'm an experienced designer but a beginner developer. I accept my naïveté and I'm keen to learn.
Possible structures:
A single WP install with a Page per employee
A Multisite WP install with a Site per employee
Other?
After much searching I'm beginning to think WP might not be a suitable platform for long and busy pages (~80 video embeds per page, added via ACF) with this type of file management requirement. The admin page for my test page is already very slow to update and I haven't even started the file list part.
Since the key feature of this page template will be the ability to list hundreds of downloadable files, it seems logical to me to pick a CMS based on that requirement, rather than pick a familiar CMS and try to force it to do what I want.
Thanks for reading!
I have used
Download Attachments plugin which provide facilities to upload attachment as post meta from admin panel and user can download it from front end. Try it might help you.
Guys where is a specific page located in a drupal site. i installed drupal inside htdocs. Lets say i want to edit a page manually, where to locate it?
As JarodMS and Tim have mentioned Drupal is a Content Management system. It would be more appropriate to say that it is a Database driven CMS. Which means that your data as well as the configuration goes into the database (which you provide while installation).
So, lets say you create a page from the UI of Drupal and the URL is
http://localhost/drupalsite/my-first-page,
here, my-first-page is a node(in Drupal's term) of a content type page and is stored in the database. If you are familiar with Object Oriented Programming, then think of a content type as a class and node as its instance.
If you want to see the content of the body, you have to see it database in the field_revision_body table; as Drupal will not store the data on drive as a PHP (or any other) page.
P.S: In future if you have any question regarding Drupal, it is advisable to ask it on the dedicated StackExchange site Drupal Answers(URL : http://drupal.stackexchange.com). You are likely to get quick help there :-)
Drupal is a CMS so it's content is stored in the database: http://drupal.org/documentation/understand
Once it's installed, it is best to just poke around the content and the site, not the source code.
Instruction on how to edit pages(nodes) on your Drupal 7 site.
Log into your site via www.mysite.com/user. Then go to the top menu bar >> click Content >>
You should see a view to edit or add content.
All nodes, all users and user profiles, all information OTHER than attached files (images, for example) are stored in the database.
Nodes are stored in the "node" and "node_revisions" tables. Information about book pages parents is stored in the "book" table. Comments are stored in the "comments" table. Users are stored in the "users" and "profile_values" table. Taxonomies user several tables that begin with "term".
Is there a way to let multiple users or a role upload photos to one single gallery in drupal 7?
The users can upload images to their own (self created) gallery at this moment, but I want them to be able to upload images in to a single general gallery too.
This is about a website for a small group (family) where every user is trusted.Its a kind of intranet.
All the content is added by the users them selfes, they can all make photo gallery's and add photo's to ther own gallery's.
but now I want them to be able to upload images in to a single general gallery too.
It's completely different depending on how you are doing the gallery.
The most common solution would be to simply create a content type with a file upload, then give permissions to create that content type for all the roles you want to be able to upload. Then the gallery itself would be a view -- there are many views plugins to make this happen if you don't want to style it up yourself.
Although the Organic Groups module can get a little involved, it's designed for grouping users with Group roles and permissions to specific nodes. Additionally, it has field access, which can limit certain roles to fields within those nodes rather than owning the whole node.
I want to be able to modify my Wordpress theme to be able to do exactly what this page does.
http://www.planetminecraft.com/resources/texture_packs/
I know first one would have to allow user uploads, but i would like to moderate them as well.
Does anyone know of a Wordpress plugin or solution to this problem?
ALSO: If possible, I need to add meta to the file upload (eg. Image, Title, Description)
Thanks in advance!
Afaik there's no plugin yet doing something like that. But maybe you can find one yourself in the wordpress plugin repository!
Depending on your programming skills, you could just write one yourself. The idea here would be to create a folder named as a auto-incrementing id, which is equal to an id in the database that you create simultaniously together with all the information stored in the DB.
I'm looking to find a WordPress plugin that ads an upload widget to my post editor to allow me to associate images with posts.
The end result is that I can add a bit of code to my theme's single.php file that allows me to load all of the images that reside in the folder matching the post id.
If no such plugin exists, I'm looking for some help on creating one.
Here's the way it would work..
Any images uploaded to a specific post, will go into a folder named after the post id. For example, if you are editing the post with id=420, the uploaded files will go into a folder named "420". There would also need to be some way to add or remove images from the folder without leaving the post editor (though FTP could be used for this as well).
To show post specific images, the single.php file checks to see if there is a folder under wp-content/uploads matching the post id. If it finds a match, it simply loads all the images it finds in the folder.
You can already attach images to a post without including them in the main content. You can do all of this in the main Edit Post window (the first icon next to "Upload/Insert" above the text editor. They are added with the post id as parent_id parameter, so the get_children function will give you all attached files.
This will store the images in the standard /wp-content/uploads/ folder, grouped by year and month (if you checked that option in the administration page). If you want to change the upload directory, you can use the upload_dir filter (slightly outdated parameter list) and return a different upload directory, for example with the post ID. The upload_dir filter is called from wp_upload_dir(), which is called by wp_handle_upload(), which is called by media_handle_upload(), which is called from the media-upload.php file.
If you want to extend this idea and check the upload dir for new files (uploaded via FTP for example), and attach these to the post, I suggest you look into the attachment functions.