Open coolcat-creations opened 8 years ago
The article form field doesn't support categories. There is a category form field, but it also prints only the name of it. If you want to change the layout of the article field, then feel free to make a PR with a change of this file https://github.com/joomla-projects/custom-fields/blob/custom-fields/components/com_fields/layouts/field/prepare/modal_article.php.
I can´t as i´m not a dev :-)
Do you want to know how? Joomla would benefit if more people can do layout pull requests :metal: . It's very easy.
of course i want! :)
Don't worry, if something goes wrong, it is always possible to fix it. Let me know if it works.
Did it work?
Still on my to do list :-D But i will try it !!!
Ok i had a look but thousand ???? over my head. :-D How can i retrieve the link of the article? ok maybe by just echo "/index.php?option=com_content&view=article&Itemid=xy" but i really do just basic if else stuff thats all i´m able to (at least for now)
Use something like ContentHelperRoute::getArticleRoute($article->id, $article->catid);
. This should generate a link. Glad you are trying it!!
I'm marking this one as a feature for later. Some more interesting options can be added on the article field, like showing the description, images, etc.
The Article Field is a selection from Articles. It would be good to have the possibility to select a Parent Category for this selection, and to define how the output should be. For now it´s just the title as a plain text. I think it´s more useful as article link?