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".
Related
Client has a database table that is not a part of their wordpress environment but is alongside their other WP Tables (multiple departments access it). They'd like to use the wordpress admin interface to access a form so they can add content to this non-wordpress table (some other department pulls data from it).
Scenario:
The user logs into their WP Admin area
They click the link "Bob's Crab Shack" link from the left nav bar
They fill out the form and click save
The other department would have their own CRUD UI (not my concern).
Is this possible? If so, any guides or tutorials on how to set this up? Wordpress (PHP) isn't my primary coding language.
Wordpress isn't a language ;-)
Is this possible?
Sure, this isn't that hard to do.
Create an admin page: Normal menu page or a Submenu page.
Create the HTML form and PHP submit-logic.
Because all DB tables are in the same DB you can use $wpdb for DB processing (does al the heavy lifting for you), more info here.
Regards, Bjorn
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.
I am new to Drupal. I am working with a preexisting website that has a couple dozen staff bloggers. Some of the bloggers need to have all of their posts migrated out to a database (the CMS they will be imported to is not yet known).
I have looked into a few modules for backups, but they don't seem to have the ability to choose what exactly is exported.
If anyone could give me some advice or direct me to an appropriate module, that would be fantastic!
You can do it easily with Views and Views Data Export modules.
However, you will need to learn a little about Views before making use of the Data Export module. You can follow some quick tutorials. You will not need any coding skills but concentrate on Views UI , Filters and Arguments.
Make a View on node as primary content, and add a filter (or an argument if you want to take the user ID from URL) for User: UID and add fields you want to get exposed as Fields. Then, in the style settings, choose "Data Export". Create a page display and give it a path.
You can also make the form advanced with exposed filters.
I want to allow members of a Drupal website to upload their own content to the site (something like a blog post or questionnaire), but have it visible only to themselves (hidden from other members with the same role). The idea is to have them store some personal content that other members don't need to see, but that only the author member would need to see (or have access to) when using the site.
What modules would I need to use? Or how could I go about setting that up?
You can do this easily with http://drupal.org/project/content_access
I don't know if you've already solved this problem, but I recently did something similar with a shared blog in Drupal 7. I wanted users to have both private and public blog posts. I used the Save Draft module (http://drupal.org/project/save_draft) to add an extra button to the content editing screen, which I called Save (Unpublished) rather than "Save Draft" -- I used the String Overrides module to make that happen (http://drupal.org/project/stringoverrides). In the admin panel for permissions, Authenticated users were granted to right to view and edit their own unpublished items. Users could thus save their blog posts in a way that others could not see them. Then I used Views (http://drupal.org/project/views) to create a list view that used the criteria content type = blog, state = unpublished, and content author = current user. This gives users a list of their unpublished blog posts.
The https://drupal.org/project/view_own module handles this exactly the way you are looking for.
I am working on a Rental Home Listing website, where "Rental Home" is a content type with CCK fields.
I want to add a new field called 'Maintenance Log', which will be accessible only to the administrators and will be used to keep track of all maintenance work done on a home; it would have some functionalities a spreadsheet has.
I have already tried SheetNode & table types, but I ran into issues. Can anyone suggest a better alternative to implement this?
I would recommend using the node_reference module which ships with CCK so all you have to do is enable it.
you would then create a new content type for maintenance logs, add a node_reference field to it that can reference nodes of type "Rental Home".
when someone has performed maintenance work on a home they would simply create a new maintenance log and use the reference field to reference the house in question.
then you can display these in a suitable way, using Views or the like.
if you'd like you can use the content access module to handle who can view the maintencene logs. you should also look at the content permissions module which also ships with CCK, it will allow you to specify access to specific CCK fields instead of the entire content type.