Jump to:

10987 Posts in 2724 Topics by 1817 members

All other Modules

SilverStripe Forums » All other Modules » TagField module not autosuggesting

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 787 Views
  • KINKCreative
    Avatar
    Community Member
    56 Posts

    TagField module not autosuggesting Link to this post

    Hi guys, I've downloaded the latest TagField module code and did a dev/build. Added the Tag class

    <Tag.php>

    class Tag extends DataObject {
          static $db = array(
             'Title' => 'Varchar(200)',
          );

          static $belongs_many_many = array(
             'Articles' => 'Article'
       );
    }

    and incorporated the relation into my Article class...

    <Article.php>

    ...

    static $many_many = array(
          'RelationTags' => 'Tag'
       );

    ...

    $tagField = new TagField('RelationTags');

    The field is the added accordingly to the fieldset. The Articles are managed via a DOM in a Category class, as follows:

    <Category.php>

    public function getCMSFields()
       {
          $f = parent::getCMSFields();
          $articleManager = new DataObjectManager(
             $this, // Controller
             'Articles', // Source name
             'Article', // Source class
             array(
                'isPublished' => 'Published',
                'isFeatured' => 'Featured',
                'Title' => 'Title',
                'AuthorName' => 'Author',
                'Created' => 'Created',
                'LastEdited' => 'LastEdited',
             ), // Headings
             'getCMSFields', // Detail fields (function name or FieldSet object)
              '',          // Filter clause
              ''          // Sort clause
             // Join clause
          );

    The field does appear in the popup, saves the info, but there is no interactivity on the field. Am I missing something? Feels like the javascripts/jqueries etc are not even loading.

    Thanks!

    Attached Files
  • mayko
    Avatar
    Community Member
    3 Posts

    Re: TagField module not autosuggesting Link to this post

    Same problem here. Any suggestions?

  • Pipifix
    Avatar
    Community Member
    54 Posts

    Re: TagField module not autosuggesting Link to this post

    Me too. Are there some helpful explanations?

  • alvonso
    Avatar
    Community Member
    6 Posts

    Re: TagField module not autosuggesting Link to this post

    For me the newest TagField module from github worked.
    https://github.com/chillu/silverstripe-tagfield/

  • alvonso
    Avatar
    Community Member
    6 Posts

    Re: TagField module not autosuggesting Link to this post

    For me the newest TagField module from github worked.
    https://github.com/chillu/silverstripe-tagfield/

    787 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.