- Issue created by @winnie80
- 🇨🇦Canada SKAUGHT
https://www.drupal.org/project/extra_field →
the bidding form should be an extra field!
- 🇨🇦Canada SKAUGHT
- will need field install sets for sites being updated. *above comment placement
- countdown now has direct theme function (block not needed this way now) - 🇮🇩Indonesia winnie80
thank you.
so the solution are
install that "extra_field" module
and update "auctions" module to the latest ?I'm not following, what do you mean by
need field install sets for sites being updated. *above comment placement
- 🇮🇩Indonesia winnie80
I have tried by update "auctions" to 2.1.x-dev
And install "extra_field" module, but I could not find "BiddersForm" as renderer.The countdown is not visibile.
But the bidding form is still not being renderer.
See the screenshot
Left is content type "auction_item" , new custom content type where only countdown is being shown
Right is content type "auction" , default "auctions" module content type.I have checked auctions_node_view() within auctions.module
Could it not be changed and stright to line 96/** * Implements hook_ENTITY_TYPE_view(). */ function auctions_node_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) { $auctionItem = $entity->hasField('field_auction_item') && !$entity->get('field_auction_item')->isEmpty() ? $entity->field_auction_item->referencedEntities() : FALSE; if ($auctionItem) {
Or is there a reason why the bidding form is visible limited to content type "auction" ?
- 🇨🇦Canada SKAUGHT
@winnie80
sorry for the confusion, what i've put into comment #3 and 4 are outlines for me/us todo to make it the module easier for non-coders.. Extra Field provides a plugin we can 'shunt' the auction form on any node.if you want to use yourself now and can code it: you can copy the auctions_node_view() in to your own module (rename it to your module), add in the bundle you want -- handle the fields as you need... like we do at this time.
---
have checked auctions_node_view() within auctions.module
Could it not be changed and stright tono: this assumes everyone in every site will always name the field 'auction_item' -- this is not dynamic enough. this is what Extra Field will work with.