See the Mailing lists or Drupal Issue queue. There are also various working groups on groups.drupal.org

Categories as Menu

I created a category "Countries" that I would like to show as a Menu on the right navbar. Example

Germany
France
Italy

when you click on these links it shows all nodes (content) that was assigned to that category?

I tried the Menu creation but I do not know what to put in the Path parameter.

Thanks

XML parsing

I've been poking around Drupal's XML-handling functions and don't see anything that provides simple XML-to-array conversion. To parse XML, it looks like you have to create your own parser, which means writing several functions for tag handling, etc. It would be nice to be able to do something like the following, which uses Technorati's REST API retrieve a list of blogs that link to a URL:

  $request = "http://api.technorati.com/cosmos?key=$mykey&url=$url";
  $result = drupal_http_request($request);
  $vals = xml2array( $result->data );
  $items = $vals['tapi'][0]['document'][0]['item'];
  foreach ($items as $item) {
    if ($item['nearestpermalink']) { 
      $links[] = l($item['weblog'][0]['name'], $item['nearestpermalink']);
    }

Here's the xml2array function that would do the heavy lifting:


function xml2array( $textXml )
{
$regExElements = '/<(\w+)([^>]*)>(.*?)<\/\\1>/s';
$regExAttributes = '/(\w+)="([^"]*)"/';
preg_match_all( $regExElements, $textXml, $matchElements );
foreach ( $matchElements[1] as $keyElements=>$valElements ) {
if ( $matchElements[2][$keyElements] )
{
preg_match_all( $regExAttributes, $matchElements[2][$keyElements], $matchAttributes );
foreach ( $matchAttributes[0] as $keyAttributes=>$valAttributes )
{
$arrayAttributes[ $valElements.' attributes' ][$matchAttributes[1][ $keyAttributes ] ] = $matchAttributes[2][ $keyAttributes ];

E-commerce issue

Hello,

I found the following bad scenario:
1. place an order and choose a payment through any 3PP system (such as PayPal for instance)
2. when you will be redirected to PayPal site press Back button to return to Drupal site (for instance, user changed his mind as for payment system).
3. you will return to Drupal site but your cart will be emptied already.

Why are languages translations strings in Drupal stored on the databases

Why are languages translations strings in Drupal stored on the databases rather on an Xml or Php file?
Couldn't this affect speed or create overhead for the system.
thanks

Strange issue with cache

Hello

I've found the strange issue with cache. The problem is the following:
I have a project "site" on my localhost. The URL for the forum must be http://localhost/site/?q=forum and it is such in the browser.

But the corresponding cache record is "http://localhost/site/site/?q=forum".
"/site" is duplicated.

Does blogapi module allow you to change node->created?

I'm doing some work with posting and updating nodes via blogapi. For the most part, everything is going great, but I'm having trouble with manipulating the "created" field. I know that's kind of a weird thing to do, but I've got a special case where it makes sense. it seems I can pass the date to "node->date" which gets tested in node_validate, but as far as I can tell doesn't seem to be getting saved anywhere in the node table or node revisions, is there something I'm missing? What does Node->date coorespond to?

Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core