I clear the default value [gmap] to null,but it doesn't work.
What should I do if I want a optional field ,people can just ignore it and show no map?

Great jobs!

Comments

zzolo’s picture

Assigned: Unassigned » zzolo

Originally, I thought there had to be at least [gmap ]. But you are right, there should be the ability to have nothing.

zzolo’s picture

Status: Active » Fixed

fixed in dev version.

zilla’s picture

Category: support » bug
Status: Fixed » Active

nope - reopening: i am now *unable* to save a default macro for a CCK gmap field (odd) - works when manually entered in node, but default can not be saved...

perhaps a leave as default with a little ajaxy 'empty this' button to wipe text?

zzolo’s picture

@zilla

The button is a little unnecessary.

I will look into this soon. I want to integrate some SimpleTests into this module as well, so that I can easily see these problems. And testing is awesome.

zilla’s picture

i hear you on the button, just meant that if this is 'by design' then there should be an easy way for users to erase it without having to read a text instruction placed by admin like 'if you don't want to be on the map...'

zilla’s picture

still not seeing any entered "default value" appear in the node add process - is this by design??? for now i just do a manual cut and paste of a macro each and every single time which is not a realistic thing to present to users (fine for admin, though tedious)

zzolo’s picture

Just to clarify, you are using the CCK Default Field field when creating the CCK field? Every CCK Field allows for defaults. It is usually collapsed by default.

zilla’s picture

yes, i paste the macro into the default field (where the default macro is to be placed) and then when i go to create a node with the field it is still empty....

zzolo’s picture

@zilla

Sorry. I am currently writing tests for this module, and for myself for the first time, so its a learning experience. This will allow a lot easier maintainability and stability for the module. I will update as soon as my time allows.

zilla’s picture

@zzolo - thanks! glad that you're working on it period, figure a fix will come eventually - otherwise the field works just fine!

zzolo’s picture

Status: Active » Fixed

New dev version should have default problems fixed in it. Probably wont show up as a release until tomorrow.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.