Hi Tao!
Can you post something about how to do an SaaS app with Drupal?
I'm trying to do this but with no much success.
I wanna to do something like gmail you know. Something that I can put many users but this users can't see other users content. It will be a app for lawyers. They can put their jobs, they notes, etc..
But the real problem is that some group of lawyers(community, group, you know) can share they content. And other group cannot even know about the existence of that group. Do you understand me? It's hard? It's possible to do with Drupal?
Unfortunately Relationships seem to occur at a 1:1 level.
So say I a content type of FAQ, and it is extended with node ref. In an example node, I edit and add 4 nodereference links to other (related FAQs).
Now in Views, I have 2 choices:
a) I can build FOUR relationships, indexed by Delta, and arrive at my 4 values. But got help me if the content type allowed "unlimited" noderef links. :-)
b) I can have the views grab the raw output of Node Reference. Unfortunately, Node Reference output is pretty limited in that it does not present additional fields like NID and Title... it hardcodes a URL around the Title (and exposes no other data about the referred node). The /node/123 URLs are OK for simple Drupal sites, but if you use custom pathing (as is done with Panels pages) then you are stuck. In your Views templates however you can chop up the NodeRef URLs and reconstruct them as you needed... but it is a pain.
But if you need just 1 result from the Views Relationship, this IS a good solution. :-)
I noticed this was a download from a personal web site? Any plans to put this on drupal.org as a standard module? I think you'd attract more attention this way, as it would open it up to the whole drupal community process, and gain it more exposure.
In Drupal 6, you can also use $form_state['rebuild'] and $form_state['storage'], to rebuild the form along side with the results.
<?php
function find_path_form(&$form_state){ $form = ...build the form array... // show results if exists in $form_state['storage'] if(isset($form_state['storage']['results'])) { $form['results'] = array( '#value' => $form_state['storage']['results'] ); } return $form; }
function
find_path_form_submit($form_id, &$form_state){ // get submited parameters $submitedParams = $form_state['values']; // custom function to query database ang return results $results = find_path_results( $submitedParams ); // rebuilds form $form_state['rebuild'] = TRUE; // pass results to form $form_state['storage']['results'] = $results ; }
?>
Note that if $form_state['storage'] is populated, $form_state['rebuild'] is automatically set to TRUE.
it looks that "Drupal Wiki" is a professional but stand alone application. There is no single module or group of module you can install on your existing Drupal site.
For what it's worth, generally I won't consider using a module unless it's on drupal.org. Have you considered packaging and releasing it there? You may be limiting your user base otherwise.
Hey Tao! How funny... I was just Googling for this same information (I can never remember the arg) and happy to find you here. Hope the new gig is going well.
Saw your "Notes from BADCamp Eclipse Installfest" post, and wondered if you've been back recently to explore and re-evaluate the latest NetBeans release. I'd be very curious to hear an updated review, and I bet others would too.
Thanks for the post. I'd really like to get Drush working on Windows and have followed your steps, but get the following error when trying to run drush commands:
'PHP.exe' is not recognized as an internal or external command, operable program or batch file.
I use Wampserver2.0. Do you think that maybe the issue?
In the meantime there is a professional Drupal Wiki implementation available. It is based on Drupal 6.14 (unhacked) with some general plugins and a lot new (not yet released) ones. That wiki is aimed to compete in the enterprise wiki market, not only in the "mediawiki / dokuwiki" secotr.
I was looking for something exactly like this, and the video was great.
When I implemented a test, I get the 'Add New' as seen in the video, and it seems to work fine. However, if I click on a further 'Add New' within the popup itself, then it complains that pop-up chaining is not supported (yet).
Is chaining only in the alpha version, or is there some other configuration or restriction that I'm not respecting? Has anyone got chaining working using the 6.x-1.0 version of this module?
Is the 'alpha' version as ready for production as the regular version? In my case the general public is not entering data, so it doesn't have to be absolutely bulletproof.. they would rather have the chaining because it helps the workflow so much.
Thanks for a great module - and any pointers from anyone appreciated?
Thanks for this - I've been trying to figure this out for a while. However, I really want to limit the buttons on the top of the form to the node preview screen. In that way a user would be forced to preview the first node submission and then below the node preview they would be presented with a submit button so they don't have to scroll through the form again. If you could recommend something I'd really appreciate it.
I am using mollum instead of recaptcha (although the good deeds bit does motivate). Hope this comment doesn't get flagged as spam like my previous one ;)
Hi Tao!
Can you post something about how to do an SaaS app with Drupal?
I'm trying to do this but with no much success.
I wanna to do something like gmail you know. Something that I can put many users but this users can't see other users content. It will be a app for lawyers. They can put their jobs, they notes, etc..
But the real problem is that some group of lawyers(community, group, you know) can share they content. And other group cannot even know about the existence of that group. Do you understand me? It's hard? It's possible to do with Drupal?
Thanks for share.
Mayk Brito
http://mayk.brito.net.br
@maykbrito
Hi Louise! Small internet isn't it?
Unfortunately Relationships seem to occur at a 1:1 level.
So say I a content type of FAQ, and it is extended with node ref. In an example node, I edit and add 4 nodereference links to other (related FAQs).
Now in Views, I have 2 choices:
a) I can build FOUR relationships, indexed by Delta, and arrive at my 4 values. But got help me if the content type allowed "unlimited" noderef links. :-)
b) I can have the views grab the raw output of Node Reference. Unfortunately, Node Reference output is pretty limited in that it does not present additional fields like NID and Title... it hardcodes a URL around the Title (and exposes no other data about the referred node). The /node/123 URLs are OK for simple Drupal sites, but if you use custom pathing (as is done with Panels pages) then you are stuck. In your Views templates however you can chop up the NodeRef URLs and reconstruct them as you needed... but it is a pain.
But if you need just 1 result from the Views Relationship, this IS a good solution. :-)
I noticed this was a download from a personal web site? Any plans to put this on drupal.org as a standard module? I think you'd attract more attention this way, as it would open it up to the whole drupal community process, and gain it more exposure.
In Drupal 6, you can also use $form_state['rebuild'] and $form_state['storage'], to rebuild the form along side with the results.
<?php function find_path_form(&$form_state){$form = ...build the form array...
// show results if exists in $form_state['storage']
if(isset($form_state['storage']['results'])) {
$form['results'] = array(
'#value' => $form_state['storage']['results']
);
}
return $form;
}
function
find_path_form_submit($form_id, &$form_state){// get submited parameters
$submitedParams = $form_state['values'];
// custom function to query database ang return results
$results = find_path_results( $submitedParams );
// rebuilds form
$form_state['rebuild'] = TRUE;
// pass results to form
$form_state['storage']['results'] = $results ;
} ?>
Note that if $form_state['storage'] is populated, $form_state['rebuild'] is automatically set to TRUE.
Hello Tao,
Just came across this googling for the right command flag too! Hope you're well!
Louise
Newer version of PHP does not work with this.
See http://munim.tumblr.com/post/917355998/how-to-setup-xdebug-on-xampp-and-eclipse
you may also use
<?phpprint views_embed_view(...);
?>
it looks that "Drupal Wiki" is a professional but stand alone application. There is no single module or group of module you can install on your existing Drupal site.
Hi, I have seen many forums and blogs, none worked for me to configure Drush on Windows. Now I'm a happy drush user.
Thanks a lot.
Cheers,
Yojana
I like the idea of using markdown. Do you simply rely on straight html for links, or do you use another filter?
Thanks,
Sean
For what it's worth, generally I won't consider using a module unless it's on drupal.org. Have you considered packaging and releasing it there? You may be limiting your user base otherwise.
Hey,
I just wanted to say that I had a great time, and thank you volunteers for answering all most of my drupal questions.
Drupal Forever!
Hi,
just to let everyone know I have developed a new wiki module for Drupal based on PMWiki. See Drupal Wiki Module for details
Hey Tao! How funny... I was just Googling for this same information (I can never remember the arg) and happy to find you here. Hope the new gig is going well.
Best,
Scot
Here is a nice screencast on How to display the Drupal Contact form in a Nice Ajax Popup
Saw your "Notes from BADCamp Eclipse Installfest" post, and wondered if you've been back recently to explore and re-evaluate the latest NetBeans release. I'd be very curious to hear an updated review, and I bet others would too.
Thanks for the post. I'd really like to get Drush working on Windows and have followed your steps, but get the following error when trying to run drush commands:
'PHP.exe' is not recognized as an internal or external command, operable program or batch file.
I use Wampserver2.0. Do you think that maybe the issue?
In the meantime there is a professional Drupal Wiki implementation available. It is based on Drupal 6.14 (unhacked) with some general plugins and a lot new (not yet released) ones. That wiki is aimed to compete in the enterprise wiki market, not only in the "mediawiki / dokuwiki" secotr.
Have a look at http://drupal-wiki.com
I was looking for something exactly like this, and the video was great.
When I implemented a test, I get the 'Add New' as seen in the video, and it seems to work fine. However, if I click on a further 'Add New' within the popup itself, then it complains that pop-up chaining is not supported (yet).
Is chaining only in the alpha version, or is there some other configuration or restriction that I'm not respecting? Has anyone got chaining working using the 6.x-1.0 version of this module?
Is the 'alpha' version as ready for production as the regular version? In my case the general public is not entering data, so it doesn't have to be absolutely bulletproof.. they would rather have the chaining because it helps the workflow so much.
Thanks for a great module - and any pointers from anyone appreciated?
Thanks for this - I've been trying to figure this out for a while. However, I really want to limit the buttons on the top of the form to the node preview screen. In that way a user would be forced to preview the first node submission and then below the node preview they would be presented with a submit button so they don't have to scroll through the form again. If you could recommend something I'd really appreciate it.
The article is almost a year old. The situation is likely to have changed a lot by now.
Thanks, I have fixed the link.
I am using mollum instead of recaptcha (although the good deeds bit does motivate). Hope this comment doesn't get flagged as spam like my previous one ;)
You pust put me off trying ;)