Download the PHP package su-sws/stanford_related_content without Composer

On this page you can find all versions of the php package su-sws/stanford_related_content. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package stanford_related_content

Stanford Related Content

Version: 7.x-1.x-dev

Maintainers: cjwest Changelog.txt

The Related Content feature is a Drupal Features module for displaying aggregated content. It allows you to create relationships between different content and can display this related content on a single page. Contains a taxonomy, Related Content; and a term reference field to be added to an entity.

Sub Modules

These modules add functionality needed to make the related content function. For each content type you'd like to include, enable the corresponding module.

Installation

When enabling the submodules (listed above) check that the dependencies are met, since each submodule depends on one or more other Stanford feature modules. To install stanford_related_person, for example:

  1. Install this module like any other module. See Drupal Documentation
  2. Install and enable Stanford Person along with the submodule Stanford Person Grid View
  3. Enable Stanford Related Content and Stanford Related Person

Configuration

In order to understand and create relationships with Related Content, there are a few planning considerations to make. As conceived, Related Content relationships can be presented on any “page” that is created with the “Stanford Page” content type. This page serves as the one-to-many relationship that presents the aggregated content. The “many” content comes from other content types - currently, news, events, and people - that will be presented as abbreviated block lists on the presentation page. In order to create the relationship, a vocabulary of “related content” taxonomy terms must be defined and selected in both the target and aggregate content nodes.

Upon installation of the related content feature module, there will be three key additions that site owners should be aware of:

  1. A “Related Content” vocabulary taxonomy list is created but requires filling in of terms. These terms will be specific to your site.
  2. Once the terms are defined, new checkboxes are added to the news, events, and person node edit form allowing you identify content to aggregate by selecting terms from the Related Content vocabulary.
  3. Similarly, Related Content checkboxes are also added to the Stanford Page content type node edit form. When editing a Stanford Page you can select terms that will add related content to the page display of for that node. Here are the steps to use Related Content:

Add terms to the Related Content vocabulary

  1. From the Site Actions menu, select Manage Taxonomies
  2. Select the Related Content vocabulary
  3. If the vocabulary terms are there, proceed to the next section otherwise, select Add
  4. Type your terms into the text area, one per line
  5. Scroll down and select Add again
  6. When the page refreshes, check that you entered the new terms properly

Identify your target page for related content

  1. Navigate to the page (or select from the Manage All Content list) that you wish to have display related content. Your target page must be a Stanford Page type node.
  2. Select Edit
  3. On the edit form, scroll down until you see Related Content
  4. Select one term that you wish to match and aggregate to this page
  5. Scroll to the bottom of the edit form and select Save

Tag your content

To tag your content, you will select the same terms on all the pieces of related content.

  1. Navigate to the piece of content you would like to include
  2. Select Edit
  3. On the edit form, scroll down until you see Related Content
  4. Select all terms that apply to this page
  5. Scroll to the bottom of the edit form and select Save

Check your results

Navigate to the page on which the content is to display and verify it is now displaying as expected.

Troubleshooting

If you're having trouble with having events display, check the dates on those events and make sure that they are upcoming.

If you are experiencing issues with this module try reverting the feature first. If you are still experiencing issues try posting an issue on the GitHub issues page.

Contribution / Collaboration

You are welcome to contribute functionality, bug fixes, or documentation to this module. If you would like to suggest a fix or new functionality you may add a new issue to the GitHub issue queue or you may fork this repository and submit a pull request. For more help please see GitHub's article on fork, branch, and pull requests


All versions of stanford_related_content with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^1.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package su-sws/stanford_related_content contains the following files

Loading the files please wait ....