Lack of interest Content Type Name Phrase

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

xf_phantom

Well-known member
It would be nice if xenforo would provide the contentTypePhraseKey from a central place.

To avoid copy and paste code or some ugly hacking/improvisement , i would have to get the attachment handler (IF IT EXISTS for my content type) and call attachmentHandler->getContentTypePhraseKey just to get the phrasename of a content type. (because this is ATM the only place where it's available in the core)

What about moving it to the content_type or content_type_field table?
Then a simple $model->getContentTypeField('foo', 'phrase_key'); and/or $model->getContentTypesWithField('phrase_key') (= array with all phrasenames) would work:)
 
Last edited by a moderator:
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom