Search the FirstSpirit Knowledge Base
Dear All,
i am doing the migration from FS4.2 to 5.1,
FS 4.2 code,
$CMS_VALUE(#nav.ref.meta("identifier","inherit"))$
How to use the above code in the FS5.1?
Regards,
Jayakumar.C
Hi,
you could use the meta functionality in these following objects:
Regards
Marcel
Hi Marcel,
Thanks for your reply,
i need some more information,
can i use below code in the FS5 system?
$CMS_VALUE(#nav.ref.metaFormData("identifier","inherit"))$
Regards,
Jayakumar
Hi Jayakumar,
could you specify what you want?
Regards
Marcel
Hi Marcel,
i am doing the migration work,
The code available in the FS 4.2 is below,
$CMS_VALUE(#nav.ref.meta("identifier","inherit"))$,
i want to write above code in the FS5 system.
.meta is deprecate API in the FS5
Regards,
Jayakumar.C
Hi Jayakumar,
I think you want to get meta information about a page reference in a navigation function?
So you could use your code.
Did you use this one in a navigation function?
Regards,
Marcel
Hello Marcel,
yes i used in the natvigation function.
Since the .meta is deprecated in the FS 5.
So i need the replacement of .meta in the FS 5.
FS 4 code ,
$CMS_VALUE(#nav.ref.meta("identifier","inherit"))$
FS5 Code,
?
Regards,
Jayakumar C
Hi,
look here, there isn't any information about deprecated. I had used this code in some projects too and I didn't have any problems
Regards,
Marcel
Hi Jayakumar,
the method meta() is not officially declared as deprecated. Maybe you mean the method getMeta() which is declared as deprecated and is probably internally used by meta(). The fact that getMeta() is deprecated hasn't any influence on meta(). Maybe e-Spirit will migrate meta() to use getMetaFormData() in future releases.
You can still continue using the above code.
Best regards
Sahin