Direct, after login, users to the content they can create based on their role

When the user registers, he chooses for himself whether to register as a 'company' or as a 'professional' by assigning himself a role.
Each role can only create one type of content (e.g. Company role can create ctype Company/Professional role can create ctype Professional).

How to create a message at login that, only if the user has not yet created one, warns and directs him according to the role to the content he can create?

Two Drupal codebase htaccess rewrite

Hi All!

I want to place two Drupal core directory, eg. a_core and b_core because when I update modules and core, the a_core serving, I update b_core, when b_core serving, update a_core.

Before core directories have a .htaccess file, which selected actual core directory:

RewriteEngine On

Options +FollowSymlinks

RewriteBase /
RewriteCond %{HTTP_HOST} ^website\.com [NC]
RewriteRule ^(.*)$ /a_core/$1

After update, in the htaccess file change RewriteRule to b_core, so doesn't neccessary Drupal maintanance mode.

Find a way Add a link to the book's main page Go to teaser Node

Find a way Add a link to the book's main page Go to teaser Node

Hello

I am searching for a way Add a link to the book's main page Go to teaser Node

Beside Read more Add a comment

I also want to include a link back to the main page of the book.

To show only the teaser that is the child page of the book

I use a book Module

Is there a way?

Thanks for your help

how to count the number o content when two entity reference are the same

Hi, I'm creating a module to create alerts about student absences I have 1 type of content called attendance that has

fields title, field_student (reference to content type student), field_subject (reference to type of content subject) and a field to know whether or not it was a list of integers I need to count how many absences each student has per subject and create another type of content that will be alert I appreciate any idea in advance

How do I handle links/redirects when migrating from Drupal 7 to Drupal 8?

Hello all,

           I am having problems with a migration that didn't occur to me originally when I started the migration but now I can't figure out how to deal with this issue.  I have maintained a Drupal 7 site at https://example.com  (the http/https issue is different, I think). 

I installed Drupal 8 at https://example.com/drupal8/

Getting Fatal error: Call to undefined function node_types_rebuild() in common.inc

Hi,

While setting up drupal portal, I am getting below error - 

Getting Fatal error: Call to undefined function node_types_rebuild() in common.inc

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x