Page MenuHomePhabricator

live preview displays category page content below subcategories and files
Open, Needs TriagePublic

Description

… most likely because I disabled "show preview before edit box". The preview is displayed correctly "on first edit".

Event Timeline

FDMS created this task.Jun 9 2015, 4:29 AM
FDMS raised the priority of this task from to Needs Triage.
FDMS updated the task description. (Show Details)
FDMS added a subscriber: FDMS.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 9 2015, 4:29 AM
FDMS set Security to None.
TheDJ added a subscriber: TheDJ.Jun 9 2015, 11:15 AM

@FDMS do you have a screenshot and or URL of where this is happening for you ?

It's a bit difficult to assess right now.

FDMS added a comment.Jun 9 2015, 10:27 PM

@TheDJ: It happens on all category pages.

TheDJ added a comment.Jun 9 2015, 11:02 PM

You mean that that box with "There are no pages or files in this category" is above the content of the page instead of below ?

FDMS added a comment.Jun 10 2015, 4:25 AM

@TheDJ: Yes, in my example; usually the subcategories and/or files [are above the content of the page instead of below].

TheDJ added a comment.EditedJun 14 2015, 9:40 PM

Notes

Category pages and File pages are some the only wikicontent rendering pages which 'append other stuff' in their View stage. For Categories these are: Pages, Subcategories or Files within that category (or a message that there are none of those). For File pages, it is a TOC, a 800px size 'original', the file history and metadata.

With LivePreview, we only parse the wikicontent, we don't add the 'view' stage elements. But when previewing existing page revisions (including apparently categories that are in use, but have no associated page ?) we apparently take some different steps, leading to different content being included. And once that content is present, it won't be removed....

This will be a difficult one to fix..
P.S. wonder what VE is planning here...