Giter Site home page Giter Site logo

ucdavis / sitefarm_seed Goto Github PK

View Code? Open in Web Editor NEW
32.0 21.0 16.0 1.42 MB

SiteFarm Drupal base install profile.

License: GNU General Public License v2.0

CSS 5.72% JavaScript 50.83% HTML 6.20% Ruby 0.02% PHP 26.52% Gherkin 10.70%
drupal-8 php drupal-profile

sitefarm_seed's Introduction

SiteFarm Seed

SiteFarm Seed is a base profile for Drupal 8 meant for extending by a custom built sub-profile.

It provides sensible defaults and features that most websites will need.

Documentation

Documentation is found in the /docs or at github https://github.com/ucdavis/SiteFarm_seed/tree/8.x-1.x/docs.

Test Coverage

SiteFarm Seed has complete test coverage with both PhpUnit and Behat.

Features

FYI, the following links show fully themed components. SiteFarm Seed does not include any theming so that you can implement theming however you need something to look.

  1. Sensible Defaults: We did the tedious work that most websites need so you don't have to
  2. Content Types: Basic Page, Article, Event, Person, & Photo Gallery
  3. Block Types: Basic Block, Focal Link, Focus Box, Hero Banner, Marketing Highlight, & Marketing Highlight - Horizontal
  4. User Roles and Permissions: Contributor, Editor, Site Manager, Site Builder, & Administrator
  5. Image Styles: Pre-built images styles are ready to be overridden to match a custom theme
  6. Views: Dozens of Views create blocks and pages ready for content
  7. Polished: Lots of Drupal 8's rough edges have been smoothed out for regular day-to-day users

Example Sub-Profile template

An example template for using SiteFarm Seed with a sub-profile can be found on github. https://github.com/ucdavis/SiteFarm-distro-template

Composer is a requirement.

sitefarm_seed's People

Contributors

ahorn-ucd avatar cboyden-ucb avatar cfblack avatar dearmond avatar mrkmiller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sitefarm_seed's Issues

Article Views need to be refactored so they are not hardcoded to a specific term

Currently the following views are hardcoded to specific term ids.

views.view.sf_articles_category_filter.yml
views.view.sf_articles_latest_blog.yml
views.view.sf_articles_latest_news.yml

These assume two "Article Type" terms called "News" and "Blog". The reason for doing this originally is so that all news articles could be displayed on their own unique pages /news and /blog. Then when filtering by an "Article Category" the result would still be contextual to the Article Type.

For example, a news article with an "Article Category" term called "Environment" (tid=19) and a title called "Test Article" would have a content type alias of /news/test-article. It would appear with other news articles on the /news page. Then if on that page it was filtered to only show "Environment" news articles it would go to /news/19 where that article would still appear.

In doing this, every new "Article Type" term would require it's own unique views for the page and filter block.

This should be refactored to be simpler. If a subprofile wants this kind of workflow then it can make it within the subprofile. I would recommend instead to have a single generic Articles page with a filter block view for filtering all articles on the page.

Create a base Image Style module

This will only be for default image styles. It is assumed that a theme will override the image styles with their own dimensions and config. Config Actions will likely be the solution for implementing this.

Refactor the lock_sitefarm_features module to allow subprofiles to extend what parts should be locked

Subprofiles will need the ability to lock down their own content types and features that they build out. So they will need a way to declare what should be locked down.

Currently, some features are locked down by prefix 'sf_'. They should have a way to add a new prefix such as 'ucsf_'. Everything else is hard coded in the class. Theses should be broken out into configuration or perhaps better would be to make everything use a 'sf_' prefix rather than needing to remember adding each new item that should be locked down.

Perhaps an event subscriber would work to inject new items that should be locked down.

Should the Marketing Highlight custom block type and the Marketing Highlight Horizontal be merged?

The Marketing Highlight Horizontal is a stripped down version of the Marketing Highlight. Both are contained in the "sitefarm_marketing_highlight" module.

Marketing Highlight fields
Title
Link
Image
Description (text)
Call to Action (text)
Badge Label (text)

screen shot 2017-05-17 at 15 29 30

Marketing Highlight - Horizontal fields
Title
Link
Image

screen shot 2017-05-17 at 15 31 23

The horizontal part of this can be easily defined by a view mode with an image style. The reason we created 2 different block types was so that users wouldn't be confused about which one they were getting since the vertical one had more possible fields.

I'm inclined to remove the Badge Label either way. I'm not sure how needed that it. It's also caused a lot of problems for us since only so much text can fit in the space. That space however is a theme specific restriction.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.