I'm currently adding a custom marker to tt_news. I want to keep the design in the template. But if the markers are empty I get <br /><h2></h2> and so on. This only makes sense if there is a content. Currently I have the logic and the formatting in class.tx_tt_news.php. Is there another way?
Only set a marker if content is there
331 views Asked by testing At
1
There are 1 answers
Related Questions in INTERNATIONALIZATION
- Do GTK file chooser dialogs come with localized strings for buttons and titles?
- Difficulty with hosting Multilingual Wagtail site on alwaysdata
- Does the language used in schema need to match the HTML lang attribute?
- Next.js 14: using next-intl to change the language, redirects me to home page whenever I change the language
- next-i18next Problem with multiple links redirecting to the same location
- Python transliterator that holds the same rules as PHP one
- Using React Intl without a key
- Storybook build with i18n not worked
- ForceRTL on iOS isn't working in React Native App
- i18n Attaching variable in the middle of a string
- RN i18n issue on some iOS devices
- Next.js: SyntaxError: Named export 'i18n' not found
- nextjs 13, 14 App Directory language without i18n - internalization
- Django translation doesnt work in python code
- Nuxt.js i18n Not Serving Pages in Default Locale Without Redirecting
Related Questions in TYPO3
- TYPO3 Fluid: How to get selected page categories in fluid
- There is no entry in the $TCA array for the table "index_stat_word". TYPO3, v.11.5. Indexed search
- TYPO3 Flexform reset after change
- Get data from database and pass it to the template in TYPO3 11.5
- How to troubleshoot and resolve a Typo3 503 Error?
- TYPO3: tx-form custom fluid templates and class for submit button
- Autogenerate link title based on URL/target for accessibility
- TYPO3 fluid viewhelper f:security.nonce doesn't generate nonce
- DCE (Dynamic Content Element) access tab for each field within a section
- Typo3 - Frontend 404 after Server Migration (also an URL Change)
- After composer dumpautoload show InstalledVersions" not found
- typoscriptObjectPath throws error in Powermail 12
- Get all categories from a page into a data attribute in typoscript
- TYPO3 v11: upgrade to PHP8 breaks the page completely
- How to implement Connector Services (svconnector) in TYPO3 12?
Related Questions in TT-NEWS
- Routing problem: realURL create some wrong links to news-item with direction via page
- Typo3 RSS Feed has no items
- Typo3 tt_news disabled date
- Obtain the title of tt_news record for breadcrumb
- tx_news_domian_model_news accidentally deleted fron the database (in phpMyAdmin) by clicking EMPTY and Truncate
- TYPO3 using markers with conditions
- typo3 tt_news configurate list template
- How to show tt_news related articles in bottom
- TYPO3: 2 news plugins on 1 page get mixed up
- How to ignore cHash when working with urls that contain an id?
- TYPO3 tt_news - show hidden news
- Migrating tt_news to news: Plugin Migration creates textmedia plugins
- Display all categories from news item
- TYPO3 news: how to link to another news within rte editor
- typo3 import news with news_ttnewsimport fails
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
From what I read you put
<h2>###GENERIC_MARKER###</h2>into the template. You better wrap the content in typoscript an set required=1. In this case the wrap will only be rendered when there is content. Example: