# Summary

"auto_nodetitle" is a small and efficient module that allows hiding of the content title field in the form. To prevent empty content title fields one can configure it to generate the title by a given pattern.

NB! The Automatic Entity Label module, which is a more general version of this module as it can handle labels/titles for any entity, already has a Drupal 8 release. Please consider using that module.

# Project URL

https://www.drupal.org/project/auto_nodetitle

# Where is the code?

https://github.com/jose-oliveira/auto_nodetitle/tree/8.x-1.x

# Estimated completion date

Due to bad decisions won't be completed. May be there is interest to release it outside of d.o.

# Dependencies

N/A

# Who's doing the port?

https://www.drupal.org/u/jmoreira

# What help do they need?

Unknown

# D8 roadmap

https://www.drupal.org/node/2380433

# Background and reference information

https://www.drupal.org/node/2380433

Comments

Patrick Storey created an issue. See original summary.

webchick’s picture

Status: Active » Needs work

Indicating that there's some code here available for testing.

mlncn’s picture

https://github.com/gauravgoyal/auto_nodetitle/tree/8.x-1.x is functional.

I recommend https://github.com/jose-oliveira/auto_nodetitle/pull/4 be accepted into the porting authors branch, and would highly recommend an alpha release and am happy to help facilitate.

(As noted by a commenter on the pull request, Token integration is not showing node tokens, but they work if you can guess what they are— and they follow this format [node:field_first_name] [node:field_last_name].

tusharbodke’s picture

Assigned: Unassigned » tusharbodke
Lowell’s picture

I've got a working copy of the auto_nodetitle module (at https://github.com/Lowell20/auto_nodetitle), and did a pull request against the https://github.com/jose-oliveira/auto_nodetitle/tree/8.x-1.x branch

  • added composer.json file
  • token browser is working

see https://github.com/jose-oliveira/auto_nodetitle/pull/9

Alex72RM’s picture

#3

I don't know the reason of this behaviour, but please write in the instruction about token integration the correct use of field tokens. I went crazy before reaching the solution in this issue entry.

mglaman’s picture

Per #2020921: Let dww become a comaintainer for auto_nodetitle shouldn't effort be put into porting entity_autolabel and kill off node_autotitle?

alex_drupal_dev’s picture

I'm curious how far this is from ported to Drupal 8 ? I really want this functionality in a website I am working on. Any way I can help speed things up any ? What stuff needs to be done on this module for D8?

Sutharsan’s picture

In my opinion the current state of maintenance of this module is sorrowful. I have created this issue: #2747425: Automatic Nodetitles appears to be unsupported. If there is someone here who want to maintain this module, please step forward.

el1_1el’s picture

@alex_drupal_dev - just grabbed @Lowell's from comment #5 - https://github.com/Lowell20/auto_nodetitle. Seems to be working. I'd say that should be the dev version

ben833’s picture

Is there a way to use @lowell's branch from github in a composer.json file? I'm trying to follow the directions here, but I don't see how I can use a branch/tag from github for a drupal module: Using Composer to install Drupal packages through Drupal.org

Lowell’s picture

in the drupal project composer.json, my repositories section looks like this

  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/Lowell20/auto_nodetitle.git"
    },
    {
      "type": "composer",
      "url": "https://packagist.drupal-composer.org"
    }
  ],

then run composer require drupal/auto_nodetitle:dev-8.x-1.x

this works because the repo has it's own composer json that sets several more values that our composer understands

Sutharsan’s picture

A maintainer of Automatic Entity Label has responded and is positive on collaboration: #2659636-5: [Meta] D8 Port of Automatic Entity Label (AEL) Module

Lukas von Blarer’s picture

What is the status here? Sutharsan made great improvements to the module. Can we merge the PRs?

xeM8VfDh’s picture

+1 also interested in status

Lukas von Blarer’s picture

It would be nice to agree on a module we are trying to port. There is code of auto_nodetitle auto_title and auto_entitylabel in like ten places. which module are we actually trying to port?

Sutharsan’s picture

@Lukas, you can choose ;) If you need any help with the code I made, just let me know.

Lukas von Blarer’s picture

Well, having a working base would be great. auto_title doesn't work for me currently. The form validation fails when saving a node with this error highlighting the title field:

This value should not be null.

I am testing on 8.2.x. Do you have an idea why this happens? Is auto_title functional for you?

Sutharsan’s picture

I'd like to focus on finding someone who is willing to maintain the code now and in the future. Once we found someone there is ample time to discuss bugs.

Lukas von Blarer’s picture

Ok, makes sense. Is there anyone ready to do so? I'll think about it as well.

clivesj’s picture

I am available to maintain the D7 and D8 code. Some time ago I made patches for D7 but abandoned it since there was no response.
Currently main maintainer of Filebrowser.

Sutharsan’s picture

@clivesj, see https://www.drupal.org/project/auto_nodetitle "If you are interested in taking this project over, or you as the project maintainer feel this message has been posted in error, please reply to #2747425: Automatic Nodetitles appears to be unsupported."

clivesj’s picture

Thanks @sutharsan, I get it.

xeM8VfDh’s picture

@clivesj to the rescue! Thanks for volunteering!

clivesj’s picture

@xeM8VfDh wait!
One way or the other, the community is choosing, or there seems to be a great push, to let ANT die away.
I don't really get it why a module, that has so much satisfied users should die away. I also get confused by this tread that seems to call for a maintainer and another one calling for it's dead. I am ready to help out but this situation is a bit strange.
So if someone adds me as maintainer, I will be on my way, and until then, I will rest my case.
I use both AEL and ANT and am happy about both.

hansfn’s picture

Issue summary: View changes
hansfn’s picture

Automatic Entity Label (auto_entitylabel) 8.x-2.0-beta1 was released 23rd of February 2017. It works and is a more general version of ANT as it can handle labels/titles for any entity. Please consider contributing to that module instead of ANT.

Kris77’s picture

I also installed this module Automatic Entity Label and it works in Drupal 8.3.2

mmjvb’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)

Object to the current treatment this module is receiving, but believe Closed (duplicate) reflects its current status.

As mentioned, the correct way to deal with it would have been to transfer maintainer-ship to one to two remaining volunteers showing interest. The existence of a D8 port and volunteers for maintainer ship should have been enough reason.

Looks like, although they follow procedure, they don't realize they are hurting the project. Moving to D8 is hard enough as it is, it shouldn't made more difficult by forcing change. Especially not when someone claims to be using both the advertised alternative and this module.
The decision to switch should be made by the current users, nobody else. The port attempt should have been properly facilitated, don't consider that happening now.