From matt at mattfarina.com Mon Jun 1 03:41:37 2009 From: matt at mattfarina.com (Matt Farina) Date: Sun, 31 May 2009 23:41:37 -0400 Subject: [development] behaviors context In-Reply-To: <70fbbb000905291330j5115615am8a913b579510acf@mail.gmail.com> References: <70fbbb000905291234s4de92a1cu3df6413034051d6b@mail.gmail.com> <16d801c9e097$fa5de1f0$0200a8c0@structworks.com> <70fbbb000905291330j5115615am8a913b579510acf@mail.gmail.com> Message-ID: > The problem occurs only when you assume the context is passing > sufficient information for your behavior. The context may in fact be > providing less information than you need, and you are at the liberty > of whatever called attachBehavior() in the first place (which may not > be something in core -- there's no way to tell). Consequently, it's > better to rely on the document itself, not just the context. Sometimes you can't just rely on the document. For an example see the popups module. It attaches the behaviors to the body of the popup window. If a popup is built from an AHAH callback you wouldn't want to reapply the behaviors to the entire document for a popup that's just part of it. You'd want to apply it to just the new area. If someone misuses attachBehaviors() should the behaviors be required to deal with that? They can't foresee everything and there are times where you want to attach behaviors to something other than the document. If they misuse attachBehaviors that would be a bug in their code. From yahgrp at poplarware.com Mon Jun 1 23:34:01 2009 From: yahgrp at poplarware.com (Jennifer Hodgdon) Date: Mon, 01 Jun 2009 16:34:01 -0700 Subject: [development] Coding standards question Message-ID: <4A246569.2040006@poplarware.com> Comments are requested regarding coding standards in this issue: http://drupal.org/node/358824 Please comment there rather than replying to this email message, so we can track opinions on the issue; I've sent this message to the Dev list because the issue is in the Doc issue queue, and might not have been noticed by developers. For your reference, the question is on PHP coding style, primarily for themes: vs. (i.e. should one-liners have a trailing semi-colon?) There's nothing in the coding style guidelines (for plugins or themes) that currently addresses this question. Thanks! Jennifer (jhodgdon) From larry at garfieldtech.com Wed Jun 3 05:16:56 2009 From: larry at garfieldtech.com (Larry Garfield) Date: Wed, 3 Jun 2009 00:16:56 -0500 Subject: [development] PHP standards? Message-ID: <200906030016.56605.larry@garfieldtech.com> There's an interesting development in the PHP world that may be of interest to folks here: http://www.leftontheweb.com/message/The_PHP_standards_initiative http://www.travisswicegood.com/index.php/2009/06/02/my-goals-for-the-php- standards-group http://www.phpclasses.org/blog/post/96-PHP-standards-discussion-group-opens- to-the-world.html The mailing list in question is archived here: http://news.php.net/php.standards/ The initial "standard" is here: http://news.php.net/php.standards/2 I've already replied from a Drupal perspective here: http://news.php.net/php.standards/40 As a supporter of inter-project cooperation and the use of industry standard approaches, I figured it was relevant. :-) Just want to make sure everyone is kept in the loop. -- Larry Garfield larry at garfieldtech.com From pierre.rineau at makina-corpus.com Sat Jun 6 21:23:26 2009 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Sat, 06 Jun 2009 23:23:26 +0200 Subject: [development] Coding standards question In-Reply-To: <4A246569.2040006@poplarware.com> References: <4A246569.2040006@poplarware.com> Message-ID: <1244323406.2763.6.camel@blaster> I usually write the ";", because I do a lot of development, and for me, it has no sens to write an instruction without this to end it. But, as without it works, do what you want. Some people may say that it might be less readable, I just think this is more consistent to write it down. Pierre. On Mon, 2009-06-01 at 16:34 -0700, Jennifer Hodgdon wrote: > Comments are requested regarding coding standards in this issue: > http://drupal.org/node/358824 > Please comment there rather than replying to this email message, so we > can track opinions on the issue; I've sent this message to the Dev > list because the issue is in the Doc issue queue, and might not have > been noticed by developers. > > For your reference, the question is on PHP coding style, primarily for > themes: > > vs. > > (i.e. should one-liners have a trailing semi-colon?) > > There's nothing in the coding style guidelines (for plugins or themes) > that currently addresses this question. > > Thanks! > Jennifer (jhodgdon) > > From earnie at users.sourceforge.net Sun Jun 7 00:49:10 2009 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Sun, 07 Jun 2009 00:49:10 +0000 Subject: [development] Coding standards question In-Reply-To: <1244323406.2763.6.camel@blaster> References: <4A246569.2040006@poplarware.com> <1244323406.2763.6.camel@blaster> Message-ID: <20090607004910.103920felocwwask@mail.siebunlimited.com> Quoting Pierre Rineau : > I usually write the ";", because I do a lot of development, and for me, > it has no sens to write an instruction without this to end it. > > But, as without it works, do what you want. Some people may say that it > might be less readable, I just think this is more consistent to write it > down. > It might not always work depending on the order of statements and the order of included files. Always include the ';' to end the statement is the best choice. -- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ From victorkane at gmail.com Sun Jun 7 07:38:09 2009 From: victorkane at gmail.com (Victor Kane) Date: Sun, 7 Jun 2009 04:38:09 -0300 Subject: [development] Coding standards question In-Reply-To: <20090607004910.103920felocwwask@mail.siebunlimited.com> References: <4A246569.2040006@poplarware.com> <1244323406.2763.6.camel@blaster> <20090607004910.103920felocwwask@mail.siebunlimited.com> Message-ID: The other reason it's always best to include the ";" is that you can add statements after it easily, and/or move that statement around without having to worry about adding an ';'. There is a similar question with the "," of the last array member. Victor Kane http://awebfactory.com.ar On Sat, Jun 6, 2009 at 9:49 PM, Earnie Boyd wrote: > Quoting Pierre Rineau : > > I usually write the ";", because I do a lot of development, and for me, >> it has no sens to write an instruction without this to end it. >> >> But, as without it works, do what you want. Some people may say that it >> might be less readable, I just think this is more consistent to write it >> down. >> >> > It might not always work depending on the order of statements and the order > of included files. Always include the ';' to end the statement is the best > choice. > > -- > Earnie > -- http://r-feed.com/ -- http://for-my-kids.com/ > -- http://www.4offer.biz/ -- http://give-me-an-offer.com/ > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.rineau at makina-corpus.com Sun Jun 7 09:16:59 2009 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Sun, 07 Jun 2009 11:16:59 +0200 Subject: [development] Coding standards question In-Reply-To: References: <4A246569.2040006@poplarware.com> <1244323406.2763.6.camel@blaster> <20090607004910.103920felocwwask@mail.siebunlimited.com> Message-ID: <1244366219.2763.7.camel@blaster> Totally agree with this statement. On Sun, 2009-06-07 at 04:38 -0300, Victor Kane wrote: > The other reason it's always best to include the ";" is that you can > add statements after it easily, and/or move that statement around > without having to worry about adding an ';'. > > There is a similar question with the "," of the last array member. > > Victor Kane > http://awebfactory.com.ar > > On Sat, Jun 6, 2009 at 9:49 PM, Earnie Boyd > wrote: > Quoting Pierre Rineau : > > I usually write the ";", because I do a lot of > development, and for me, > it has no sens to write an instruction without this to > end it. > > But, as without it works, do what you want. Some > people may say that it > might be less readable, I just think this is more > consistent to write it > down. > > > > It might not always work depending on the order of statements > and the order of included files. Always include the ';' to > end the statement is the best choice. > > -- > Earnie > -- http://r-feed.com/ -- http://for-my-kids.com/ > -- http://www.4offer.biz/ -- > http://give-me-an-offer.com/ > > > From drupal at dwwright.net Sun Jun 7 16:33:12 2009 From: drupal at dwwright.net (Derek Wright) Date: Sun, 7 Jun 2009 09:33:12 -0700 Subject: [development] Coding standards question In-Reply-To: <4A246569.2040006@poplarware.com> References: <4A246569.2040006@poplarware.com> Message-ID: <37E67BDC-E9D0-4345-9978-BEEAD556F3BC@dwwright.net> On Jun 1, 2009, at 4:34 PM, Jennifer Hodgdon wrote: > Comments are requested regarding coding standards in this issue: > http://drupal.org/node/358824 > Please comment there rather than replying to this email message, so > we can track opinions on the issue; Folks: this email thread is over. The issue has long since been resolved by people who read the first two sentences of the thread and replied at the issue. Thanks, -Derek (dww) From dennis.iversen at gmail.com Tue Jun 9 18:03:00 2009 From: dennis.iversen at gmail.com (Dennis Iversen) Date: Tue, 9 Jun 2009 20:03:00 +0200 Subject: [development] a Drupal site installer like the a2ensite script for Debian systems? Message-ID: <9d291ab00906091103s39ba6e22i739269bfec0765a9@mail.gmail.com> I recently started to look into Drupal and into the Drush project. I have made a Drush extension for enabling websites on a Debian based server. Both enabling standalone sites and sites that uses a shared drupal base. It can also list the sites you already have installed. The 'densite' script creates virtual host configuration for drupal-5.x and drupal-6.x sites and reloads Apache. The script sets good permissions for your file folder (e.g. 770) and your settings.php (e.g. 740) file. I was thinking about making a project out of it and commit it. Opinions, suggestions, about this? If you need more info before saying anything, you can find more info on the following link, and also download a version of the script. http://www.os-cms.net/node/46 Gettings from Dennis From andrewberry at sentex.net Tue Jun 9 18:25:52 2009 From: andrewberry at sentex.net (Andrew Berry) Date: Tue, 9 Jun 2009 14:25:52 -0400 Subject: [development] a Drupal site installer like the a2ensite script for Debian systems? In-Reply-To: <9d291ab00906091103s39ba6e22i739269bfec0765a9@mail.gmail.com> References: <9d291ab00906091103s39ba6e22i739269bfec0765a9@mail.gmail.com> Message-ID: On 9-Jun-09, at 2:03 PM, Dennis Iversen wrote: > I recently started to look into Drupal and into the Drush project. I > have made a Drush extension for enabling websites on a Debian based > server. You might be interested in collaborating with the Aegir project. http://groups.drupal.org/aegir-hosting-system -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2672 bytes Desc: not available URL: From enboig at gmail.com Thu Jun 11 09:07:44 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Thu, 11 Jun 2009 11:07:44 +0200 Subject: [development] adding a delete tab on some content types Message-ID: <45a29f450906110207r12f0afb0qdb6c7b7c06c8b01b@mail.gmail.com> I need to add a "delete" tab for some content types, but I can't figure out what 'file' should be; if I use "drupal_get_path('module', 'node').'/node.pages.inc'" I get 'sites/all/modules/my_module/node/node.pages.inc' $items['node/%/delete_tab'] = array( 'title' => t('delete'), 'page callback' => 'drupal_get_form', 'page arguments' => array('node_delete_confirm', 1), 'access callback' => TRUE, // 'node_access', 'access arguments' => array('delete', 1), 'file' => drupal_get_path('module', 'node').'/node.pages.inc', 'weight' => 1, 'type' => MENU_LOCAL_TASK, ); -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From damz at prealable.org Thu Jun 11 09:13:25 2009 From: damz at prealable.org (Damien Tournoud) Date: Thu, 11 Jun 2009 11:13:25 +0200 Subject: [development] adding a delete tab on some content types In-Reply-To: <45a29f450906110207r12f0afb0qdb6c7b7c06c8b01b@mail.gmail.com> References: <45a29f450906110207r12f0afb0qdb6c7b7c06c8b01b@mail.gmail.com> Message-ID: You will need to use 'file path', like this: $items['node/%/delete_tab'] = array( 'title' => t('delete'), 'page callback' => 'drupal_get_form', 'page arguments' => array('node_delete_confirm', 1), 'access callback' => TRUE, // 'node_access', 'access arguments' => array('delete', 1), 'file path' => drupal_get_path('module', 'node'), 'file' => 'node.pages.inc', 'weight' => 1, 'type' => MENU_LOCAL_TASK, ); Damien Tournoud On Thu, Jun 11, 2009 at 11:07 AM, Llu?s wrote: > I need to add a "delete" tab for some content types, but I can't > figure out what 'file' should be; if I use "drupal_get_path('module', > 'node').'/node.pages.inc'" I get > 'sites/all/modules/my_module/node/node.pages.inc' > > $items['node/%/delete_tab'] = array( > 'title' => t('delete'), > 'page callback' => 'drupal_get_form', > 'page arguments' => array('node_delete_confirm', 1), > 'access callback' => TRUE, // 'node_access', > 'access arguments' => array('delete', 1), > 'file' => drupal_get_path('module', 'node').'/node.pages.inc', > 'weight' => 1, > 'type' => MENU_LOCAL_TASK, > ); > > > -- > *La vida ?s com una taronja, qu? esperes a exprimir-la? > *Si creus que l'educaci? ?s cara, prova la ignor?ncia. > *La vida ?s com una moneda, la pots gastar en el que vulguis per? > nom?s una vegada. > *Abans d'imprimir aquest missatge, pensa en el medi ambient. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From enboig at gmail.com Thu Jun 11 10:26:45 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Thu, 11 Jun 2009 12:26:45 +0200 Subject: [development] adding a delete tab on some content types In-Reply-To: References: <45a29f450906110207r12f0afb0qdb6c7b7c06c8b01b@mail.gmail.com> Message-ID: <45a29f450906110326j64944333m651be05c611a7c41@mail.gmail.com> ok, it works now thanks On Thu, Jun 11, 2009 at 11:13 AM, Damien Tournoud wrote: > You will need to use 'file path', like this: > > ?$items['node/%/delete_tab'] = array( > ? ?'title' => t('delete'), > ? ?'page callback' => 'drupal_get_form', > ? ?'page arguments' => array('node_delete_confirm', 1), > ? ?'access callback' => TRUE, // 'node_access', > ? ?'access arguments' => array('delete', 1), > ?? 'file path' => drupal_get_path('module', 'node'), > ? ?'file' => 'node.pages.inc', > ? ?'weight' => 1, > ? ?'type' => MENU_LOCAL_TASK, > ?); > > Damien Tournoud > > On Thu, Jun 11, 2009 at 11:07 AM, Llu?s wrote: >> >> I need to add a "delete" tab for some content types, but I can't >> figure out what 'file' should be; if I use "drupal_get_path('module', >> 'node').'/node.pages.inc'" I get >> 'sites/all/modules/my_module/node/node.pages.inc' >> >> ?$items['node/%/delete_tab'] = array( >> ? ?'title' => t('delete'), >> ? ?'page callback' => 'drupal_get_form', >> ? ?'page arguments' => array('node_delete_confirm', 1), >> ? ?'access callback' => TRUE, // 'node_access', >> ? ?'access arguments' => array('delete', 1), >> ? ?'file' => drupal_get_path('module', 'node').'/node.pages.inc', >> ? ?'weight' => 1, >> ? ?'type' => MENU_LOCAL_TASK, >> ?); >> >> >> -- >> *La vida ?s com una taronja, qu? esperes a exprimir-la? >> *Si creus que l'educaci? ?s cara, prova la ignor?ncia. >> *La vida ?s com una moneda, la pots gastar en el que vulguis per? >> nom?s una vegada. >> *Abans d'imprimir aquest missatge, pensa en el medi ambient. > > -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From michael at favias.org Thu Jun 11 14:52:59 2009 From: michael at favias.org (Michael Favia) Date: Thu, 11 Jun 2009 09:52:59 -0500 Subject: [development] adding a delete tab on some content types In-Reply-To: <45a29f450906110207r12f0afb0qdb6c7b7c06c8b01b@mail.gmail.com> References: <45a29f450906110207r12f0afb0qdb6c7b7c06c8b01b@mail.gmail.com> Message-ID: <4A311A4B.6000403@favias.org> Llu?s wrote: > I need to add a "delete" tab for some content types, but I can't > figure out what 'file' should be; if I use "drupal_get_path('module', > 'node').'/node.pages.inc'" I get > 'sites/all/modules/my_module/node/node.pages.inc' > Wrote this functioning patch to promote delete to a MENU_LOCAL_TASK for D7 but was eventually shot down by webchick over concerns that the usability work of Mark and Leisa might eventually take us in another direction. I disagree with holding up real world patches that fix existing bugs (sufficiently privileged users cant delete their content if the don't also have edit permission) and make incremental improvements because someones ideas (not code) for the future MIGHT disagree with it. My next step was to introduce modal popups for confirmations and ditch the page reloads for "Are you sure?" If you think this would be useful or an improvement your voice would be appreciated on the issue. http://drupal.org/node/196758 -mf From vladradulov at gmail.com Thu Jun 11 16:28:38 2009 From: vladradulov at gmail.com (Vladimir Radulovski) Date: Thu, 11 Jun 2009 18:28:38 +0200 Subject: [development] adding a delete tab on some content types In-Reply-To: <4A311A4B.6000403@favias.org> References: <45a29f450906110207r12f0afb0qdb6c7b7c06c8b01b@mail.gmail.com> <4A311A4B.6000403@favias.org> Message-ID: <453e124b0906110928m62754552k5b9b78e32e48834b@mail.gmail.com> there is a contrib module admin_links that does this - is this helpful in some way? On Thu, Jun 11, 2009 at 4:52 PM, Michael Favia wrote: > Llu?s wrote: > >> I need to add a "delete" tab for some content types, but I can't >> figure out what 'file' should be; if I use "drupal_get_path('module', >> 'node').'/node.pages.inc'" I get >> 'sites/all/modules/my_module/node/node.pages.inc' >> >> > Wrote this functioning patch to promote delete to a MENU_LOCAL_TASK for D7 > but was eventually shot down by webchick over concerns that the usability > work of Mark and Leisa might eventually take us in another direction. I > disagree with holding up real world patches that fix existing bugs > (sufficiently privileged users cant delete their content if the don't also > have edit permission) and make incremental improvements because someones > ideas (not code) for the future MIGHT disagree with it. My next step was to > introduce modal popups for confirmations and ditch the page reloads for "Are > you sure?" If you think this would be useful or an improvement your voice > would be appreciated on the issue. http://drupal.org/node/196758 -mf > -- "???? ???-?? ????? ??????, ??? ?????? ??? ????. ???? ??? ?? ????? ??????..." - ???????? ?? ?????-???????? - http://levashov.info -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.rineau at makina-corpus.com Sat Jun 6 21:23:26 2009 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Sat, 06 Jun 2009 23:23:26 +0200 Subject: [development] Coding standards question In-Reply-To: <4A246569.2040006@poplarware.com> References: <4A246569.2040006@poplarware.com> Message-ID: <1244323406.2763.6.camel@blaster> I usually write the ";", because I do a lot of development, and for me, it has no sens to write an instruction without this to end it. But, as without it works, do what you want. Some people may say that it might be less readable, I just think this is more consistent to write it down. Pierre. On Mon, 2009-06-01 at 16:34 -0700, Jennifer Hodgdon wrote: > Comments are requested regarding coding standards in this issue: > http://drupal.org/node/358824 > Please comment there rather than replying to this email message, so we > can track opinions on the issue; I've sent this message to the Dev > list because the issue is in the Doc issue queue, and might not have > been noticed by developers. > > For your reference, the question is on PHP coding style, primarily for > themes: > > vs. > > (i.e. should one-liners have a trailing semi-colon?) > > There's nothing in the coding style guidelines (for plugins or themes) > that currently addresses this question. > > Thanks! > Jennifer (jhodgdon) > > From pierre.rineau at makina-corpus.com Sun Jun 7 09:16:59 2009 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Sun, 07 Jun 2009 11:16:59 +0200 Subject: [development] Coding standards question In-Reply-To: References: <4A246569.2040006@poplarware.com> <1244323406.2763.6.camel@blaster> <20090607004910.103920felocwwask@mail.siebunlimited.com> Message-ID: <1244366219.2763.7.camel@blaster> Totally agree with this statement. On Sun, 2009-06-07 at 04:38 -0300, Victor Kane wrote: > The other reason it's always best to include the ";" is that you can > add statements after it easily, and/or move that statement around > without having to worry about adding an ';'. > > There is a similar question with the "," of the last array member. > > Victor Kane > http://awebfactory.com.ar > > On Sat, Jun 6, 2009 at 9:49 PM, Earnie Boyd > wrote: > Quoting Pierre Rineau : > > I usually write the ";", because I do a lot of > development, and for me, > it has no sens to write an instruction without this to > end it. > > But, as without it works, do what you want. Some > people may say that it > might be less readable, I just think this is more > consistent to write it > down. > > > > It might not always work depending on the order of statements > and the order of included files. Always include the ';' to > end the statement is the best choice. > > -- > Earnie > -- http://r-feed.com/ -- http://for-my-kids.com/ > -- http://www.4offer.biz/ -- > http://give-me-an-offer.com/ > > > From mistknight at gmail.com Sun Jun 14 20:32:01 2009 From: mistknight at gmail.com (Ashraf Amayreh) Date: Sun, 14 Jun 2009 23:32:01 +0300 Subject: [development] displaying all menus regardless of access Message-ID: Hello all, I guess my question is pretty simple. I've run into a scenario where a site wants all primary menu items to show up regardless of access rights. When a user clicks on the menu item, he would get a message saying he needs to register to see this page. Is this possible at all? I know that the primary menu items disappear when they're inaccessible. Thoughts? I guess the 2nd part of the question is, my module for 5.x used to render the complete menu (honoring menu access rights) to create a DHTML menu. But now in Drupal 6 it seems there's no way to get inside collapsed menu items. Am I missing something? How can I get the full tree rendered regardless of its state (collapsed or not)? Thanks! -- Ashraf Amayreh http://aamayreh.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at brianvuyk.com Mon Jun 15 03:15:56 2009 From: brian at brianvuyk.com (Brian Vuyk) Date: Sun, 14 Jun 2009 23:15:56 -0400 Subject: [development] displaying all menus regardless of access In-Reply-To: References: Message-ID: <4A35BCEC.1000306@brianvuyk.com> With respect to the first part of your post, there is one way I can think of to accomplish this: If you create each menu item as an absolute link (e.g., http://www.example.com/node/1), it bypasses the access checks. This is technically a bug; it's in the tracker, and will likely be fixed for D7. However, it works for now. It would be nice to see an option for menus such as 'Hide links unavailable to user' or similar that allowed the access-based showing and hiding of menu items. -- *Brian Vuyk* Web Design & Development T: 613-534-2916 Skype: brianvuyk brian at brianvuyk.com | http://www.brianvuyk.com On 06/14/2009 04:32 PM, Ashraf Amayreh wrote: > Hello all, > > I guess my question is pretty simple. I've run into a scenario where a > site wants all primary menu items to show up regardless of access > rights. When a user clicks on the menu item, he would get a message > saying he needs to register to see this page. Is this possible at all? > I know that the primary menu items disappear when they're inaccessible. > > Thoughts? > > I guess the 2nd part of the question is, my module for 5.x used to > render the complete menu (honoring menu access rights) to create a > DHTML menu. But now in Drupal 6 it seems there's no way to get inside > collapsed menu items. Am I missing something? How can I get the full > tree rendered regardless of its state (collapsed or not)? > > Thanks! > -- > Ashraf Amayreh > http://aamayreh.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From karoly at negyesi.net Mon Jun 15 05:27:13 2009 From: karoly at negyesi.net (Karoly Negyesi) Date: Sun, 14 Jun 2009 22:27:13 -0700 Subject: [development] displaying all menus regardless of access In-Reply-To: <4A35BCEC.1000306@brianvuyk.com> References: <4A35BCEC.1000306@brianvuyk.com> Message-ID: <7e270cea0906142227o5fae5735j1e6955d17530e866@mail.gmail.com> Going around the menu system is almost the surefire way too secholes. Putting up a smart 403 page, however, is the solution for your problem. Check whether you are on one of the primary links (quick cheap query, i guess) and act accordingly. From arancaytar.ilyaran at gmail.com Mon Jun 15 07:06:48 2009 From: arancaytar.ilyaran at gmail.com (Arancaytar Ilyaran) Date: Mon, 15 Jun 2009 09:06:48 +0200 Subject: [development] displaying all menus regardless of access In-Reply-To: References: Message-ID: <4A35F308.9040707@gmail.com> Ashraf Amayreh wrote: > I guess the 2nd part of the question is, my module for 5.x used to > render the complete menu (honoring menu access rights) to create a DHTML > menu. But now in Drupal 6 it seems there's no way to get inside > collapsed menu items. Am I missing something? How can I get the full > tree rendered regardless of its state (collapsed or not)? menu_tree_all_data(). I used this same function when I ported http://drupal.org/project/dhtml_menu to Drupal 6. -- eternity lies ahead of us, and behind. have you drunk your fill? * * * PGP: http://ermarian.net/downloads/0x27CA5C74 XMPP: arancaytar.ilyaran at gmail.com AOL: 282026638 @icq / RealArancaytar @aim URL: http://ermarian.net From steven at digitalpulp.com Mon Jun 15 13:15:19 2009 From: steven at digitalpulp.com (Steven Surowiec) Date: Mon, 15 Jun 2009 09:15:19 -0400 Subject: [development] Email on error Message-ID: <4A364967.5070104@digitalpulp.com> I've looked around drupal.org and couldn't find any modules that do what I'm looking for so I just figured I'd ask here before just writing my own. But I'm looking for a module that will allow me to have Drupal send me an email any time an error occurs and also has the ability to let me trigger my own errors (I know I could use trigger_error() but often times for these custom errors I want to be notified but don't want the error showing up on screen). I know I can do this relatively easily but was trying to see if something was already written that allows for this before committing myself to it. From agentrickard at gmail.com Mon Jun 15 14:58:40 2009 From: agentrickard at gmail.com (Ken Rickard) Date: Mon, 15 Jun 2009 10:58:40 -0400 Subject: [development] displaying all menus regardless of access In-Reply-To: <4A35F308.9040707@gmail.com> References: <4A35F308.9040707@gmail.com> Message-ID: <25b45da00906150758o481181b8g644ed03c0eb65638@mail.gmail.com> I just want to second the custom 403 handler approach. I have done that before, and the menu query check would be easy (check the $_GET['q'] against {menu_links}.link_path and account for aliasing. And you avoid security risks. On Mon, Jun 15, 2009 at 3:06 AM, Arancaytar Ilyaran wrote: > Ashraf Amayreh wrote: >> I guess the 2nd part of the question is, my module for 5.x used to >> render the complete menu (honoring menu access rights) to create a DHTML >> menu. But now in Drupal 6 it seems there's no way to get inside >> collapsed menu items. Am I missing something? How can I get the full >> tree rendered regardless of its state (collapsed or not)? > > menu_tree_all_data(). I used this same function when I ported > http://drupal.org/project/dhtml_menu to Drupal 6. > > -- > eternity lies ahead of us, and behind. > have you drunk your fill? > ? ? ? ? * * * > PGP: ? http://ermarian.net/downloads/0x27CA5C74 > XMPP: ?arancaytar.ilyaran at gmail.com > AOL: ? 282026638 @icq / RealArancaytar @aim > URL: ? http://ermarian.net > -- Ken Rickard agentrickard at gmail.com http://ken.therickards.com From kb at 2bits.com Mon Jun 15 15:19:03 2009 From: kb at 2bits.com (Khalid Baheyeldin) Date: Mon, 15 Jun 2009 11:19:03 -0400 Subject: [development] Email on error In-Reply-To: <4A364967.5070104@digitalpulp.com> References: <4A364967.5070104@digitalpulp.com> Message-ID: <4a9fdc630906150819r3f105a72q1d96029ad68122db@mail.gmail.com> On Mon, Jun 15, 2009 at 9:15 AM, Steven Surowiec wrote: > I've looked around drupal.org and couldn't find any modules that do what > I'm looking for so I just figured I'd ask here before just writing my own. > But I'm looking for a module that will allow me to have Drupal send me an > email any time an error occurs and also has the ability to let me trigger my > own errors (I know I could use trigger_error() but often times for these > custom errors I want to be notified but don't want the error showing up on > screen). I know I can do this relatively easily but was trying to see if > something was already written that allows for this before committing myself > to it. > The logging and alerts module has the email log module which does that. http://drupal.org/project/logging_alerts Be careful though: that can be a LOT OF EMAILS if you are getting a lot of watchdog messages, so be selective on what levels of error to include. -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci -------------- next part -------------- An HTML attachment was scrubbed... URL: From karoly at negyesi.net Mon Jun 15 15:46:14 2009 From: karoly at negyesi.net (Karoly Negyesi) Date: Mon, 15 Jun 2009 08:46:14 -0700 Subject: [development] displaying all menus regardless of access In-Reply-To: <25b45da00906150758o481181b8g644ed03c0eb65638@mail.gmail.com> References: <4A35F308.9040707@gmail.com> <25b45da00906150758o481181b8g644ed03c0eb65638@mail.gmail.com> Message-ID: <7e270cea0906150846v22d550f5r87563ca27a09f4f7@mail.gmail.com> On Mon, Jun 15, 2009 at 7:58 AM, Ken Rickard wrote: > I just want to second the custom 403 handler approach. I have done > that before, and the menu query check would be easy (check the > $_GET['q'] against {menu_links}.link_path and account for aliasing. $_GET['q'] is unaliased during bootstrap and link_path is not aliased either. I am unsure what you mean by account for aliasing. From agentrickard at gmail.com Mon Jun 15 16:12:29 2009 From: agentrickard at gmail.com (Ken Rickard) Date: Mon, 15 Jun 2009 12:12:29 -0400 Subject: [development] displaying all menus regardless of access In-Reply-To: <7e270cea0906150846v22d550f5r87563ca27a09f4f7@mail.gmail.com> References: <4A35F308.9040707@gmail.com> <25b45da00906150758o481181b8g644ed03c0eb65638@mail.gmail.com> <7e270cea0906150846v22d550f5r87563ca27a09f4f7@mail.gmail.com> Message-ID: <25b45da00906150912r35c5bbb4kb7c739cac1494be@mail.gmail.com> Just that node/6 might be mapped to 'thislink'. If it is not a concern, then there is no problem. On Mon, Jun 15, 2009 at 11:46 AM, Karoly Negyesi wrote: > On Mon, Jun 15, 2009 at 7:58 AM, Ken Rickard wrote: >> I just want to second the custom 403 handler approach. I have done >> that before, and the menu query check would be easy (check the >> $_GET['q'] against {menu_links}.link_path and account for aliasing. > > $_GET['q'] is unaliased during bootstrap and link_path is not aliased > either. I am unsure what you mean by account for aliasing. > -- Ken Rickard agentrickard at gmail.com http://ken.therickards.com From josh at chapterthree.com Tue Jun 16 23:53:53 2009 From: josh at chapterthree.com (Josh Koenig) Date: Tue, 16 Jun 2009 16:53:53 -0700 Subject: [development] PHP standards? In-Reply-To: <200906030016.56605.larry@garfieldtech.com> References: <200906030016.56605.larry@garfieldtech.com> Message-ID: <223073f60906161653g42248d50pdf5d65b176454b61@mail.gmail.com> Catching up on the threads there, I just want to give a shout-out of thanks to Larry for representing Drupal in excellent style. In particular, the summary of events here: http://news.php.net/php.standards/66 Felt like the best of Drupal: lighthearted and kind of humorous, but open and honestly looking to help. I've found it really interesting reading through the responses on the list, and I think it speaks very well for the capacity of an active open-source community (like us!) to develop social/cultural capital among its members. Learning to tolerate disagreement and create consensus is no small thing, and it makes us vastly more capable as individuals and as a community. Anyway, I'm a huge fan of standards and patterns also, and hopefully given the way this initial effort played out, there will be a more mature and democratic conversation which can really foster more cross-project harmony. cheers -josh On Tue, Jun 2, 2009 at 10:16 PM, Larry Garfield wrote: > There's an interesting development in the PHP world that may be of interest to > folks here: > > http://www.leftontheweb.com/message/The_PHP_standards_initiative > http://www.travisswicegood.com/index.php/2009/06/02/my-goals-for-the-php- > standards-group > http://www.phpclasses.org/blog/post/96-PHP-standards-discussion-group-opens- > to-the-world.html > > The mailing list in question is archived here: > http://news.php.net/php.standards/ > > The initial "standard" is here: > http://news.php.net/php.standards/2 > > I've already replied from a Drupal perspective here: > http://news.php.net/php.standards/40 > > As a supporter of inter-project cooperation and the use of industry standard > approaches, I figured it was relevant. :-) ?Just want to make sure everyone is > kept in the loop. > > -- > Larry Garfield > larry at garfieldtech.com > -- -------------------- Josh Koenig, Partner & CTO http://www.chapterthree.com From sivaji2009 at gmail.com Sun Jun 21 17:12:59 2009 From: sivaji2009 at gmail.com (sivaji j.g) Date: Sun, 21 Jun 2009 22:42:59 +0530 Subject: [development] need help with my gsoc quiz module Message-ID: I am a GSoC student and co-maintainer of quiz module. Quiz users are expecting for a new feature that lets the quiz attendees to enter some input (eg age, sex, qualification etc) either at the beginning or end of the quiz. Each site may have different requirement so the input form need be dynamic (not everybody will expect to have age with list select, sex with radio button). My thought on achieving this is to have a dummy node type (quiz_feedback) as a part of quiz module and an user defined node type(custom_quiz_feedback) with fields defined using CCK. custom_quiz_feedback node form will be attached to quiz_feedback 's body. When the quiz attendees view the quiz_feedback node they will have a form to get the desired input. Is it possible to do this ? or is there any other better ways to achieve this ? [sorry for my bad English. I tried to ask the same in IRC but there was no response] From tagliar at bc.edu Mon Jun 22 12:04:57 2009 From: tagliar at bc.edu (Rosemarie R. Tagliamonte) Date: Mon, 22 Jun 2009 08:04:57 -0400 Subject: [development] need help with my gsoc quiz module In-Reply-To: References: Message-ID: <4A3F7369.8090603@bc.edu> Hi, Please remove my email from your listserv. Thanks, Rose sivaji j.g wrote: > I am a GSoC student and co-maintainer of quiz module. Quiz users are > expecting for a new feature that lets the quiz attendees to enter some > input (eg age, sex, qualification etc) either at the beginning or end > of the quiz. Each site may have different requirement so the input > form need be dynamic (not everybody will expect to have age with list > select, sex with radio button). > > My thought on achieving this is to have a dummy node type > (quiz_feedback) as a part of quiz module and an user defined node > type(custom_quiz_feedback) with fields defined using CCK. > custom_quiz_feedback node form will be attached to quiz_feedback 's > body. When the quiz attendees view the quiz_feedback node they will > have a form to get the desired input. Is it possible to do this ? or > is there any other better ways to achieve this ? > > [sorry for my bad English. I tried to ask the same in IRC but there > was no response] > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rosemarie Tagliamonte Boston College - Application Services ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Phone: 617.552.1937 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From jpetso at gmx.at Mon Jun 22 12:46:03 2009 From: jpetso at gmx.at (Jakob Petsovits) Date: Mon, 22 Jun 2009 14:46:03 +0200 Subject: [development] need help with my gsoc quiz module In-Reply-To: <4A3F7369.8090603@bc.edu> References: <4A3F7369.8090603@bc.edu> Message-ID: <200906221446.03608.jpetso@gmx.at> On Monday 22 June 2009, Rosemarie R. Tagliamonte wrote: > Hi, > Please remove my email from your listserv. Please remove your email from this list by yourself, the link is http://lists.drupal.org/listinfo/development Good luck, Jakob From william.darren at gmail.com Mon Jun 22 12:46:17 2009 From: william.darren at gmail.com (William Smith) Date: Mon, 22 Jun 2009 08:46:17 -0400 Subject: [development] need help with my gsoc quiz module In-Reply-To: References: Message-ID: <74630ca20906220546q512e26e2wddf46074642a0442@mail.gmail.com> Perhaps it would be cleaner to have the feedback feature have a dependency on the webform module (http://drupal.org/project/webform). This would have the added benefit of inheriting stats and such. In your module's settings page, have a textfield like 'Feedback Form Name' (and this textfield is only enabled if module_exist('webform')). Then, after a quiz is taken, invoke this form through the webform API. On Sun, Jun 21, 2009 at 1:12 PM, sivaji j.g wrote: > I am a GSoC student and co-maintainer of quiz module. Quiz users are > expecting for a new feature that lets the quiz attendees to enter some > input (eg age, sex, qualification etc) either at the beginning or end > of the quiz. Each site may have different requirement so the input > form need be dynamic (not everybody will expect to have age with list > select, sex with radio button). > > My thought on achieving this is to have a dummy node type > (quiz_feedback) as a part of quiz module and an user defined node > type(custom_quiz_feedback) with fields defined using CCK. > custom_quiz_feedback node form will be attached to quiz_feedback 's > body. When the quiz attendees view the quiz_feedback node they will > have a form to get the desired input. Is it possible to do this ? or > is there any other better ways to achieve this ? > > [sorry for my bad English. I tried to ask the same in IRC but there > was no response] > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ojacquet at jax.be Mon Jun 22 12:40:51 2009 From: ojacquet at jax.be (Olivier Jacquet) Date: Mon, 22 Jun 2009 14:40:51 +0200 Subject: [development] need help with my gsoc quiz module In-Reply-To: <4A3F7369.8090603@bc.edu> References: <4A3F7369.8090603@bc.edu> Message-ID: <4A3F7BD3.3090300@jax.be> >> I am a GSoC student and co-maintainer of quiz module. Quiz users are >> expecting for a new feature that lets the quiz attendees to enter some >> input (eg age, sex, qualification etc) either at the beginning or end >> of the quiz. Each site may have different requirement so the input >> form need be dynamic (not everybody will expect to have age with list >> select, sex with radio button). >> >> My thought on achieving this is to have a dummy node type >> (quiz_feedback) as a part of quiz module and an user defined node >> type(custom_quiz_feedback) with fields defined using CCK. >> custom_quiz_feedback node form will be attached to quiz_feedback 's >> body. When the quiz attendees view the quiz_feedback node they will >> have a form to get the desired input. Is it possible to do this ? or >> is there any other better ways to achieve this ? >> >> [sorry for my bad English. I tried to ask the same in IRC but there >> was no response] I used the quiz module to perform a survey and had that exact need, people had to enter their name and email before starting. For this I just used the webform module to create the form. Then I used the submission id returned from the webform as the result id for the quiz. Using the submission id as the result id might not be a solution for every case but you could do add a mapping between the submission ids and the result ids. From enboig at gmail.com Mon Jun 22 12:55:34 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Mon, 22 Jun 2009 14:55:34 +0200 Subject: [development] different terms depending on $user data Message-ID: <45a29f450906220555y4c346b0ey467170221ff35ce@mail.gmail.com> I need groups of users sharing a taxonomy, but not terms; the group is defined depending on their user profile; so I have been able to write a module using hook_node_grants and hook_node_write_perms to separate their content; but now I need them able to categorize it. So a user inside "one group" should be able to add terms (if their permissions allow him to do so) and that term should only be visible to his group. Any hint of how to achieve this is welcome. -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From david.hautbois at free.fr Mon Jun 22 16:44:52 2009 From: david.hautbois at free.fr (David Hautbois) Date: Mon, 22 Jun 2009 18:44:52 +0200 Subject: [development] Set the CCK field value the the node is created Message-ID: <4A3FB504.3010809@free.fr> Hi I'm developping a custom CCK field for Drupal 6. I'm don't want the user set the value himself. So, this field has no widget. I'm looking for how to set the value when the node is saved. (the value is set when the node is created et not updated) In hook_field, I tried to use 'presave' ou 'validate' for $op, but I've some problems to work with it : - 'presave' seems to be called when the node is displayed... - when the node is created, the field has no value ($items[0]['value'] does not exists) - ... I 've look in some others CCK fields, but no one work like this. I copied the text_field CCK field, renamed all 'text_field' references, simplified it and removed the widget. Can someone help me or point me to a good web page ? (not the CCK dev documentation !, I read it many times!) Thanks. David From brian at brianvuyk.com Mon Jun 22 16:50:24 2009 From: brian at brianvuyk.com (Brian Vuyk) Date: Mon, 22 Jun 2009 12:50:24 -0400 Subject: [development] Set the CCK field value the the node is created In-Reply-To: <4A3FB504.3010809@free.fr> References: <4A3FB504.3010809@free.fr> Message-ID: <4A3FB650.8020603@brianvuyk.com> Is it something that could be done using a CCK Computed Field? It allows the field to be populated using PHP, and had the contents of the other fields available to it. Might be a little simpler than doing something in a module. Unless, of course, you don't want it's function accessible from the frontend. Brian On 06/22/2009 12:44 PM, David Hautbois wrote: > Hi > I'm developping a custom CCK field for Drupal 6. > I'm don't want the user set the value himself. So, this field has no > widget. > > I'm looking for how to set the value when the node is saved. (the > value is set when the node is created et not updated) > In hook_field, I tried to use 'presave' ou 'validate' for $op, but > I've some problems to work with it : > - 'presave' seems to be called when the node is displayed... > - when the node is created, the field has no value ($items[0]['value'] > does not exists) > - ... > > I 've look in some others CCK fields, but no one work like this. > > I copied the text_field CCK field, renamed all 'text_field' > references, simplified it and removed the widget. > > Can someone help me or point me to a good web page ? (not the CCK dev > documentation !, I read it many times!) > > Thanks. > > David -- *Brian Vuyk* Web Design & Development T: 613-534-2916 Skype: brianvuyk brian at brianvuyk.com | http://www.brianvuyk.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.hautbois at free.fr Mon Jun 22 17:05:07 2009 From: david.hautbois at free.fr (David Hautbois) Date: Mon, 22 Jun 2009 19:05:07 +0200 Subject: [development] Set the CCK field value the the node is created In-Reply-To: <4A3FB650.8020603@brianvuyk.com> References: <4A3FB504.3010809@free.fr> <4A3FB650.8020603@brianvuyk.com> Message-ID: <4A3FB9C3.4070703@free.fr> I've done this using the CCK Computed Field. But I would like to learn more about CCK fields development. And my company give some time to do this... Thanks. David Brian Vuyk wrote: > Is it something that could be done using a CCK Computed Field? It > allows the field to be populated using PHP, and had the contents of > the other fields available to it. > > Might be a little simpler than doing something in a module. Unless, of > course, you don't want it's function accessible from the frontend. > > Brian > > On 06/22/2009 12:44 PM, David Hautbois wrote: >> Hi >> I'm developping a custom CCK field for Drupal 6. >> I'm don't want the user set the value himself. So, this field has no >> widget. >> >> I'm looking for how to set the value when the node is saved. (the >> value is set when the node is created et not updated) >> In hook_field, I tried to use 'presave' ou 'validate' for $op, but >> I've some problems to work with it : >> - 'presave' seems to be called when the node is displayed... >> - when the node is created, the field has no value >> ($items[0]['value'] does not exists) >> - ... >> >> I 've look in some others CCK fields, but no one work like this. >> >> I copied the text_field CCK field, renamed all 'text_field' >> references, simplified it and removed the widget. >> >> Can someone help me or point me to a good web page ? (not the CCK dev >> documentation !, I read it many times!) >> >> Thanks. >> >> David > > > -- > *Brian Vuyk* > Web Design & Development > T: 613-534-2916 > Skype: brianvuyk > brian at brianvuyk.com | http://www.brianvuyk.com From nevets at tds.net Mon Jun 22 16:57:43 2009 From: nevets at tds.net (Steve Ringwood) Date: Mon, 22 Jun 2009 11:57:43 -0500 Subject: [development] Set the CCK field value the the node is created In-Reply-To: <4A3FB504.3010809@free.fr> References: <4A3FB504.3010809@free.fr> Message-ID: <4A3FB807.20200@mailbag.com> David I did something similar, I made a constant type that uses either a Form API type of value or hidden. Default value can be set from UI (I think, not sure I tried). I can send you a copy if you like. Steve From victorkane at gmail.com Mon Jun 22 17:05:44 2009 From: victorkane at gmail.com (Victor Kane) Date: Mon, 22 Jun 2009 14:05:44 -0300 Subject: [development] Set the CCK field value the the node is created In-Reply-To: <4A3FB650.8020603@brianvuyk.com> References: <4A3FB504.3010809@free.fr> <4A3FB650.8020603@brianvuyk.com> Message-ID: Investigate hook_nodeapi, specifically the insert and update operations, Victor Kane http://awebfactory.com.ar http://projectflowandtracker.com On Mon, Jun 22, 2009 at 1:50 PM, Brian Vuyk wrote: > Is it something that could be done using a CCK Computed Field? It allows > the field to be populated using PHP, and had the contents of the other > fields available to it. > > Might be a little simpler than doing something in a module. Unless, of > course, you don't want it's function accessible from the frontend. > > Brian > > > On 06/22/2009 12:44 PM, David Hautbois wrote: > > Hi > I'm developping a custom CCK field for Drupal 6. > I'm don't want the user set the value himself. So, this field has no > widget. > > I'm looking for how to set the value when the node is saved. (the value is > set when the node is created et not updated) > In hook_field, I tried to use 'presave' ou 'validate' for $op, but I've > some problems to work with it : > - 'presave' seems to be called when the node is displayed... > - when the node is created, the field has no value ($items[0]['value'] does > not exists) > - ... > > I 've look in some others CCK fields, but no one work like this. > > I copied the text_field CCK field, renamed all 'text_field' references, > simplified it and removed the widget. > > Can someone help me or point me to a good web page ? (not the CCK dev > documentation !, I read it many times!) > > Thanks. > > David > > > > -- > *Brian Vuyk* > Web Design & Development > T: 613-534-2916 > Skype: brianvuyk > brian at brianvuyk.com | http://www.brianvuyk.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sivaji2009 at gmail.com Mon Jun 22 19:48:07 2009 From: sivaji2009 at gmail.com (sivaji j.g) Date: Tue, 23 Jun 2009 01:18:07 +0530 Subject: [development] need help with my gsoc quiz module In-Reply-To: <4A3F7BD3.3090300@jax.be> References: <4A3F7369.8090603@bc.edu> <4A3F7BD3.3090300@jax.be> Message-ID: On Mon, Jun 22, 2009 at 6:10 PM, Olivier Jacquet wrote: > > I used the quiz module to perform a survey and had that exact need, people > had to enter their name and email before starting. For this I just used the > webform module to create the form. Then I used the submission id returned > from the webform as the result id for the quiz. Thank you for your suggestion let me have a look into webform module. From drupal at dave-cohen.com Mon Jun 22 19:52:19 2009 From: drupal at dave-cohen.com (Dave Cohen) Date: Mon, 22 Jun 2009 12:52:19 -0700 Subject: [development] different terms depending on $user data In-Reply-To: <45a29f450906220555y4c346b0ey467170221ff35ce@mail.gmail.com> References: <45a29f450906220555y4c346b0ey467170221ff35ce@mail.gmail.com> Message-ID: <200906221252.19213.drupal@dave-cohen.com> Consider tac_lite.module as an example. It uses hook_db_rewrite_sql() to hide some terms from some users. Note that this hides the terms completely (i.e. when viewing a node you will not see the tags) rather than removing them only from forms (which should be done with hook_form_alter). -Dave On Monday 22 June 2009 05:55:34 Llu?s wrote: > I need groups of users sharing a taxonomy, but not terms; the group is > defined depending on their user profile; so I have been able to write > a module using hook_node_grants and hook_node_write_perms to separate > their content; but now I need them able to categorize it. > > So a user inside "one group" should be able to add terms (if their > permissions allow him to do so) and that term should only be visible > to his group. > > Any hint of how to achieve this is welcome. > From cxjohnson at gmail.com Mon Jun 22 20:05:13 2009 From: cxjohnson at gmail.com (Chris Johnson) Date: Mon, 22 Jun 2009 15:05:13 -0500 Subject: [development] Set the CCK field value the the node is created In-Reply-To: <4A3FB9C3.4070703@free.fr> References: <4A3FB504.3010809@free.fr> <4A3FB650.8020603@brianvuyk.com> <4A3FB9C3.4070703@free.fr> Message-ID: <9ea8d6030906221305r5cde250fp1f275116c887da5f@mail.gmail.com> I've struggled with doing this, too. I updated some of the CCK developer documentation on drupal.org to Drupal 6 as I went along figuring things out, but obviously only hit minor bits and pieces. You can look at the source for the moodle module (http://drupal.org/project/moodle) in the moodle.cckfield.inc file for the development code I was last working on to do this a few months ago. It is a very hacked up copy of the computed field code, if I remember correctly. Please, please! -- if anyone figures out any pieces of how CCK works in Drupal 6 -- add documentation below the top-level page at http://drupal.org/node/101742 . The only 2 people who know how it really works are the maintainers, and they're busy working on Drupal 7. ..chris On Mon, Jun 22, 2009 at 12:05 PM, David Hautbois wrote: > I've done this using the CCK Computed Field. > > But I would like to learn more about CCK fields development. > And my company give some time to do this... > > Thanks. > > David > > Brian Vuyk wrote: >> >> Is it something that could be done using a CCK Computed Field? It allows >> the field to be populated using PHP, and had the contents of the other >> fields available to it. >> >> Might be a little simpler than doing something in a module. Unless, of >> course, you don't want it's function accessible from the frontend. >> >> Brian >> >> On 06/22/2009 12:44 PM, David Hautbois wrote: >>> >>> Hi >>> I'm developping a custom CCK field for Drupal 6. >>> I'm don't want the user set the value himself. So, this field has no >>> widget. >>> >>> I'm looking for how to set the value when the node is saved. (the value >>> is set when the node is created et not updated) >>> In hook_field, I tried to use 'presave' ou 'validate' for $op, but I've >>> some problems to work with it : >>> - 'presave' seems to be called when the node is displayed... >>> - when the node is created, the field has no value ($items[0]['value'] >>> does not exists) >>> - ... >>> >>> I 've look in some others CCK fields, but no one work like this. >>> >>> I copied the text_field CCK field, renamed all 'text_field' references, >>> simplified it and removed the widget. >>> >>> Can someone help me or point me to a good web page ? (not the CCK dev >>> documentation !, I read it many times!) >>> >>> Thanks. >>> >>> David >> >> >> -- >> *Brian Vuyk* >> Web Design & Development >> T: 613-534-2916 >> Skype: brianvuyk >> brian at brianvuyk.com | http://www.brianvuyk.com > From Greg at GrowingVentureSolutions.com Mon Jun 22 21:47:32 2009 From: Greg at GrowingVentureSolutions.com (Greg Knaddison) Date: Mon, 22 Jun 2009 15:47:32 -0600 Subject: [development] Set the CCK field value the the node is created In-Reply-To: <4A3FB504.3010809@free.fr> References: <4A3FB504.3010809@free.fr> Message-ID: <3861c6770906221447j774fd427rce51b7d17812ee73@mail.gmail.com> On Mon, Jun 22, 2009 at 10:44 AM, David Hautbois wrote: > I 've look in some others CCK fields, but no one work like this. I believe the Nodereference URL widget module is quite like that: http://drupal.org/project/nodereference_url Hopefully it will give some ideas. Regards, Greg -- Greg Knaddison | 303-800-5623 | http://growingventuresolutions.com Cracking Drupal - Learn to protect your Drupal site from hackers Now available from Wiley http://crackingdrupal.com From david.hautbois at free.fr Tue Jun 23 16:18:35 2009 From: david.hautbois at free.fr (David Hautbois) Date: Tue, 23 Jun 2009 18:18:35 +0200 Subject: [development] Set the CCK field value the the node is created In-Reply-To: <9ea8d6030906221305r5cde250fp1f275116c887da5f@mail.gmail.com> References: <4A3FB504.3010809@free.fr> <4A3FB650.8020603@brianvuyk.com> <4A3FB9C3.4070703@free.fr> <9ea8d6030906221305r5cde250fp1f275116c887da5f@mail.gmail.com> Message-ID: <4A41005B.3030200@free.fr> Finaly, I decided to use the computed field. Thanks All ! David Chris Johnson wrote: > I've struggled with doing this, too. I updated some of the CCK > developer documentation on drupal.org to Drupal 6 as I went along > figuring things out, but obviously only hit minor bits and pieces. > > You can look at the source for the moodle module > (http://drupal.org/project/moodle) in the moodle.cckfield.inc file for > the development code I was last working on to do this a few months > ago. It is a very hacked up copy of the computed field code, if I > remember correctly. > > Please, please! -- if anyone figures out any pieces of how CCK works > in Drupal 6 -- add documentation below the top-level page at > http://drupal.org/node/101742 . > > The only 2 people who know how it really works are the maintainers, > and they're busy working on Drupal 7. > > ..chris > > On Mon, Jun 22, 2009 at 12:05 PM, David Hautbois wrote: > >> I've done this using the CCK Computed Field. >> >> But I would like to learn more about CCK fields development. >> And my company give some time to do this... >> >> Thanks. >> >> David >> >> Brian Vuyk wrote: >> >>> Is it something that could be done using a CCK Computed Field? It allows >>> the field to be populated using PHP, and had the contents of the other >>> fields available to it. >>> >>> Might be a little simpler than doing something in a module. Unless, of >>> course, you don't want it's function accessible from the frontend. >>> >>> Brian >>> >>> On 06/22/2009 12:44 PM, David Hautbois wrote: >>> >>>> Hi >>>> I'm developping a custom CCK field for Drupal 6. >>>> I'm don't want the user set the value himself. So, this field has no >>>> widget. >>>> >>>> I'm looking for how to set the value when the node is saved. (the value >>>> is set when the node is created et not updated) >>>> In hook_field, I tried to use 'presave' ou 'validate' for $op, but I've >>>> some problems to work with it : >>>> - 'presave' seems to be called when the node is displayed... >>>> - when the node is created, the field has no value ($items[0]['value'] >>>> does not exists) >>>> - ... >>>> >>>> I 've look in some others CCK fields, but no one work like this. >>>> >>>> I copied the text_field CCK field, renamed all 'text_field' references, >>>> simplified it and removed the widget. >>>> >>>> Can someone help me or point me to a good web page ? (not the CCK dev >>>> documentation !, I read it many times!) >>>> >>>> Thanks. >>>> >>>> David >>>> >>> -- >>> *Brian Vuyk* >>> Web Design & Development >>> T: 613-534-2916 >>> Skype: brianvuyk >>> brian at brianvuyk.com | http://www.brianvuyk.com >>> > > From yched.drupal at free.fr Wed Jun 24 00:12:19 2009 From: yched.drupal at free.fr (Yves Chedemois) Date: Wed, 24 Jun 2009 02:12:19 +0200 Subject: [development] Field UI effort Message-ID: <4A416F63.9000004@free.fr> While Field API has been in core for a couple months now, the UI currently remains in contrib (CCK HEAD) There is a strong demand to have a Field UI shipped with core. - better experience with an out of the box drupal setup - makes it easier to unify features to 'X as field' (node body, file uploads...) without having to keep the existing core UI in parallel with the contrib Field UI. - quoted from Dries' blogpost in http://buytaert.net/drupal-7-fields-in-core-status-update-and-next-steps: it's "a strategic necessity because it enables more people to test, benchmark and experiment with what we have built so far" (true for field API, but also for the UI itself) This will not happen without a design and coding community effort. The current CCK HEAD, albeit "globally working", is more or less a direct port of the D6 CCK UI, which is frankly not on par with the coolness expected from the D7UX work. The Field UI, whether in core or contrib, will end up as a fair part of the 'drupal experience'. I clearly won't have the bandwidth to lead that effort myself, but I will of course provide help and feedback. To get the ball rolling, I posted an UI-oriented summary of the Field API at http://groups.drupal.org/node/23545 Discussion takes place in http://groups.drupal.org/node/23282 - or is there any other place more inline with the D7UX habits ? Yched From andrewberry at sentex.net Wed Jun 24 01:54:59 2009 From: andrewberry at sentex.net (Andrew Berry) Date: Tue, 23 Jun 2009 21:54:59 -0400 Subject: [development] different terms depending on $user data In-Reply-To: <45a29f450906220555y4c346b0ey467170221ff35ce@mail.gmail.com> References: <45a29f450906220555y4c346b0ey467170221ff35ce@mail.gmail.com> Message-ID: On 22-Jun-09, at 8:55 AM, Llu?s wrote: > I need groups of users sharing a taxonomy, but not terms; the group is > defined depending on their user profile; so I have been able to write > a module using hook_node_grants and hook_node_write_perms to separate > their content; but now I need them able to categorize it. The first half of this can be done with the term_permissions module I wrote to use with Simplenews. It can limit terms to those in a role (or by user), but doesn't handle newly created terms like what might occur with free tagging. Feel free to submit a patch :) If you are pre-defining all of your terms, this might work for you as- is. http://drupal.org/project/term_permissions --Andrew -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2672 bytes Desc: not available URL: From paolomainardi at gmail.com Wed Jun 24 13:14:48 2009 From: paolomainardi at gmail.com (Paolo Mainardi) Date: Wed, 24 Jun 2009 15:14:48 +0200 Subject: [development] Taxonomy path OG aware Message-ID: Dear All, I need your opinion and suggestions on a (for me) complicated task. I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content types Now, i need to achieve this task, when you are in a node (og context) taxonomy links must be have something relative to og, for example: "/taxonomy/term/$tid/$og->nid" (for example passing last argument to views for fitering only og nodes with this taxonomy term) (consider that i'm using Pathauto, so taxonomy/term it's aliased for example on "category/$category_name"). I tried with custom_url_rewrite but it's not a so simple task and with hook_menu trying to create on the fly all this path (but it's a little bit strong in terms of cpu cycles...). I'm using D5. Please, someone could suggest me the right way ? :) Thank you very much!!! :) -- Paolo Mainardi CTO Twinbit Blog: http://www.paolomainardi.com -- Please consider the environment before printing this email -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From prometheus6 at gmail.com Wed Jun 24 16:08:07 2009 From: prometheus6 at gmail.com (Earl Dunovant) Date: Wed, 24 Jun 2009 12:08:07 -0400 Subject: [development] Taxonomy path OG aware In-Reply-To: References: Message-ID: Try the OG Vocabulary module. It lets each group have it's own taxonomy. On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi wrote: > Dear All, > > I need your opinion and suggestions on a (for me) complicated task. > > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content > types > > Now, i need to achieve this task, when you are in a node (og context) > taxonomy links must be have something relative to og, for example: > > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to views > for fitering only og nodes with this taxonomy term) (consider that i'm using > Pathauto, so taxonomy/term it's aliased for example on > "category/$category_name"). > > I tried with custom_url_rewrite but it's not a so simple task and with > hook_menu trying to create on the fly all this path (but it's a little bit > strong in terms of cpu cycles...). > > I'm using D5. > > Please, someone could suggest me the right way? ? :) Thank you very much!!! > :) > > -- > Paolo Mainardi > > CTO Twinbit > Blog: http://www.paolomainardi.com > > -- Please consider the environment before printing this email -- > From paolomainardi at gmail.com Wed Jun 24 19:02:32 2009 From: paolomainardi at gmail.com (Paolo Mainardi) Date: Wed, 24 Jun 2009 21:02:32 +0200 Subject: [development] Taxonomy path OG aware In-Reply-To: References: Message-ID: But with og_vocab after i need to create new vocabularies for every new group created, i'm right ? On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant wrote: > Try the OG Vocabulary module. It lets each group have it's own taxonomy. > > On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi > wrote: > > Dear All, > > > > I need your opinion and suggestions on a (for me) complicated task. > > > > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content > > types > > > > Now, i need to achieve this task, when you are in a node (og context) > > taxonomy links must be have something relative to og, for example: > > > > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to > views > > for fitering only og nodes with this taxonomy term) (consider that i'm > using > > Pathauto, so taxonomy/term it's aliased for example on > > "category/$category_name"). > > > > I tried with custom_url_rewrite but it's not a so simple task and with > > hook_menu trying to create on the fly all this path (but it's a little > bit > > strong in terms of cpu cycles...). > > > > I'm using D5. > > > > Please, someone could suggest me the right way ? :) Thank you very > much!!! > > :) > > > > -- > > Paolo Mainardi > > > > CTO Twinbit > > Blog: http://www.paolomainardi.com > > > > -- Please consider the environment before printing this email -- > > > -- Paolo Mainardi CTO Twinbit Blog: http://www.paolomainardi.com -- Please consider the environment before printing this email -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathew.oakes at memechine.org Thu Jun 25 04:43:09 2009 From: mathew.oakes at memechine.org (Mathew Oakes) Date: Thu, 25 Jun 2009 14:43:09 +1000 Subject: [development] feed aggregator - drupal 6 - minor improvement Message-ID: <4f4c85340906242143oe4d6b5ch4baf302106143574@mail.gmail.com> I found that the feed aggregator would link into my delicious bookmarks rss OK. Then I wanted to link it in to a feed of my most used tags, but the links did not appear correctly. The .module uses the generic link of the feed in if the item link is not present. On this feed, each item had the correct link value in the guid tag. I don't know how standard that is, but Firefox interprets it correctly. So I added a clause to the replacement algorithm, to use guid value (if it is a valid link) otherwise to revert to the feed link. Patch attached fro the aggregator.module file from version 6.1.2 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: aggregator.patch Type: text/x-patch Size: 364 bytes Desc: not available URL: From prometheus6 at gmail.com Thu Jun 25 09:55:34 2009 From: prometheus6 at gmail.com (Earl Dunovant) Date: Thu, 25 Jun 2009 05:55:34 -0400 Subject: [development] Taxonomy path OG aware In-Reply-To: References: Message-ID: Yes you're right. Your question means you want to have a single taxonomy and share it across groups...you would have to use Views for that. You would clone the taxonomy_term view that ships with Views and add an argument that filters nodes by group membership. You should install the advanced_help module. That's how you get detailed help on Views and a lot of other important modules as well. On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi wrote: > But with og_vocab after i need to create new vocabularies for every new > group created, i'm right ? > > On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant > wrote: >> >> Try the OG Vocabulary module. It lets each group have it's own taxonomy. >> >> On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi >> wrote: >> > Dear All, >> > >> > I need your opinion and suggestions on a (for me) complicated task. >> > >> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content >> > types >> > >> > Now, i need to achieve this task, when you are in a node (og context) >> > taxonomy links must be have something relative to og, for example: >> > >> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to >> > views >> > for fitering only og nodes with this taxonomy term) (consider that i'm >> > using >> > Pathauto, so taxonomy/term it's aliased for example on >> > "category/$category_name"). >> > >> > I tried with custom_url_rewrite but it's not a so simple task and with >> > hook_menu trying to create on the fly all this path (but it's a little >> > bit >> > strong in terms of cpu cycles...). >> > >> > I'm using D5. >> > >> > Please, someone could suggest me the right way? ? :) Thank you very >> > much!!! >> > :) >> > >> > -- >> > Paolo Mainardi >> > >> > CTO Twinbit >> > Blog: http://www.paolomainardi.com >> > >> > -- Please consider the environment before printing this email -- >> > > > > > -- > Paolo Mainardi > > CTO Twinbit > Blog: http://www.paolomainardi.com > > -- Please consider the environment before printing this email -- > From paolomainardi at gmail.com Thu Jun 25 14:33:51 2009 From: paolomainardi at gmail.com (Paolo Mainardi) Date: Thu, 25 Jun 2009 16:33:51 +0200 Subject: [development] Taxonomy path OG aware In-Reply-To: References: Message-ID: On Thu, Jun 25, 2009 at 11:55 AM, Earl Dunovant wrote: > Yes you're right. Your question means you want to have a single > taxonomy and share it across groups...you would have to use Views for > that. You would clone the taxonomy_term view that ships with Views and > add an argument that filters nodes by group membership. Yes it was i did and it's ok, but the point it's another, how to create custom path for this taxonomy/term/$og->title with Pathauto ? Where "taxonomy/term" is "category/term-title", i need to create "og-title/taxonomy/term" --> "og-title/category/term-title". It's a little bit more clear ? Thanks :) > > > You should install the advanced_help module. That's how you get > detailed help on Views and a lot of other important modules as well. > > On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi > wrote: > > But with og_vocab after i need to create new vocabularies for every new > > group created, i'm right ? > > > > On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant > > wrote: > >> > >> Try the OG Vocabulary module. It lets each group have it's own taxonomy. > >> > >> On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi > > >> wrote: > >> > Dear All, > >> > > >> > I need your opinion and suggestions on a (for me) complicated task. > >> > > >> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some > content > >> > types > >> > > >> > Now, i need to achieve this task, when you are in a node (og context) > >> > taxonomy links must be have something relative to og, for example: > >> > > >> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to > >> > views > >> > for fitering only og nodes with this taxonomy term) (consider that i'm > >> > using > >> > Pathauto, so taxonomy/term it's aliased for example on > >> > "category/$category_name"). > >> > > >> > I tried with custom_url_rewrite but it's not a so simple task and with > >> > hook_menu trying to create on the fly all this path (but it's a little > >> > bit > >> > strong in terms of cpu cycles...). > >> > > >> > I'm using D5. > >> > > >> > Please, someone could suggest me the right way ? :) Thank you very > >> > much!!! > >> > :) > >> > > >> > -- > >> > Paolo Mainardi > >> > > >> > CTO Twinbit > >> > Blog: http://www.paolomainardi.com > >> > > >> > -- Please consider the environment before printing this email -- > >> > > > > > > > > > -- > > Paolo Mainardi > > > > CTO Twinbit > > Blog: http://www.paolomainardi.com > > > > -- Please consider the environment before printing this email -- > > > -- Paolo Mainardi CTO Twinbit Blog: http://www.paolomainardi.com -- Please consider the environment before printing this email -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From enboig at gmail.com Thu Jun 25 16:29:39 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Thu, 25 Jun 2009 18:29:39 +0200 Subject: [development] form with confirmation (sometimes) Message-ID: <45a29f450906250929p381fedc7p2b1de92979b50404@mail.gmail.com> I have a form to allow deleting some variables. If the deleted item is 'empty' it should be possible to delete it without any problem; but full items should have a 'confirmation' step before deleting them. I have read http://drupal.org/node/387674 and http://drupal.org/node/385640; but in my case I need to pass an array to the confirmation form, and I think it has to be an easier way to allow a "Are you sure you want to do this?". Any hint is welcome. -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From mike at mikeyp.net Thu Jun 25 17:13:34 2009 From: mike at mikeyp.net (Michael Prasuhn) Date: Thu, 25 Jun 2009 10:13:34 -0700 Subject: [development] form with confirmation (sometimes) In-Reply-To: <45a29f450906250929p381fedc7p2b1de92979b50404@mail.gmail.com> References: <45a29f450906250929p381fedc7p2b1de92979b50404@mail.gmail.com> Message-ID: <548EB4A7-607D-4A9F-AAE2-FF7CABA16668@mikeyp.net> Look at node module, specifically node_admin_nodes() and node_admin_nodes_validate() and node_admin_nodes_submit() which are all found in node.admin.inc in Drupal 6. It provides this same functionality - it only shows a confirmation form if the operation is to delete nodes. -Mike On Jun 25, 2009, at 9:29 AM, Llu?s wrote: > I have a form to allow deleting some variables. If the deleted item is > 'empty' it should be possible to delete it without any problem; but > full items should have a 'confirmation' step before deleting them. > > I have read http://drupal.org/node/387674 and > http://drupal.org/node/385640; but in my case I need to pass an array > to the confirmation form, and I think it has to be an easier way to > allow a "Are you sure you want to do this?". > > Any hint is welcome. > > -- > *La vida ?s com una taronja, qu? esperes a exprimir-la? > *Si creus que l'educaci? ?s cara, prova la ignor?ncia. > *La vida ?s com una moneda, la pots gastar en el que vulguis per? > nom?s una vegada. > *Abans d'imprimir aquest missatge, pensa en el medi ambient. __________________ Michael Prasuhn 503.488.5433 office 971.244.2595 cell 503.661.7574 home mike at mikeyp.net http://mikeyp.net From enboig at gmail.com Thu Jun 25 17:33:07 2009 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Thu, 25 Jun 2009 19:33:07 +0200 Subject: [development] form with confirmation (sometimes) In-Reply-To: <548EB4A7-607D-4A9F-AAE2-FF7CABA16668@mikeyp.net> References: <45a29f450906250929p381fedc7p2b1de92979b50404@mail.gmail.com> <548EB4A7-607D-4A9F-AAE2-FF7CABA16668@mikeyp.net> Message-ID: <45a29f450906251033v65e3a820o56cbe80fa785487f@mail.gmail.com> I have taken a look to these funcions but I cannot see how $form_state['rebuild'] = TRUE; make confirmation appear. On Thu, Jun 25, 2009 at 7:13 PM, Michael Prasuhn wrote: > Look at node module, specifically node_admin_nodes() and > node_admin_nodes_validate() and node_admin_nodes_submit() which are all > found in node.admin.inc in Drupal 6. It provides this same functionality - > it only shows a confirmation form if the operation is to delete nodes. > > -Mike > > On Jun 25, 2009, at 9:29 AM, Llu?s wrote: > >> I have a form to allow deleting some variables. If the deleted item is >> 'empty' it should be possible to delete it without any problem; but >> full items should have a 'confirmation' step before deleting them. >> >> I have read http://drupal.org/node/387674 and >> http://drupal.org/node/385640; but in my case I need to pass an array >> to the confirmation form, and I think it has to be an easier way to >> allow a "Are you sure you want to do this?". >> >> Any hint is welcome. >> >> -- >> *La vida ?s com una taronja, qu? esperes a exprimir-la? >> *Si creus que l'educaci? ?s cara, prova la ignor?ncia. >> *La vida ?s com una moneda, la pots gastar en el que vulguis per? >> nom?s una vegada. >> *Abans d'imprimir aquest missatge, pensa en el medi ambient. > > __________________ > Michael Prasuhn > 503.488.5433 office > 971.244.2595 cell > 503.661.7574 home > mike at mikeyp.net > http://mikeyp.net > > > > > > > -- *La vida ?s com una taronja, qu? esperes a exprimir-la? *Si creus que l'educaci? ?s cara, prova la ignor?ncia. *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From paolomainardi at gmail.com Thu Jun 25 21:22:44 2009 From: paolomainardi at gmail.com (Paolo Mainardi) Date: Thu, 25 Jun 2009 23:22:44 +0200 Subject: [development] Taxonomy path OG aware In-Reply-To: References: Message-ID: Someone have other ideas ? Thanks :) On Thu, Jun 25, 2009 at 4:33 PM, Paolo Mainardi wrote: > > > On Thu, Jun 25, 2009 at 11:55 AM, Earl Dunovant wrote: > >> Yes you're right. Your question means you want to have a single >> taxonomy and share it across groups...you would have to use Views for >> that. You would clone the taxonomy_term view that ships with Views and >> add an argument that filters nodes by group membership. > > > Yes it was i did and it's ok, but the point it's another, how to create > custom path for this taxonomy/term/$og->title with Pathauto ? > > Where "taxonomy/term" is "category/term-title", i need to create > "og-title/taxonomy/term" --> "og-title/category/term-title". > > It's a little bit more clear ? > > Thanks :) > > >> >> >> You should install the advanced_help module. That's how you get >> detailed help on Views and a lot of other important modules as well. >> >> On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi >> wrote: >> > But with og_vocab after i need to create new vocabularies for every new >> > group created, i'm right ? >> > >> > On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant >> > wrote: >> >> >> >> Try the OG Vocabulary module. It lets each group have it's own >> taxonomy. >> >> >> >> On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi< >> paolomainardi at gmail.com> >> >> wrote: >> >> > Dear All, >> >> > >> >> > I need your opinion and suggestions on a (for me) complicated task. >> >> > >> >> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some >> content >> >> > types >> >> > >> >> > Now, i need to achieve this task, when you are in a node (og context) >> >> > taxonomy links must be have something relative to og, for example: >> >> > >> >> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to >> >> > views >> >> > for fitering only og nodes with this taxonomy term) (consider that >> i'm >> >> > using >> >> > Pathauto, so taxonomy/term it's aliased for example on >> >> > "category/$category_name"). >> >> > >> >> > I tried with custom_url_rewrite but it's not a so simple task and >> with >> >> > hook_menu trying to create on the fly all this path (but it's a >> little >> >> > bit >> >> > strong in terms of cpu cycles...). >> >> > >> >> > I'm using D5. >> >> > >> >> > Please, someone could suggest me the right way ? :) Thank you very >> >> > much!!! >> >> > :) >> >> > >> >> > -- >> >> > Paolo Mainardi >> >> > >> >> > CTO Twinbit >> >> > Blog: http://www.paolomainardi.com >> >> > >> >> > -- Please consider the environment before printing this email -- >> >> > >> > >> > >> > >> > -- >> > Paolo Mainardi >> > >> > CTO Twinbit >> > Blog: http://www.paolomainardi.com >> > >> > -- Please consider the environment before printing this email -- >> > >> > > > > -- > Paolo Mainardi > > CTO Twinbit > Blog: http://www.paolomainardi.com > > -- Please consider the environment before printing this email -- > -- Paolo Mainardi CTO Twinbit Blog: http://www.paolomainardi.com -- Please consider the environment before printing this email -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From development at standoutdesign.nl Fri Jun 26 08:42:58 2009 From: development at standoutdesign.nl (Stefan Nagtegaal) Date: Fri, 26 Jun 2009 10:42:58 +0200 Subject: [development] D7-UX: Complete nightmare Message-ID: <6198CF33-5C4A-4ABB-8096-AEAED87F16EB@standoutdesign.nl> After a long time, I'm finally back and up to speed with Drupal CVS again. The last couple of weeks, I was trying to get into the "Drupal 7 User Experience"-improvements the community is planning to make before releasing Drupal 7. Unfortunatly, I lost track between all the different websites (drupalusability.org / drupal.org / d7ux.org / groups.org/microproject and so on), the enormous amount of issues and the ongoing talk of wireframes, suggestions and idea's. Now, concretely what I would like to know to get started *somwhere* is the following: - Where do we have the exact guidelines and examples of how we are going to work to complete this (horror)job and immense task? Is there any at all? - Do we have a roadmap to complete and guide the community, and the order we should work things out? - What is the place to look at, if I want to work on it structurely and to not lost track on all the things spread around on the different groups / websites and issues? - Is there anyone taking a lead in this, who I can talk to and dicuss things with? As I'm getting up with Drupal CVS again I didn't found anything related to the "new" (seperated again) administration section. I couldn't find any code to rely on, or even to get an overlay-sort-of- thing working to build upon. (perhaps I'm wrong, but I had the feeling that this would be there as *a lot* of people are wireframing, making sketches of possible and new UI's and discussing things that IMO doesn't even matter as long as the groundwork isn't done yet.. So, to make such a long story short: Is there anyone, or any place where I could find things (structurely ordered, preferably by task) to start on at least some things of the groundwork? I hope there are some people willing, who could help me to get going. Yours sincerely, Stefan Nagtegaal From prometheus6 at gmail.com Mon Jun 29 01:36:16 2009 From: prometheus6 at gmail.com (Earl Dunovant) Date: Sun, 28 Jun 2009 21:36:16 -0400 Subject: [development] Taxonomy path OG aware In-Reply-To: References: Message-ID: Sorry, been busy. I suggest you use a view instead of an alias. Given arguments (nid of the group, termid of teh term) creating a page display of posts in the group with that term is pretty straightforward. On Thu, Jun 25, 2009 at 5:22 PM, Paolo Mainardi wrote: > Someone have other ideas ? > Thanks :) > > On Thu, Jun 25, 2009 at 4:33 PM, Paolo Mainardi > wrote: >> >> >> On Thu, Jun 25, 2009 at 11:55 AM, Earl Dunovant >> wrote: >>> >>> Yes you're right. Your question means you want to have a single >>> taxonomy and share it across groups...you would have to use Views for >>> that. You would clone the taxonomy_term view that ships with Views and >>> add an argument that filters nodes by group membership. >> >> Yes it was i did and it's ok, but the point it's another, how to create >> custom path for this taxonomy/term/$og->title with Pathauto ? >> >> Where "taxonomy/term" is "category/term-title", i need to create >> "og-title/taxonomy/term" --> "og-title/category/term-title". >> >> It's a little bit more clear ? >> >> Thanks :) >> >>> >>> You should install the advanced_help module. That's how you get >>> detailed help on Views and a lot of other important modules as well. >>> >>> On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi >>> wrote: >>> > But with og_vocab after i need to create new vocabularies for every new >>> > group created, i'm right ? >>> > >>> > On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant >>> > wrote: >>> >> >>> >> Try the OG Vocabulary module. It lets each group have it's own >>> >> taxonomy. >>> >> >>> >> On Wed, Jun 24, 2009 at 9:14 AM, Paolo >>> >> Mainardi >>> >> wrote: >>> >> > Dear All, >>> >> > >>> >> > I need your opinion and suggestions on a (for me) complicated task. >>> >> > >>> >> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some >>> >> > content >>> >> > types >>> >> > >>> >> > Now, i need to achieve this task, when you are in a node (og >>> >> > context) >>> >> > taxonomy links must be have something relative to og, for example: >>> >> > >>> >> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to >>> >> > views >>> >> > for fitering only og nodes with this taxonomy term) (consider that >>> >> > i'm >>> >> > using >>> >> > Pathauto, so taxonomy/term it's aliased for example on >>> >> > "category/$category_name"). >>> >> > >>> >> > I tried with custom_url_rewrite but it's not a so simple task and >>> >> > with >>> >> > hook_menu trying to create on the fly all this path (but it's a >>> >> > little >>> >> > bit >>> >> > strong in terms of cpu cycles...). >>> >> > >>> >> > I'm using D5. >>> >> > >>> >> > Please, someone could suggest me the right way? ? :) Thank you very >>> >> > much!!! >>> >> > :) >>> >> > >>> >> > -- >>> >> > Paolo Mainardi >>> >> > >>> >> > CTO Twinbit >>> >> > Blog: http://www.paolomainardi.com >>> >> > >>> >> > -- Please consider the environment before printing this email -- >>> >> > >>> > >>> > >>> > >>> > -- >>> > Paolo Mainardi >>> > >>> > CTO Twinbit >>> > Blog: http://www.paolomainardi.com >>> > >>> > -- Please consider the environment before printing this email -- >>> > >> >> >> >> -- >> Paolo Mainardi >> >> CTO Twinbit >> Blog: http://www.paolomainardi.com >> >> -- Please consider the environment before printing this email -- > > > > -- > Paolo Mainardi > > CTO Twinbit > Blog: http://www.paolomainardi.com > > -- Please consider the environment before printing this email -- > From yuval at avramzon.net Tue Jun 30 04:29:44 2009 From: yuval at avramzon.net (Yuval Hager) Date: Tue, 30 Jun 2009 07:29:44 +0300 Subject: [development] Reusing elements in a compound CCK field Message-ID: <200906300729.45280.yuval@avramzon.net> I am writing an application in which I need a compound cck field - a nodereference and a numerical value. The underlying database table MUST keep both values in the same record (no "delta" based value matching, like CCK multigroup does), so I reverted to writing my own CCK compound field module. However, I am having a hard time understanding if I can reuse the elements declared by the nodereference and the number module for my case. I am trying, for example, to use '#type' => 'nodereference_autocomplete' in my element #process function, but maybe I do not need to define an element at all? Maybe I should just use it in hook_widget? Also, How can I convince nodereference and number to work on MY definition of #columns? This goes for validation, autocompletion and value (stripping out the "[nid:]"). I am not finding good documentation for this, and the code for other modules who do similar stuff is rather confusing (I looked at a few). Before I revert to voodoo or code duplication - can anybody shed some light on the subject? If needed, I can paste my (non working) code here. There are a few documentation points for this on the net - the best I've found is http://poplarware.com/cckfieldmodule.html by Jennifer Hodgdon. Thank you Jennifer, this is a great guide. However, this guide delegates a lot of functionality to filefield/imagefield, and my case is quite different. CCK documentation on these hooks is rather laconic, or not up to date with the latest version. This also makes me wonder if one can write a generic compound CCK field module, that will allow the user to reuse existing fields and build a new one using the UI only. But first things first - the specific case should work before the generic one :) Cheers, --yhager -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From bill at funnymonkey.com Tue Jun 30 04:48:15 2009 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Mon, 29 Jun 2009 21:48:15 -0700 Subject: [development] Reusing elements in a compound CCK field In-Reply-To: <200906300729.45280.yuval@avramzon.net> References: <200906300729.45280.yuval@avramzon.net> Message-ID: <4A49990F.6050901@funnymonkey.com> Have you seen http://drupal.org/node/119102 ? -- you might want to skip to the second page and only read comments 301-600 -- You could also check out http://drupal.org/project/education_field and http://drupal.org/project/employment_field, although the approach used in the patch will likely allow more options over time. Cheers, Bill Yuval Hager wrote: > I am writing an application in which I need a compound cck field - a > nodereference and a numerical value. The underlying database table MUST > keep both values in the same record (no "delta" based value matching, like > CCK multigroup does), so I reverted to writing my own CCK compound field > module. > > However, I am having a hard time understanding if I can reuse the elements > declared by the nodereference and the number module for my case. I am > trying, for example, to use '#type' => 'nodereference_autocomplete' in my > element #process function, but maybe I do not need to define an element at > all? Maybe I should just use it in hook_widget? Also, How can I convince > nodereference and number to work on MY definition of #columns? This goes > for validation, autocompletion and value (stripping out the "[nid:]"). I am > not finding good documentation for this, and the code for other modules who > do similar stuff is rather confusing (I looked at a few). Before I revert > to voodoo or code duplication - can anybody shed some light on the subject? > If needed, I can paste my (non working) code here. > > There are a few documentation points for this on the net - the best I've > found is http://poplarware.com/cckfieldmodule.html by Jennifer Hodgdon. > Thank you Jennifer, this is a great guide. However, this guide delegates a > lot of functionality to filefield/imagefield, and my case is quite > different. CCK documentation on these hooks is rather laconic, or not up to > date with the latest version. > > This also makes me wonder if one can write a generic compound CCK field > module, that will allow the user to reuse existing fields and build a new > one using the UI only. But first things first - the specific case should > work before the generic one :) > > Cheers, > > --yhager > > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Click. Connect. Learn. ph. 503 897 7160 From yuval at avramzon.net Tue Jun 30 06:33:22 2009 From: yuval at avramzon.net (Yuval Hager) Date: Tue, 30 Jun 2009 09:33:22 +0300 Subject: [development] Reusing elements in a compound CCK field In-Reply-To: <4A49990F.6050901@funnymonkey.com> References: <200906300729.45280.yuval@avramzon.net> <4A49990F.6050901@funnymonkey.com> Message-ID: <200906300933.27565.yuval@avramzon.net> On Tuesday 30 June 2009, Bill Fitzgerald wrote: > Have you seen http://drupal.org/node/119102 ? -- you might want to skip > to the second page and only read comments 301-600 -- > I've seen this in the past, but was happy to find out it was committed finally into CCK. Thanks for the pointer! I tested this briefly and it seem to work quite nicely. Although it doesn't comply with the "same record for all fields" requirement, I can use a simple JOIN (both on vid and delta) to overcome this. What is the status of this code? Building a site on not-released code can be quite frustrating (underlying changes, untested, upgrade path), and I prefer not to go that route if possible. My application is going to be centered around this data, and it should go into production soon - I wonder whether I should build it around content multigroup, or write my own - which will have less features, but I will have more control on, and better table structure (and thus my original question about the implementation). > You could also check out http://drupal.org/project/education_field and > http://drupal.org/project/employment_field, although the approach used > in the patch will likely allow more options over time. > These are both for D5, and the author abandoned efforts to port these to D6. I think there are more cases like this. --yuval > Cheers, > > Bill > > Yuval Hager wrote: > > I am writing an application in which I need a compound cck field - a > > nodereference and a numerical value. The underlying database table MUST > > keep both values in the same record (no "delta" based value matching, > > like CCK multigroup does), so I reverted to writing my own CCK compound > > field module. > > > > However, I am having a hard time understanding if I can reuse the > > elements declared by the nodereference and the number module for my > > case. I am trying, for example, to use '#type' => > > 'nodereference_autocomplete' in my element #process function, but maybe > > I do not need to define an element at all? Maybe I should just use it > > in hook_widget? Also, How can I convince nodereference and number to > > work on MY definition of #columns? This goes for validation, > > autocompletion and value (stripping out the "[nid:]"). I am not finding > > good documentation for this, and the code for other modules who do > > similar stuff is rather confusing (I looked at a few). Before I revert > > to voodoo or code duplication - can anybody shed some light on the > > subject? If needed, I can paste my (non working) code here. > > > > There are a few documentation points for this on the net - the best > > I've found is http://poplarware.com/cckfieldmodule.html by Jennifer > > Hodgdon. Thank you Jennifer, this is a great guide. However, this guide > > delegates a lot of functionality to filefield/imagefield, and my case > > is quite different. CCK documentation on these hooks is rather laconic, > > or not up to date with the latest version. > > > > This also makes me wonder if one can write a generic compound CCK field > > module, that will allow the user to reuse existing fields and build a > > new one using the UI only. But first things first - the specific case > > should work before the generic one :) > > > > Cheers, > > > > --yhager -- Yuval Hager [T] +972-77-341-4155 [@] yuval at avramzon.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From hans.langouche at gmail.com Tue Jun 30 08:38:17 2009 From: hans.langouche at gmail.com (Hans Langouche) Date: Tue, 30 Jun 2009 10:38:17 +0200 Subject: [development] problem with hook_menu Message-ID: <4A49CEF9.2050407@gmail.com> Hi, I'm running into a problem with the menu system. I have a 'project' content type that has a couple of child links to show either some cck field of that node or some embedded views with related content (but I think what happens on those child paths is not relevant). The problem I have is that these child paths often show the content of the parent (node) path instead of the content it's supposed to show (this will go away after clearing cache, but comes back again). Below is how I add the paths to the system, nodeapi then also adds aliases for each of those links (based on the alias of the parent link). Note that this problem also occurs when I visit the link with the real path (e.g. node/x/more, so I guess the alias system is also not the cause). Originally I didn't add in the file and file path (as the hook_menu call is in the same module as the page callback's), I added it in to try to solve this cache (?) problem. Any suggestions or tips are appreciated :-) Hans if (arg(0) == 'node' && is_numeric(arg(1)) && !arg(3)) { $_node = node_load(arg(1)); if ($_node->type == 'project') { $items = array(); $items['node/%node/more'] = array( 'title callback' => 'projecttabs_title', 'title arguments' => array(1, t('more')), 'page callback' => 'projecttabs_tabs_more', 'page arguments' => array(1), 'file' => 'projecttabs.module', 'file path' => drupal_get_path('module', 'projecttabs'), 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ); From darthsteven at gmail.com Tue Jun 30 08:45:16 2009 From: darthsteven at gmail.com (Steven Jones) Date: Tue, 30 Jun 2009 09:45:16 +0100 Subject: [development] problem with hook_menu In-Reply-To: <4A49CEF9.2050407@gmail.com> References: <4A49CEF9.2050407@gmail.com> Message-ID: Looks like you've mixed implementations of hook_menu from Drupal 5 and 6. Webform module does something similar to what you want, have a look at its code to see how it's done! Regards Steven Jones ComputerMinds ltd - Perfect Drupal Websites Phone : 0121 288 0434 Mobile : 07951 270 026 Twitter : darthsteven http://www.computerminds.co.uk 2009/6/30 Hans Langouche : > Hi, > > I'm running into a problem with the menu system. ?I have a 'project' content > type that has a couple of child links to show either some cck field of that > node or some embedded views with related content (but I think what happens > on those child paths is not relevant). ?The problem I have is that these > child paths often show the content of the parent (node) path instead of the > content it's supposed to show (this will go away after clearing cache, but > comes back again). > > Below is how I add the paths to the system, nodeapi then also adds aliases > for each of those links (based on the alias of the parent link). ?Note that > this problem also occurs when I visit the link with the real path (e.g. > node/x/more, so I guess the alias system is also not the cause). > > Originally I didn't add in the file and file path (as the hook_menu call is > in the same module as the page callback's), I added it in to try to solve > this cache (?) problem. > > Any suggestions or tips are appreciated :-) > > Hans > > if (arg(0) == 'node' && is_numeric(arg(1)) && !arg(3)) { > $_node = node_load(arg(1)); > if ($_node->type == 'project') { > ?$items = array(); > ?$items['node/%node/more'] = array( > ? ?'title callback' => 'projecttabs_title', > ? ?'title arguments' => array(1, ?t('more')), > ? ?'page callback' => 'projecttabs_tabs_more', > ? ?'page arguments' => array(1), > ? ?'file' => 'projecttabs.module', > ? ?'file path' => drupal_get_path('module', 'projecttabs'), > ? ?'access arguments' => array('access content'), > ? ?'type' => MENU_CALLBACK, > ?); > From gabor at hojtsy.hu Tue Jun 30 16:03:13 2009 From: gabor at hojtsy.hu (=?ISO-8859-1?Q?G=E1bor_Hojtsy?=) Date: Tue, 30 Jun 2009 18:03:13 +0200 Subject: [development] D7-UX: Complete nightmare In-Reply-To: <6198CF33-5C4A-4ABB-8096-AEAED87F16EB@standoutdesign.nl> References: <6198CF33-5C4A-4ABB-8096-AEAED87F16EB@standoutdesign.nl> Message-ID: <86ca3ccb0906300903i57622491y14c218c3622f45fb@mail.gmail.com> On Fri, Jun 26, 2009 at 10:42 AM, Stefan Nagtegaal wrote: > The last couple of weeks, I was trying to get into the "Drupal 7 User > Experience"-improvements the community is ?planning to make before releasing > Drupal 7. Unfortunatly, I lost track between all the different websites > (drupalusability.org / drupal.org / d7ux.org / groups.org/microproject and > so on), the enormous amount of issues and the ongoing talk of wireframes, > suggestions and idea's. Agreed it is overwhelming! Sometimes it is hard to track what is happening. You know for developers, the issue queue is the end of all means, so that is where the actual "getting into core" happens. Otherwise there is lots of wireframing, UI and UX discussions at all over the place. Even on flickr, youtube and so on. > Now, concretely what I would like to know to get started *somwhere* is the > following: > - Where do we have the exact guidelines and examples of how we are going to > work to complete this (horror)job and immense task? Is there any at all? It is not managed beyond how previous tasks like i18n development for core, fields in core or DBTNG were managed. We are working in the issue queue (d7ux tag) and using a supportive third party repository to help us work together like in the mentioned previous efforts. See http://code.google.com/p/d7ux/source/checkout > - Do we have a roadmap to complete and guide the community, and the order we > should work things out? The header and the overlay are two huge concepts in the redesign. The basics of these need to be settled, however, until the header is in, the overlay has no functional means to tie to, so there is heated work/discussion on the header. http://drupal.org/node/484820 (also often close to the top of the d7ux tagged issue queue). Other parts progress in parallel. For example, reworking the admin IA is already in the works, sections move around as appropriate in their own issues. Reworking some admin pages per mockups can be done in separate and parallel tasks. One of the other parallels is a CCK UI in core, for which we've been working on evaluating formbuilder as a possibly viable option (http://drupal.org/node/404818) > - What is the place to look at, if I want to work on it structurely and to > not lost track on all the things spread around on the different groups / > websites and issues? The issue queue is the definitive place for core development, the others support it by providing place for discussion, wireframing and such. There is nothing getting into Drupal core if there was not an issue for it, right? Direct link to the d7ux tag is http://drupal.org/project/issues/search?issue_tags=d7ux > - Is there anyone taking a lead in this, who I can talk to and discuss things > with? Totally depends on what part are you working on, there are people doing usability assessment, wireframing, implementation, IE testing, porting, etc. I am happy to help direct you to the right people. > As I'm getting up with Drupal CVS again I didn't found anything related to > the "new" (seperated again) administration section. I couldn't find any code > to rely on, or even to get an overlay-sort-of-thing working to build upon. > (perhaps I'm wrong, but I had the feeling that this would be there as *a > lot* of people are wireframing, making sketches of possible and new UI's and > discussing things that IMO doesn't even matter as long as the groundwork > isn't done yet.. It cannot get into core without the header being in. I am already personally involved in shuffling dozens of patches, so the overlay does not exist in patch form yet. We have received many bugfixes to it already however in the third party repo at http://code.google.com/p/d7ux/source/checkout (I can give you commit access in a matter of seconds, if you'd like to help!). > So, to make such a long story short: Is there anyone, or any place where I > could find things (structurely ordered, preferably by task) to start on at > least some things of the groundwork? Best thing probably is to try out what is in the repository. You'll definitely notice bugs. Note whatever you believe is missing from the groundwork. We can discussing either fixing existing bugs, or starting off separate areas of the groundwork. > I hope there are some people willing, who could help me to get going. Sure thing! Sorry I did not reply earlier, but I was totally taken for the weekend at the d7ux sprint in Utrecht (http://drupal.org/project/issues/search?issue_tags=d7uxsprint), then ha travels and internet connectivity problems. Lots of fun :) Let me know if I can help you in any other way. G?bor From paolomainardi at gmail.com Tue Jun 30 16:09:52 2009 From: paolomainardi at gmail.com (Paolo Mainardi) Date: Tue, 30 Jun 2009 18:09:52 +0200 Subject: [development] Taxonomy path OG aware In-Reply-To: References: Message-ID: I agree. But, i'm concerned about pathauto alias, for example, "taxonomy/term" has been aliased to "category/$term->name" and when i create this links thay are automatically aliased to that one. How i can manage that ? For example in my node.tpl i'm using: name) ?> With other configuration i will lost the pathauto things: name/taxonomy/term/'.$term->name) ?> I think that the only solution is to avoi totally pathauto and changing url path of term views in according to old pathauto alias... What do you think ? Thank you very much! P. On Mon, Jun 29, 2009 at 3:36 AM, Earl Dunovant wrote: > Sorry, been busy. > > I suggest you use a view instead of an alias. Given arguments (nid of > the group, termid of teh term) creating a page display of posts in the > group with that term is pretty straightforward. > > On Thu, Jun 25, 2009 at 5:22 PM, Paolo Mainardi > wrote: > > Someone have other ideas ? > > Thanks :) > > > > On Thu, Jun 25, 2009 at 4:33 PM, Paolo Mainardi > > > wrote: > >> > >> > >> On Thu, Jun 25, 2009 at 11:55 AM, Earl Dunovant > >> wrote: > >>> > >>> Yes you're right. Your question means you want to have a single > >>> taxonomy and share it across groups...you would have to use Views for > >>> that. You would clone the taxonomy_term view that ships with Views and > >>> add an argument that filters nodes by group membership. > >> > >> Yes it was i did and it's ok, but the point it's another, how to create > >> custom path for this taxonomy/term/$og->title with Pathauto ? > >> > >> Where "taxonomy/term" is "category/term-title", i need to create > >> "og-title/taxonomy/term" --> "og-title/category/term-title". > >> > >> It's a little bit more clear ? > >> > >> Thanks :) > >> > >>> > >>> You should install the advanced_help module. That's how you get > >>> detailed help on Views and a lot of other important modules as well. > >>> > >>> On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi< > paolomainardi at gmail.com> > >>> wrote: > >>> > But with og_vocab after i need to create new vocabularies for every > new > >>> > group created, i'm right ? > >>> > > >>> > On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant < > prometheus6 at gmail.com> > >>> > wrote: > >>> >> > >>> >> Try the OG Vocabulary module. It lets each group have it's own > >>> >> taxonomy. > >>> >> > >>> >> On Wed, Jun 24, 2009 at 9:14 AM, Paolo > >>> >> Mainardi > >>> >> wrote: > >>> >> > Dear All, > >>> >> > > >>> >> > I need your opinion and suggestions on a (for me) complicated > task. > >>> >> > > >>> >> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some > >>> >> > content > >>> >> > types > >>> >> > > >>> >> > Now, i need to achieve this task, when you are in a node (og > >>> >> > context) > >>> >> > taxonomy links must be have something relative to og, for example: > >>> >> > > >>> >> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument > to > >>> >> > views > >>> >> > for fitering only og nodes with this taxonomy term) (consider that > >>> >> > i'm > >>> >> > using > >>> >> > Pathauto, so taxonomy/term it's aliased for example on > >>> >> > "category/$category_name"). > >>> >> > > >>> >> > I tried with custom_url_rewrite but it's not a so simple task and > >>> >> > with > >>> >> > hook_menu trying to create on the fly all this path (but it's a > >>> >> > little > >>> >> > bit > >>> >> > strong in terms of cpu cycles...). > >>> >> > > >>> >> > I'm using D5. > >>> >> > > >>> >> > Please, someone could suggest me the right way ? :) Thank you > very > >>> >> > much!!! > >>> >> > :) > >>> >> > > >>> >> > -- > >>> >> > Paolo Mainardi > >>> >> > > >>> >> > CTO Twinbit > >>> >> > Blog: http://www.paolomainardi.com > >>> >> > > >>> >> > -- Please consider the environment before printing this email -- > >>> >> > > >>> > > >>> > > >>> > > >>> > -- > >>> > Paolo Mainardi > >>> > > >>> > CTO Twinbit > >>> > Blog: http://www.paolomainardi.com > >>> > > >>> > -- Please consider the environment before printing this email -- > >>> > > >> > >> > >> > >> -- > >> Paolo Mainardi > >> > >> CTO Twinbit > >> Blog: http://www.paolomainardi.com > >> > >> -- Please consider the environment before printing this email -- > > > > > > > > -- > > Paolo Mainardi > > > > CTO Twinbit > > Blog: http://www.paolomainardi.com > > > > -- Please consider the environment before printing this email -- > > > -- Paolo Mainardi CTO Twinbit Blog: http://www.paolomainardi.com -- Please consider the environment before printing this email -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From neetu at valiantica.com Tue Jun 30 16:55:21 2009 From: neetu at valiantica.com (Neetu) Date: Tue, 30 Jun 2009 09:55:21 -0700 Subject: [development] [Job Poster] -Drupal Theme Developer Message-ID: Location: Schaumburg, IL Duration: 6 months Job title: Drupal Theme Developer Description This is a position for a Drupal Theme Developer. - Deep understanding of Drupal template system with the ability to write php-based template override functions for menus, pages, panels, feeds, views etc. - Strong experience writing W3C valid XHTML/CSS code in a cross browser environment - Extensive jQuery and AJAX experience - knowledge of Yahoo YUI library is a plus - Intense attention to detail - Proven track record and portfolio - PHP experience required - Experience creating theme templates in Drupal 6 - flash redevelopment a plus but is not required Thank you for your time. Neetu ----------------------- neetu at valiantica.com YahooIM: neetuvaliantica -------------- next part -------------- An HTML attachment was scrubbed... URL: From prometheus6 at gmail.com Tue Jun 30 20:11:45 2009 From: prometheus6 at gmail.com (Earl Dunovant) Date: Tue, 30 Jun 2009 16:11:45 -0400 Subject: [development] Taxonomy path OG aware In-Reply-To: References: Message-ID: > I think that the only solution is to avoi totally pathauto and changing url > path of term views in according to old pathauto alias... You need to set up arguments for the group node and the term. If you set them up in that order, your view's path setting would be node/%/category/% Interestingly enough, you can use node titles and term names as arguments so in theory you can use them in the url. I haven't tried using node titles. From paolomainardi at gmail.com Tue Jun 30 20:32:04 2009 From: paolomainardi at gmail.com (Paolo Mainardi) Date: Tue, 30 Jun 2009 22:32:04 +0200 Subject: [development] Taxonomy path OG aware In-Reply-To: References: Message-ID: <6B998E88-8C5E-4906-B85A-0A7A04C9067F@gmail.com> Il giorno 30/giu/2009, alle ore 22.11, Earl Dunovant ha scritto: >> I think that the only solution is to avoi totally pathauto and >> changing url >> path of term views in according to old pathauto alias... > > You need to set up arguments for the group node and the term. If you > set them up in that order, your view's path setting would be > > node/%/category/% Hi Earl, I will try with this configuration, without node in front, only this: $og->title/category/$term->title Because old pathauto scheme. My concern it's only on howto set og context on this views. Thanks Paolo Mainardi CTO Twinbit http://www.paolomainardi.com > > Interestingly enough, you can use node titles and term names as > arguments so in theory you can use them in the url. I haven't tried > using node titles.