Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[BUG] Separate page section backgrounds reset by Add-PnPPageSection and Add-PnPPageWebPart

Abierto
#4,086 1 comentario 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
csharp, powershell
Área
cli, tooling

Línea de trabajo

Comienza con los puntos de entrada Add-PnPPageSection y Add-PnPPageWebPart y reproduce el problema utilizando los comandos y la configuración de página descritos. Rastrea cómo se serializan las secciones al actualizar una página; el trabajo estará terminado cuando añadir una sección o un elemento web conserve los fondos existentes de las secciones nuevas, incluidos los degradados y las imágenes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Issue

Section backgrounds are reset when updating a page with Add-PnPPageSection or Add-PnPPageWebPart and probably other commands.
Only the new section backgrounds are affected (i.e. not emphasis 0, 1, 2, 3 but rather the additional new ones that have gradiants images etc)

Expected behavior

Expecting Add-PnPPageSection, Add-PnPPageWebPart and other similar commands to not change separate sections on the page

Actual behavior

All section backgrounds that use the new backgrounds are reset on the page.

Before After
image image
Steps to reproduce behavior
  1. Create a page on a site using the UI
  2. Add a couple of sections.
  3. Change the section backgrounds to use the new ones (gradients etc)
  4. Publish the page
  5. Run commands to update the page. For example
$site = "Your_site_url"
$pageName = "Page_name"
Connect-PnpOnline $site
$page = Get-PnPPage -Identity $pageName 
Add-PnPPageSection -Page $page  -Order "0" -SectionTemplate "OneColumn"
  1. Reload the page in the browser. Note that all the new section background are gone

Note that the issue can also be reproduced with Add-PnPPageWebPart

What is the version of the Cmdlet module you are running?

2.5.0

Which operating system/environment are you running PnP PowerShell on?
  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
Lenguaje dominante
C#
Estrellas
904
Forks
407
Merge medio
2 d 11 h
PR fusionados (30 d)
9

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pnp/powershell

Todos los issues de pnp/powershell

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.