Project

General

Profile

Actions

Bug #100832

closed

Module "Page TSconfig" -> Active page TSconfig -- Shows comments

Added by Christian Hackl 12 months ago. Updated 10 months ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-05-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have a sitepackage which includes Page TsConfig via Configuration/TCA/Overrides/page.php

If i have a comment just befor the beginning "TCEFORM..." then this comment shows up at BE module "Page TSconfig" -> Active page TSconfig.

Example:

   ...some other code
   ### my comment
   TCEFORM { ...

Than "### my comment" shows up. If i put a empty line between my comment and the "TCEFORM..." than the comment dosen't show up.
Example:

   ... some other code
   ### my comment

   TCEFORM { ...

Files

pageTsConfig-be-module.JPG (158 KB) pageTsConfig-be-module.JPG Christian Hackl, 2023-05-08 12:02

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Related to TYPO3 Core - Bug #100831: Module "Page TSconfig" -> Active page TSconfig -- Shows commentsClosed2023-05-08

Actions
Actions #2

Updated by Christian Kuhn 12 months ago

  • Status changed from New to Needs Feedback

Yes.

That's essentially how it works: When a comment is directly before some "code" line, the comment is attached to the code line. When there is a "gap" like an empty line, it is not assigned to the code line.

This limitation is related to the "magic in comment" for the constants editor and the similar ext_conf_template.txt magic. We may be able to get rid of this limitation at some point, but it requires us to get rid of this ugly "define input fields via comments" foo for constants editor and extension configuration editor first.

Is this limitation a huge issue for you? I think that's only view related, it should be ok for integrators to deal with this?

Actions #3

Updated by Christian Kuhn 12 months ago

Actions #4

Updated by Georg Ringer 12 months ago

  • Related to Bug #100831: Module "Page TSconfig" -> Active page TSconfig -- Shows comments added
Actions #5

Updated by Christian Hackl 12 months ago

Christian Kuhn

Is this limitation a huge issue for you? I think that's only view related, it should be ok for integrators to deal with this?

no just not very nice, because the overview is somewhat lost in this module... :)

Actions #6

Updated by Christian Kuhn 10 months ago

  • Status changed from Needs Feedback to Rejected

Hey.

I hope it's ok to close here: The v12 comment parser and it's current rendering is the best i could come up with and nobody came up with something better until now, not even an idea on how it could be improved.

The comment display can of course be toggled off when an integrator is annoyed by the noisiness: Both pageTsConfig and TypoScript modules have a toggle for this.

To improve single comments rendering, just place them before a deeper element. When you have something like this:

# ext:foo changes some rowDescription detail
TCEFORM {
  pages {
    rowDescription {
      ...
    }
  }
}

Then change this to:

TCEFORM {
  pages {
    # ext:foo changes some rowDescription detail
    rowDescription {
      ...
    }
  }
}

This will locate the comment better when rendering them in the backend modules. We did a similar thing in ext:bootstrap_package already, and this improved things a lot.

Actions

Also available in: Atom PDF