Forums / Developer / how to get value of Enum (not name)?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

how to get value of Enum (not name)?

Author Message

Vytautas Germanavičius

Friday 19 August 2005 3:59:26 am

I know Enum is deprecated, but i could not find any other way to do following:

I need to know users zodiac, and i made:

Choose your zodiac:
Option name: Vė¸ys(Cancer)
Option value: images/zodiac-cancer.gif

Problem, that i can get only word "Vė¸ys(Cancer)", but no way to get name of image.
With english it's no problem, but in lithuanian zodiac names has utf-8 symbols, which i cannot(and do not want because of translations) use for filenames.

{set-block scope=root variable=cache_ttl}0{/set-block}