How do I add these features to my Drupal site?

Please help! I’m trying to add these features to my social media site’s feed:

  • An add a post page with a standard add a post form (add media and/or text) with the option to upload that post to a specific category or taxonomy term, like “covid-19” in “news”, “super bowl” in “sports”, “Jim Carey” in “comedy”, or “movies” in “entertainment”. Basically creating categories for the feed and having more than one public feed that users can add a post to. In the above case, you have the option of posting to one of 4 feeds total, while there are a total of 8 categories or taxonomies

  • A home/user feed page with a (drop down) filter to filter the user’s feed/posts by:

    • Show a specific taxonomy term like “news”, “sports”, “comedy”, or “entertainment”, and then be able to select the taxonomy term/category for each. For example, the user select “news”, then selects “covid-19”, it should display all posts/feed for “covid-19” in “news”, which it is able to do because users select a taxonomy/category to upload their post to as a part of the add a new post form/process mentioned above
    • Show ALL posts/filter off, this should display all of the posts/feed made by any user. Basically an option for a standard social media feed.

This is my current setup:

  • MAMP stack (Mac, Apache/nginx, MySQL/Maria, PHP) (currently on DDEV)

  • Drupal 9, using OPEN SOCIAL distribution (^11.0)

This is what I’ve tried:

  • Installed and setup Open Social distribution (comes with a page LINK for adding posts and a standard home/user feed page WITHOUT FILTER already setup)

  • setting up the names of the taxonomy terms (“news”, “sports”, “comedy”, and “entertainment”, with a few specifics inside the taxonomy term’s fields like “covid-19” field in news taxonomy, “nfl” field in sports taxonomy, “World Cup” field in sports taxonomy, “standup comedy” field in comedy taxonomy, “movies” in entertainment taxonomy. HOWEVER AM CONFUSED ON IF THIS IS THE CORRECT SETUP USING FIELDS inside of taxonomy terms. I imagine it should be a taxonomy term within a taxonomy term but don’t see this as an option? Is this even possible to do with taxonomy terms or should I use custom code/ something else?)

  • looked into webforms module and features of the forms in core. What would I need to add to this/these or what other solutions/ custom code can achieve the features I need?

  • I’ve also looked into using the group feature which is already installed in the Open Social distribution I’m using (not sure if it’s in core or not) but I’m not positive if it would be a solution to what I need. I was wondering if there’s a way to achieve these features using this along with taxonomy or maybe just using groups as the taxonomy terms like “news” and “sports” and adding the specifics like “covid” and “Boxing” somehow into those groups, or making those specifics the taxonomy terms? If this still won’t work, what other solutions/ custom code should I go with?

I’m very sorry I’m still pretty new to Drupal but I’m assuming the solution is a combination of Taxonomy terms, forms, and views (any help with views greatly appreciated), and maybe added code/other or the group module included in Open Social? ANY help or input is greatly appreciated. Thank you to anyone who reads this in advance!

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

How do I add these features to my Drupal site?

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.