Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

few issues #3

Open
DavidBruchmann opened this issue Apr 7, 2024 · 3 comments
Open

few issues #3

DavidBruchmann opened this issue Apr 7, 2024 · 3 comments

Comments

@DavidBruchmann
Copy link

DavidBruchmann commented Apr 7, 2024

  • A Class in the folder Backend is not found, it's configured in Services.yaml and I saw there was a class added but removed again.
  • in TCA a field parent is mentioned in types.1.showitem, but that field doesn't exist
  • The extbase reflection doesn't work for me, but I get only the count shown (int)
svewap pushed a commit that referenced this issue Apr 7, 2024
@DavidBruchmann
Copy link
Author

DavidBruchmann commented Apr 8, 2024

man kanns natürlich auch per TS rendern, aber dann wären die Extbase Dinge überflüssig, und es ist beim Templating nicht so intuitiv vielleicht.

Constants:

    # cat=content/tags; type=int; label=Page uid where Tags are stored
    styles.content.tags.storagePid = 2

Setup:

lib.tags = COA
lib.tags {
  5 = LOAD_REGISTER
  5 {
      contentUid.cObject = TEXT
      contentUid.cObject {
          field = contentUid
      }
  }
  
  20 = CONTENT
  20 {
    table = sys_tag
    select {
      selectFields = sys_tag.*
      pidInList = {$styles.content.tags.storagePid}
      join.dataWrap = sys_tag_record_mm mm ON mm.uid_local = sys_tag.uid AND mm.{#uid_foreign}={register:contentUid}
    }
    renderObj = COA
    renderObj {
      10 = TEXT
      10.stdWrap.field = title
      10.stdWrap.noTrimWrap = |<span class="tag">|</span> |

      # 20 = TEXT
      # 20.stdWrap.field = description
      # 20.stdWrap.wrap = <p>|</p>
      # 20.stdWrap.required = 1
    }
    # stdWrap {
      # debug = 1
      # debugFunc = 1
      # debugData = 1
    # }
  }
  40 = RESTORE_REGISTER
}

und im Fluid Layout für ContentElements dies:

<f:if condition="{data.tags}">
    <f:cObject typoscriptObjectPath="lib.tags" data="{contentUid: data.uid}" />
</f:if>

@DavidBruchmann
Copy link
Author

DavidBruchmann commented Apr 8, 2024

Falls das nicht rendern sollte fehlt noch ein Patch
ContentContentObject.PATCH

Und in der root composer.json dann dies:

	"extra":{
        "enable-patching": true,
		"patches": {
			"typo3/cms-frontend": {
				"Patch repair TypoScript": "local_patches/frontend/ContentContentObject.patch"
			}
		}
	}

@DavidBruchmann
Copy link
Author

Und verlinkt sind die tags dann noch nicht

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant