I have successfully saved the custom field value with
$entry->meta('field.splid',$sid);
$entry->save;
Now I would like to fetch the entry id or entry object in some other page using $sid.
Can anyone help me with this asap.
Thanks in advance.
Reported on Movable Type 4.0x
We'd need to know what $sid contains before offering any feedback. That said, if you've already got an entry object in $entry, you can get the id by simply using $entry->id.
Hello.
I'm running 4.34 version
Once that the export module does not support the custom fields, I'm trying to hack the lib/mt/ImportExport.pm module.
basically, I want to export (and then import) two custom fields that store their values in in entry_meta_vchar_idx and the other on entry_meta_vclob from the table mt_entry_meta.
So, in the Export sub routine, I changet the template to include my two custom entry fields:
ENTRYDATARESUMO_ARTIGO:
<mt:entrydataresumo_artigo>
-----
ENTRYDATAIMAGEMDESTAQUE640X350:
<mt:entrydataimagemdestaque640x350>
-----
Then, in the Import Sub routine, I added the following content after the ALLOW PINGS test:
} elsif ($key eq 'ENTRYDATARESUMO_ARTIGO') {
$entry->meta("field.resumo_artigo", $val);
} elsif ($key eq 'ENTRYDATAIMAGEMDESTAQUE640X350') {
$entry->meta("field.imagem_destaque_640x350", $val);
unfortunately I have no success importing the custom fields above in the new database.
Any ideas?
thanks for any help