This forum is for assistance with theme development.

How can I get the content_moderation_state of last revision (draft, published) in node.twig

I have user created content. I use the content-moderation plugin, so a user can update his nodes but the update will only be published after moderation from an editor. I like to display a little batch (has new unpublished version) for the user on his nodes, to give him an information about the moderation state.

I know, I can get a moderation state via $node->moderation_state->value; in preprocess_node_function. But this value ignores the last unmoderated revision and says always "published",

AngularJS + Drupal 8 + Foundation 6

Hi,

I recently found out that Foundation 6 uses Angular instead of JQuery. This has thrown me for a bit of a loop.

I was able to install AngularJS into my D8 site. But, I need some guidance because I am weak when it comes to Javascript. I have been searching through different posts inside and outside of drupal.org and none seems to be on target with AngularJS, D8 and Foundation 6.

Here is my libraries.yml file:

SimpleCorp Theme Auto-Generated CSS Problem

I opened a bug on this issue, but under a time crunch... doesn't look like anyone is maintaining recently, so would greatly appreciate a help hand from someone with an odd I face with the SimpleCorp 7.x-1.1 theme.

How to Install AngularJS via Composer

Hi,

I am using Drupal 8 with Composer to manage my dependencies.

I want to install AngularJS because I am using Foundation 6.

Github uses npm to install (npm install -g @angular/cli).

Is there a way to install this via Composer?

Thanks,

Steve

Starting with Bootstrap, a good idea?

By searching for a theme for my new Drupal 8 website, I found out that Bootstrap is the most populair theme. I spent some hours on the web and understand Bootstrap is way more than just a theme, it's a CSS framework for great responsive websites and web apps.

Custom module hoo_menu

im new in drupal 7. I created a custom module in Drupal 7 "audit_pdf" for Extranet. In this module i created a sub-module "audit" who display a custom form. The form is in audit.pages.inc The audit_menu in audit.module

audit.module

Pages

Subscribe with RSS Subscribe to RSS - Theme development