How can I change the default name when adding categories to my component #193
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#193
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I would like to change "Game Category" to "Categories" like default Joomla! articles does. I know I can do a language override but was wondering if it could be done directly prior to compile time.
Sorry for the slow reply here... in the xml of the category field add the following:
That should do it, if you still having issue, check out the code here on lines 1434 in the complier where it start building that logic. Then follow the
$this->catOtherName
class variable around to see how we use it.Hope this helps!
@Llewellynvdm thanks. That worked. I had to look at the code because you have to also set: view="view name" and views="views name". I modified the Fieldtype to include these values. Thanks for pointing me in the right direction. I would've never known about these other options.
Okay great, you are welcome.
But hey you can find tones of hidden tricks in JCB if you read over the compiler and try to understand how the compiler does what it does, since once you manage that you will become empowered developer of JCB 👍