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
329 Views Asked by testing At
1
There are 1 best solutions below
Related Questions in INTERNATIONALIZATION
- How to keep a variable in the URL when using Spring LocaleChangeInterceptor
- Shared behavior state across custom elements
- Using Bootstrap Datepicker Internationally
- ResourceBundleMessagesource - No way to access all properties from a file?
- angular-translate-based custom filter
- How to localize TextAngular tooltips
- Codeigniter view in Wordpress
- grails message as argument of other message
- Play Framework 2.4.0 and I18n with Scala
- Language selector in Play 2.4 & Scala 2.11.6
- How to manage en.yml for different api version
- Spring MVC: Fallback for unknown language code in uri parameter value
- CakePHP internationalization
- Internationalize C program
- symfony2: how to parameter localization so we can have 2 languages?
Related Questions in TYPO3
- TYPO3 6.2 performance, Typoscript Select, Typoscript Cache
- page with page Type not found
- Empty pagetree in TYPO3 7.2 backend
- Typo3: Create translations of Extension Builder elements
- Force TYPO3 to cache non-cached pages
- How to make the browsers back button work in a Formhandler multistep form
- Extbase 6.2: Import Image into FAL
- How to get a localized label in ext_tables.php
- TYPO3 onepager + normal pages structure
- Typoscript add class to the first element using stdWrap
- How to get Query object to felogin repository?
- Extbase Repository objectType = NULL
- Unable to include a php file in typo3
- Replace URLs in Typo3 DB
- How to get TYPO3 settings in the utility files?
Related Questions in TT-NEWS
- Add no fields to the tx_news model from another ext
- TYPO3 news: how to link to another news within rte editor
- Canonical tag for tt_news should pointing from couple domain to only one
- Creating Hooks to an extension in TYPO3 6
- XML sitemap which includes tt_news articles
- change date format from tt_news (displayXML)
- tt_news: Wrap images depending on amount of images
- Only set a marker if content is there
- Force tt_news to always retrieve new posts
- typo3 tt_news item visibility and "read more" issue
- TYPO3: Make a new register type with Kickstarter and use it with tt_news
- Wrong article when clicking on news article with same title
- tt_news pagebrowser - How to disable page selector
- tt_news category image url
- tt_news: different template depending on record pid? Or tx_news fluid "if pid of record" condition?
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)
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?
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: