test
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • Mr.Cat Moderator
    #1072502

    @thesdhotel,

    Here is some issue with server update. We’re fixing it.
    Regards

    Wisdom is not a product of schooling but of the lifelong attempt to acquire it.

    thesdhotel Friend
    #1073438

    Could you add support for the new "Articles" Field by Regular Labs ([](https://www.regularlabs.com/extensions/articlesfield
    This is a super useful extension that adds a Custom Field where you can select from a List of Articles (to connect articles to another article). Essentially what this does, it stores in the "value" field the ID of the selected articles, and then in the frontend it displays the Title of the selected articles.
    It should be simple to add support for this. The only thing you would have to do is, in the helper.php of content, add a case ‘articles’ : (similar to what you have with case ‘list’ :, the behavior is the same) and in that case, simply retrieve the Title of the Article from the ID (the value is the ID) and display the title of the Article as the frontend_value. (Keep in mind that this field works the same as "List" case, so multiple values are possible)

    @thesdhotel For the "Articles" Field, if there are more people interested in, we’ll implement it.

    I managed to do the code for the Articles Field myself… If you want to officially add support for the Articles field, here is the code… it’s very simple (just get the Title for frontend_value):

     case 'articles':
     $fdata['ct'.$field->id]['value'] .= $field->value;
     $article = JTable::getInstance('content');
     $article->load($field->value);
    $fdata['ct'.$field->id]['frontend_value'][] = $article->get('title');
    break;
    • This reply was modified 7 years, 1 month ago by  thesdhotel.
    • This reply was modified 7 years, 1 month ago by  thesdhotel.
    • This reply was modified 7 years, 1 month ago by  thesdhotel.
    • This reply was modified 7 years, 1 month ago by  thesdhotel.
Viewing 2 posts - 16 through 17 (of 17 total)

This topic contains 16 replies, has 4 voices, and was last updated by  thesdhotel 7 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum