nuxt-typo3 icon indicating copy to clipboard operation
nuxt-typo3 copied to clipboard

Add id for content element

Open szpajsi opened this issue 4 years ago • 2 comments

Adding default id (from API) for all content elements. Maybe it can be add to CeFrame (Content element wrapper - Section Frame). It would be helpful for using anchor links.

szpajsi avatar Oct 19 '21 05:10 szpajsi

Great idea, but we have to keep in mind that T3Frame (old CeFrame) is an optional component in your app structure. When nuxt-typo3 loop through content elements array the T3Frame or T3Dynamic are rendered conditionally. So we are not sure if the frame will be rendered.

I recommend to bind component id as html attribute to the frame if it exist, otherwise to the content element itself.

gdulamat avatar Nov 14 '21 15:11 gdulamat

@gdulamat it makes sense. The best place to put the code will be T3Renderer.js - we can bind id attribute there to t3dynamic or t3frame

mercs600 avatar Nov 15 '21 09:11 mercs600