Create a configuration page to allow to configure "Edit Content type fields" link displaying on the node edit pages.

Created on 11 March 2024, 9 months ago
Updated 7 April 2024, 8 months ago

Problem/Motivation

Lately, we added a link for the content type fields on the node edit page. I think it makes sense to have a configuration for this function, to let decide show this link on the node edit page or not.
Because, for some themes, as for example Gin, it shows only the node title on the edit page and we should display the content type name with a link as well.

Proposed resolution

  • Add a configuration page and allow to choose node content types (with checkboxes) to show a link;
  • Add functionality to display links based on the configuration settings;
  • If there are no settings, display for all content types;

Remaining tasks

Create MR.
Review.
Merge.

User interface changes

A configuration page will be added.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇦Ukraine _shy Ukraine, Lutsk 🇺🇦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @_shy
  • 🇺🇦Ukraine _shy Ukraine, Lutsk 🇺🇦
  • Assigned to nidhi27
  • Pipeline finished with Success
    8 months ago
    Total: 147s
    #125986
  • Issue was unassigned.
  • Status changed to Needs review 8 months ago
  • 🇮🇳India nidhi27

    Hello,

    I have created #MR8 for this. Created one configuration form listing all the content type names. If you select the content type than it will show the link on node edit page.

    Let me know if there are any suggestions!

  • Pipeline finished with Success
    8 months ago
    Total: 161s
    #125999
  • 🇮🇳India Raveen Kumar

    Hello Guys, I have implemented the changes as per MR! And configuration link was added successfully as you can see in the attached screenshot here: https://prnt.sc/5cYTgeFwOXJk

  • 🇮🇳India Raveen Kumar

    The changes can be imported. Thank You!!

  • Pipeline finished with Success
    8 months ago
    Total: 149s
    #126006
  • Status changed to Needs work 8 months ago
  • 🇺🇦Ukraine _shy Ukraine, Lutsk 🇺🇦

    Still need to fix some phpstan and cspell issues.

    ------ ------------------------------------------------------------------------------ 
      Line   src/Form/EditLinkConfigForm.php                                               
     ------ ------------------------------------------------------------------------------ 
      47     Unsafe usage of new static().                                                 
             💡 See:                                                                       
                https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static  
     ------ ------------------------------------------------------------------------------ 
     [ERROR] Found 1 error                                                          
    
    ./src/Form/EditLinkConfigForm.php:82:32     - Unknown word (entitiess)  -- Section for configuring entitiess.
    	 Suggestions: [entities, enmities, entitles, nettie's, entices]
    CSpell: Files checked: 9, Issues found: 1 in 1 files
    
  • Pipeline finished with Success
    8 months ago
    Total: 152s
    #126232
  • 🇮🇳India nidhi27

    Resolved phpstan and cspell issues.

  • Status changed to Needs review 8 months ago
  • Status changed to Fixed 8 months ago
  • 🇺🇦Ukraine _shy Ukraine, Lutsk 🇺🇦

    Thanks, everyone!

    Merged to the 1.0.x branch. Will be added in the next release version!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024