I have a Drupal website and I want to add a page in the admin menu with a form that will generate reports, based on the users that answer some enigma, and allow data extraction.
How should I proceed to create the form and make the requests? Should I install a module like CCK to create the form and then use another module for the data extraction (in an excel file)?
Thanks for your help.
Frank
CCK and views can make this easy for you, but doing this, will create answers as content on the site. I'm not sure if this is desired, if it is, you can go ahead. You would be able to create the solution purely be setting up the modules.
If you don't want users answers to be content of the site, but only accessible by admings, you should consider the webform modules, which will allow you to easily create custom forms that users can submit and save the data. I don't think that webform has built in support for views, or data extraction, but this could be accomplished in a custom module.
I have tried to expose tables to views in order to use it to do just this and have created CSV files myself in custom modules. It requires some special knowledge to do this, but once you get that, you can do it pretty quickly. If you have troubles with Drupal and PHP development, this will be a hard task though.
The Views module will allow for creating of reports. It has several plug ins which allow for the data to be downloaded as csv, xls and so on.
Related
I was wondering if I could i ask the best way forward. I am making a joomla site which will have an advanced registration form. Which I am planning to create with rsform pro. What would be the best method for people to able to search those registered users on the front page .
Any other method that one could or would advice rather than rsform pro like some extension that would ease both the registration and searching as a single component. The search function also needs to be multi optioned. I am trying to take the most informed decision before I start with the coding.
Thank you.
Easy Profile does a great job of this:
https://extensions.joomla.org/extension/easy-profile
See the example at https://www.easy-profile.com/users-list.html for a searchable user list.
You'll need the paid version for custom fields.
I think you can try JoomProfile. Is seems quite useful extension for joomla user profile management. If also has good and fast search http://demo.function90.com/joom-profile/search-in-joom-profile.html
Joomla already has some search components, so the best thing to do is to use it. Actually there is two components that you can use
Search, based on com_search component which do the work on the fly
Advanced search, based on com_finder component which index data and give it back after, it is more efficient and has more functionalities
In both case, you'll have to write a plugin to search user, joomla doesn't have it by default (or you can search some on joomle extensions).
I am working on creating a Joomla based web service that is easy to use. The end goal is to allow customers the ability to manage the site from the front-end with no back-end (administrator) access. To accomplish this task I am using K2 that has existing front-end editing. Then behind the scenes we will provide technical support. Essentially, non-techy customers can easily manage their site, with us managing the tech side of things.
I need to provide a few forms (Contact, Event registration/payment and Donation payment). These forms also require that certain aspects of the forms can be updated via the front-end leveraging K2. (eg. The email address to send form submissions to.) With most forms components this can be done easily from the admin panel, however this is too complicated for non-techy customers and means we would have to provide admin access instead of just front-end. Not a good solution.
I have created a K2 contact Form plugin that will allow a customer to update where the email is sent on submission, when logged into the front-end with correct permissions. So far so good. I chose a plugin to accomplish this so we could leverage the existing front-end editing.
The issue I ran into is how to make my plugin create a table, preferably on install, as well as save form data to that table on successful submission. I'm not sure that this is possible using a plugin and have not found any documentation or sources mentioning how to accomplish this task.
I was hoping someone may be able to confirm either way if this is possible? Any suggestions, comments, etc would be greatly appreciated.
While installing plugin you can create DB tables, Its not a big deal create the SQL file with proper table query and set that inside your XML file.
Also you can create a forms(with many fields) inside your plugin file, But the problem is you should have any components controller and model related to this form submission task. Bcoz form submission you cannot handle inside plugin file, it should required a controller and model files.
So basically your plugin have related components then you can achieve it with form action like below.
<form action="index.php?option=com_yourcomponent&task=your_controller.your_function">
For creating DB table while installing plugin check this link
Hope its helps..
Greetings all,
I just wanted to know what is the proper way to do template's in Joomla?
If i have four boxes in footer (4 columns) how can i automate them in the template so their content inside can be managed from the back-end?
So far, i have seen custom html block modules and using those. But wouldn't it be funny if there are loads of such blocks and than managing them from modules individually?
Now suppose if i have a slogan/tag line for my website; and i want it to be managed from backend.. Do i need to create that custom block even for such single line?
May be i am going to wrong direction. Can someone guide me please?
Regards,
Jhon.
A Joomla template is simply a map the outlines the various positions that available to put modules in. These positions are built around the component display area. You can load basically anything you want in to a module position. You will probably need to download some modules from the Joomla Extension Directory, there are tons of options.
The Custom HTML module is appropriate for simple content that is not going to change very often. This would be good for a company tag line that doesn't ever change. There are various modules that would allow you to load content from the latest Joomla articles based on section or category. There are modules for login forms, stock prices, RSS feeds, weather, all kinds of stuff.
I have a small project for which I need to offer a CMS UI/storage system.
I am guessing that I can have my computer-fearing client use the Wordpress UI to store a set of images for her gallery page, and a set of text for her testimonials page. And then, through a Wordpress function, or raw SQL query into the database, I can get the data that I need on the page.
If this is possible, how do I do this?
We use the Pods CMS Wordpress plugin to help us create custom data fields for our site, for areas where the typical post/page structure just isn't appropriate.
Like everything else in Wordpress, Pods is a little rough around the edges, but it does provide a fairly simplistic interface for pulling information out of a database, without the need for raw SQL, or bolting together custom fields for a post.
A simple example for looping over records might look like:
$mypod = new Pod('mypod');
$mypod->findRecords('date ASC', 15) // ORDER BY date ASC, LIMIT 15
while ($mypod->fetchRecord()) {
$image = $mypod->get_field('image')
...
}
It also supports a basic set of relationships between Pod objects.
You can either just create your own theme/template for Wordpress, or you can create your own frontend altogether with raw SQL queries. The database layout is rather simple so it shouldn't be impossible to create your own system.
But consider the theme solution first because I think it's both easier for you (not needing to reinvent the wheel) and better for security (easy to use the built-in functionality for security updates).
So, WordPress 3.0 is getting to the point where it is no longer just a blogging platform, but almost a fullblown CMS. For her testimonial pages, or about me, contact, etc, you can use WordPress. Instead of creating new entries, just have her (or you) create pages.
For the gallery, there is an open source project called Gallery that you can use that would allow the client to upload and manage their own photos. In WordPress, just create a new menu item and link to the Gallery installation you have.
i want to create a custom form with some fields that i could add/edit/delete on database
how integrate my form with wordpress?
do you know a website ,that have a tutorial about this process ?
thanks
There are plugins that allow you to create custom forms (cformsII), and with some additional PHP knowledge you can retrieve the data using their API. I found this tutorial that quickly goes through installing, configuring and retrieving data from this plugin. That same page also listed some additional forms plugins that are worth looking at.
Another option is to do this using HTML and PHP without the use of a plugin. The following link will give you some insight in how to start and some code that can get you started:
http://www.paulmc.org/whatithink/2009/02/05/using-wordpress-templates-to-create-forms/
Note: There is a plugin called Formidable but only the Pro version allows you to easily retrieve the data from the database.
This is a really involved question, so it shouldn't be asked here.
P.S. Not specific to WordPress but http://teamtutorials.com/web-development-tutorials/php-tutorials/inserting-data-into-a-mysql-database-using-php