Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects versions: 4.1.0
    • Fix versions: 4.2.0
    • Components: Administrator
    • Labels:
      None

      Description

      Hi,

      The preview page functionality in administrator fails. A minor bug but a nuisance for content writers.

      Open up ContentBox Administrator, go to Sitemap and open any page in editor. Click on the Preview icon and the following error will appear:

      Houston we have a problem
      Fault action: preview

      The Page handler, preview() appears to use a BaseContent object instead of a Page object. Some of the comments in the code are incorrect (probably copy and paste from Entry handler).

      To fix:

      Page Handler Line 44: Instead of
      prc.page = contentService.new();
      use
      prc.page = pageService.new();

      Need to inject pageService as well : property name="pageService" inject="id:pageService@cb";

      Above fixes the preview but I haven't thoroughly tested with adding parent pages and different layouts.

      If you could check that would be awesome. Thanks. Appears in 4.1 and BE.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gusjohnson Angus Johnson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: