Module development
Replacing the File in Image Content Types
Hallo,
I installed TinyMCE, Image Assist and the TinyMCE-Image-Assist-Plugin. It works all right.
But when I change an image-node, the changes are not applied on the pages.
For example: I have a Portrait in an image node. This Portrait is inserted on five pages (with image assist, not html but with[...]). I change the file in the image node. After this, the image is not shown in the expectad way, it is gone- I have to do "update" on each inserted place to have the new version visible....
Could anyone tell me
a) if it should be normal, that the image is shown in the newest version, when I change the node
b) some ideas, what I could do to achieve a)
Regards
Adriana
Internet Explorer Print Loses User Context
I have a situation with Printer-Friendly where I dynamically create the logo displayed on the page to be printed. This works fine in Firefox. However, in Internet Explorer. the correct logo is not displayed.
I discovered that in Internet Explorer, the printer-friendly page comes up with the correct logo in the browser. But, when "Print" (or "Print Preview") is clicked, the browser makes another httpd call to the site. This call contains NO context info: No user, group, $_SESSION, referrer info, nothing. Therefore, my program cannot select the correct logo.
Does anyone understand what's going on here, and have any suggestions?
Thanks.
XML Sitemap Module, not compatible with latest Drupal
I installed the XML Sitemaps module and this is what I get:
incompatible XML Sitemap 5.x-1.6 Creates an XML site map in accordance with the sitemaps.org specification.
This version is incompatible with the 6.2 version of Drupal core.
incompatible XML Sitemap: Engines 5.x-1.6 Submits site map to search engines.
This version is incompatible with the 6.2 version of Drupal core.
incompatible XML Sitemap: Node 5.x-1.6 Adds nodes to the site map.
This version is incompatible with the 6.2 version of Drupal core.
incompatible XML Sitemap: Term 5.x-1.6 Adds taxonomy terms to the site map.
This version is incompatible with the 6.2 version of Drupal core.
incompatible XML Sitemap: User 5.x-1.6 Adds user profiles to the site map.
This version is incompatible with the 6.2 version of Drupal core.
Is there any working modules to replace this one, since its obviously not being cared for/updated/monitored?
Sorting arrays occurs a problem with translation output
In a cck field "text"->"select" I added some arrays to the "allowed php code" under the "allowed values". To the content type "userprofile"
$array = array(
"af" => t("Afghanistan"),
"al" => t("Albania"),
"dz" => t("Algeria"),
"ad" => t("Andorra"),
...
"ye" => t("Yemen"),
"zm" => t("Zambia"),
"zw" => t("Zimbabwe")
);
return $array;If I put sort $array; above the return then there occurs a problem to the output. E.g. I choose "Albania" in my userprofile then the same is shown in the output. But if I switch to another language then the output is different... e.g. "germany" or something like this.
The goal is to sort the labels in every language I chose form the language switcher.
Anybody could give me a tip to solve my problem?
Integrating IMCEimage field with my module
Hi there,
I'm creating my own module which sets up a custom content type with just a standard title (No 'body') and a series of custom fields. One of which is an image field where I want people to attach/modify an image link.
I've got two questions:
1) I have been in the past using the IMCE CCK module which allows me to add a IMCE field when creating a custom content type through the CCK interface, but how can I create this type of field directly within my own node create/edit form declaration in my own developed module?
Originally I had the following for an image field:
$form['mainimage'] = array(
'#type' => 'file',
'#title' => t('Main image'),
'#description' => t('Main image field for Cartoon of day block'),
'#default_value' => isset($node->mainimage) ? $node->mainimage : '',
);After a good search around, I couldn't find anything which gave any hints, so I tried swapping:
'#type => 'file',with:
'#type => 'imceimage',Which actually produces the "[Add image]" link, but doesn't do anything when you click onto it. I think because its missing a fieldname from the end of the URL, but i'm not sure.
Am I on the right tracks?
Multi-site multi-developer development with CCK
I have concerns about CCK. It seems to me that the promise of CCK is rapid form development, but how do teams handle keeping their data synchronized across platforms?
For example, I am accustomed to working on Open Source projects where each developer uses their own sandbox: their own Apache, Drupal, CSV/SVN and MySQL. All code changes are checked into a central repository and can be tagged for releases. All database changes are included as update hooks.
But how does one keep CCK under such control? We have discussed sane options such as the Backup-Migrate module and dbscripts to insane options such as database revision control or doing diffs on the database.
It seems to me that Drupal provides a clean way to manage this otherwise unruly behavior via update hooks, and that most developers who use CCK are not working on such a team. That is, they tend to be sole developers who simply keep a backup of the entire site.
