TechMonkey Posted February 5, 2014 Posted February 5, 2014 Banging my head against a wall here. Trying to extend the External and internal types to other categories. Any examples I can find are using the older conventions and I can find nothing that works. Anyone got entry types working in 1.4.10? I have $vocab_override["en"]["type.E"] ="External"; $vocab_override["en"]["type.J"] ="Timetabled"; $vocab_override["en"]["type.C"] ="Club"; In my config file and $vocab["type.I"] = "Internal"; $vocab["type.E"] = "External"; $vocab["type.J"] = "Timetabled"; $vocab["type.C"] = "Clubs"; in my lang file. No joy, the drop down and the key stays the same.
TechMonkey Posted February 6, 2014 Author Posted February 6, 2014 To answer my own question it was actually very easy in the end. You don't to add anything to the Lang file. In your config.inc.php you add the vocab overrides for each key. Then use unset($booking_types); $booking_types[] = "A"; $booking_types[] = "B"; ... to initialise the types, one for each vocab override. The first unset line is important as it clears the defaults..
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now