Problem/Motivation

Fresh install of WxT 6.1.x - Expecting a Basic page body field in the node add/edit form.

Steps to reproduce

  1. using drupalwxt/site-wxt 11.1.x
  2. Install wxt
  3. Select ONLY Page and Landing page sub-modules during install.
  4. Installation completes
  5. Create a new "Basic page".

Notice that the body field is hidden.

Proposed resolution

Show the body field by default in the node edit/add form for new installs

Remaining tasks

TBD

User interface changes

See issue summary

API changes

TBD

Data model changes

N/A

Comments

joseph.olstad created an issue. See original summary.

web247’s picture

Assigned: Unassigned » web247
web247’s picture

Hi @joseph.olstad , I don't see this issue myself, perhaps this only happens when you apply the "book restore" patches in the issue #3554907: restore and enhance book solution to wxt-6.3.x ?

web247’s picture

StatusFileSize
new74.42 KB

Nevermind, I was able to replicate the issue by selecting only the "Landing Page" and "Page" modules during the installation:

Missinb body field

web247’s picture

StatusFileSize
new2.96 KB

I created a rough patch that displays the body field and the lead title for the "Basic Page" content type, I tested it myself and seemed to work, please review.

web247’s picture

Status: Active » Needs review
joseph.olstad’s picture

great, thanks for the patch  @web247!

web247’s picture

No worries !

web247’s picture

Assigned: web247 » Unassigned
joseph.olstad’s picture

Version: 6.1.x-dev » 6.2.x-dev
Status: Needs review » Reviewed & tested by the community

This looks like the correct fix.

joseph.olstad’s picture

I noticed this bug again in a fresh 6.2.0 install.

Therefore just ran a partial import with the patched configuration and it does indeed fix the missing body field , therefore during installation I have a high confidence that this is the correct solution.

Steps:

Apply patch to the html/profiles/wxt

then run a partial config import

drush cim -y --partial --source=profiles/wxt/modules/custom/wxt_ext/wxt_ext_page/config/optiona

Once this is done, the body field shows up on the basic page node form on a fresh installation.

joseph.olstad’s picture

Assigned: Unassigned » joel_osc

I recommend committing the changes into the 6.2.x branch since very few will do fresh installs on 5.6.x at this time we can focus on 6.2.x/6.3.x

joseph.olstad’s picture

Assigned: joel_osc » smulvih2

sorry meant @smulvih2

smulvih2’s picture

Status: Reviewed & tested by the community » Needs work

This is not the right approach. Look at the patch file, it just removes the field_byline, doesn't even mention the body field. This patch essentially removes the byline feature.

Instead, look at the byline field config files, they have a dependency on taxonomy.vocabulary.departments which is added by wxt_ext_taxonomy. The wxt_ext_taxonomy module is not a dependency on wxt_ext_page, so if you only select wxt_ext_page then wxt_ext_taxonomy is not installed, causing the field_byline to fail, causing other issues with the page content type.

I suggest looking at how to fix the root cause of this config issue instead of removing fields.

smulvih2’s picture

Issue summary: View changes
joseph.olstad’s picture

ah ok haha, ya helps to actually look at the patch.. strange why it works, I applied it and then the body field shows up after install or even on a partial config import.

joseph.olstad’s picture

hmm, thanks for the insight, I always select wxt_ext_taxonomy. I'll make sure wxt_ext_taxonomy gets installed correctly. Perhaps an explicit dependency needs to be set here.

smulvih2’s picture

FYI - in Drupal 11.3, field.storage.node.body was moved out of the Node module into a new node_storage_body_field sub-module (#3447617). So for 6.3.x we need to make node_storage_body_field a dependency on wxt_ext_page and wxt_ext_landing_page in order to have them work as intended by this ticket.

smulvih2’s picture

Version: 6.2.x-dev » 6.3.x-dev
Status: Needs work » Fixed

This took a bit longer to fix based on the change to Drupal core outline in comment #18. This is now fixed, now when you ONLY install wxt_ext_page and wxt_ext_landing_page you get the body field and all config imports as expected. It also works when all sub-modules are enabled.

Here is the commit with the fix for reference - https://github.com/drupalwxt/wxt/commit/6b121967d47fd4155dbeeab7650570eaccec0b69

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • smulvih2 committed 6b121967 on 6.3.x
    Issue #3568049 by smulvih2: body field is hidden in the node form for...
smulvih2’s picture

Title: body field is hidden in the node form for basic page » Body field is hidden in the node form for basic page when only installing two sub-modules

Status: Fixed » Closed (fixed)

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