开发者

Drupal 7 Ubercart, custom blocks displayed in external article based on product

开发者 https://www.devze.com 2023-04-12 02:32 出处:网络
I\'m currently creating an ecommerce site using Drupal and the Ubercart module,for each product I need to have the option to display an article (blo开发者_C百科g/story) that relates to that specific p

I'm currently creating an ecommerce site using Drupal and the Ubercart module, for each product I need to have the option to display an article (blo开发者_C百科g/story) that relates to that specific product. I also need the article pages to display related products. I initially intended to do this via taxonomy, i.e. using tags to link the products and articles and creating blocks with the necessary filters but I thought that this would become messy as the product catalog grows. I know that i could just create a custom field and write my own sql queries to grab the relevant content and display it but i was wondering if there's any built in functionality (or modules) that would enable me to link an an article to a product during the product creation process. Like a drop down menu on the add product screen where i could select and relevant article.

I've looked over many module specs and forum posts but can't seem to find a solution to this kind of problem.

Any pointers would be very much appreciated.


Use the References module for referencing to other nodes or users.

Install this module, then add module type of this = Reference.

Notes:

  • It also support Views for selecting, so you got powerful of selecting needed nodes.
  • For showing you can use Views, where set argument or filter to referenced field.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号