Typo3 tt_news pagebrowser template




















Asked 8 years, 9 months ago. Active 8 years, 9 months ago. Viewed 2k times. Improve this question. Add a comment. Active Oldest Votes. I answer my own question: The problem was in the resizing of the images, so I installed the JB GD Resize extension, and now it works like a charm. Improve this answer. You better check your Image configuration in the Install Tool. It as a basic configuration check and also a whole suite of image tests with detailed information.

Your first configuration image. Perhaps try with default TypoScript. It should render then. Did you check, if your installation is able to resize images? Many thanks to all github contributors and especially to Jakob Berlin for reviewing and merging. Cleanup and compatibility fixes for TYPO3 7.

For details read advisory: typo3-ext-sa 4. Compatibility upgrade for TYPO3 4. Fixed bug duplicated? Database changes!!! New major version with lots of new features and bugfixes. Several fixes and improvements by Dmitry Dulepov. See changelog for details. Thanks Dmitry!! Lots of new features and some bugfixes - see ChangeLog for details. Added the fix which caused new created records not to appear in TYPO3 versions lower than 4.

The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here. Don't even try it, because it might break your TYPO3 installation! News Database record in BackEnd: The editing form is divided in sections Tabs grouping fields by their purpose. Here you see all possible fields, including the secondary options. Of course it is possible to hide some fields.

So the editors see only e. Did you really make a backup of your site? The first screen you'll see will look like this:. This box offers a direct link to the new updater script. Then open the updater. Only opening the updater does not change anything in your installation, the script only reads data from the database and from the filesystem to check for setting that should be changed. The boxes below the warning message inform you about what checks have been done and what the results are.

To fix those references you could edit all your TS templates, but since there could be quite a lot of these template records depending on your sites configuration I thought it'd be a good idea to let a script do this work. Attention: this information is only shown once. If you need it for later purpose copy it now.

If the updater finds content-elements with configured HTML templates that actually exist in the filesystem it will not touch this records.

Now go through the remaining updater functions until the main screen shows only green checkmarks. Install the extension with the extension manager. In case something fails you'll have thereby a possibility to re-establish the original installation state from where you started the update.

Here you can configure some basic options mostly BackEnd related. Check if categories are required for every news item. The cache table is not cleared when "clear all caches" is clicked. Lifetime in seconds of the internal cache entries if "cachingMode" is set to "lifetime". Default is to display the title as label but you can change it f.

The other options configure the alternative labels which will be shown if the title is empty. Now the titles in lists will look like this:. Localization mode for text fields By default, all text fields text, subheader, imagecaption If this is not wanted you can disable it here. Localization mode for images The image field of a localized news article is excluded by default images are alwas taken from the record in the default language.

If you need localized images f. Hide new localizations By default, all text fields text, subheader, imagecaption Category ordering in BackEnd trees Here you can configure the the ordering of categories in the category tree in BackEnd forms. The default width for all browsers except IE is px, for IE the default width is px to suppress the unneeded horizontal scrollbar below the category tree.

Which information about internal caching should be written to devlog extension "devlog" required. Execution time in seconds after which a function is logged to devlog. Default is 0. The execution time indicates the severity of the log entry: News-feed RSS 0.

Click on the "create new record" link, to add a new content-element. It is required, to select at least one item from the "What to display" field. If you don't do this, an error message will appear instead of the news content-element. To select an item, click on its name in the right list. It is not required to set this value in this field, you can also define it with TypoScript for the whole page.

That means the news-extension looks for news-records in the same page where the content-element is. To test the functionality of the extension you'll also need at least one news-record. Choose the "News" item from the list. Assuming that you did not set a "Startingpoint" in the news content- element, and that the newly created news-record is located in the same page as the news content-element - click on the preview icon and you should see your news article in your browser.

If this is not the case, repeat the steps above. If still no news appear on your website, have a look in the section "Troubleshooting" of this document. There are many ways to configure this extension. This will just get you started. First we will concentrate on General Settings because all of the required options are located in this sheet. Notice: Most of these options can also be controlled by TS, but the settings made directly in the content element will override TS settings.

These are the function of this options:. This template shows only titles and dates of news records and looks very similar to the output of related news. List the latest news.

It lists only non-archived new-records, and it is not influenced by the archive menu selection. Displays a category selector which shows nested categories in a hierarchical menu. Displays the version preview for news articles.

In this selectbox you can choose the field by which the listed news- records should be ordered. If you want to order or group your news by fields, not listed here, you can do this by setting those fields by TypoScript.

It's possible to select newsitems for display by their assigned categories or subcategories. A newsitem can be member of multiple categories. It's also possible to de-select news by their assigned categories of to display only non-categorized items. Displays all news no matter which categories are assigned.

Don't care about the field: Category selection. Only news are displayed, which have at least one of the selected categories or subcategories assigned FIELD: Category selection.

If there are more than the selected categories assigned to the news record it will be shown also. Only news are displayed, which have all of the selected categories or subcategories assigned FIELD: Category selection.

News which are members of all of the selected categories or subcategories FIELD: Category selection will not be displayed. News which are members of at least one of the selected categories or subcategories FIELD: Category selection will not be displayed. It is also possible to handle news-items automatically as archived, if they are older than a certain number of days. In the sheet Template, you can overwrite the html-template defined globally by TypoScript with another one.

It is not required to define a template in this place, because in most cases several news content-elements under one pagetree use the same html-template. Hint The best way to include your own html-template is to link it directly in TS. You can change the news display, by simply creating a new template- file for the display of news. Observe the comments in the file - they are markers that define where content is inserted and which parts are used for this and that.

Self explanatory to a certain degree These 2 fields offer you the possibility to set the image sizes for a certain content element different from the image sizes defined globally by TypoScript. You can set the options for displaying category images and texts also by TS but this values are only recognized if this option is selected. Maximum width of category images. If one dimension of the image is larger than the given width or height, the image is downscaled.

This tells the extension on which page the single view is located. It's not required to set a value here, cause it's more efficient to set a global value for the single view singlePid in the constant- Editor of your root template. PageId to Return to: Here you can set an alternative page for the "back to list" link in the single view.

You can force this behavior even when only one image is assigned to the news record by checking the next checkbox forceFirstImageIsPreview.

A value from this field will override the limits configured by TypoScript. This way, you are able to collect news from several folders to display them in one content-element.

This is the recommended way to configure many news content-elements from one central point, e. This tells the extension how many levels of subpages to include below the page s given in the "Starting point" field. Since access to TypoScript for non-admin users is a security risk, this field is only visible for admin users.

If you f. Here you can define the type of the newsitem. The different types are shown with different icons in the BackEnd. Possible types are:. These news records are also showing only in list views. All other actions hide,copy,delete, The settings made here will override visibility settings from categories that are assigned to this news record.

If archivedate shows a value in the past, the news record will be shown in lists showing only archived news.

Of course it will disappear from lists showing only non-archived news. This field appears only in translated news records and points to the translation Original. The translation original has to be in the default language. This field shows the language of the newsitem. This field should be not edited by hand because its value is handled by the translation system of TYPO3. By default only the author will be displayed and linked to the author's email address. If you need an author field which is a relation to another table where the authors are stored f.

The versioning label of this record. This field is only visible when the extension "versioning" extkey version is installed. Here you can assign categories to the current news record if this record is no translation of another record. The available categories will be displayed in a tree. Tt's possible to control editing permissons of news articles with the assigned categories.

Here you can define images that will be shown in the news item. Field for the imagecaption which will be displayed under the image. If more than one image is assigned the value of this field can be splitted by linebreaks. In these fields you can define two texts that will be inserted as alt and title texts in the image html tag. If more than one image is assigned the values of these fields can be splitted by linebreaks.

The links that are inserted here will be displayed under the "bodytext" in the news single view. This field is parsed through the stdWrap function "parseFunc" so it will be possible to enter links as typolink. In this field you can select news records or pages that will be displayed as related news.

You can assign categories to news. That allows you to display f. Categories can have parent categories. Subcategories can be wrapped with another wrap than normal categories. Only news with the selected categories 23,34 will be displayed. Subcategories will be wrapped with a red border. In the BackEnd the categories are shown in a tree view.

Hint: Editing of categories directly from a news record works only for categories which are assigned to this record record. To edit a category select it in the left category field and click on the edit button the pencil. It's possible to control the editing permissions for news records with the assigned categories. If a BE-user is restricted to certain categories he can only change news records that have these categories assigned.

If he performs any action move, delete, hide, localize, copy, version, modify with a record that has non-allowed categories assigned an error message will be displayed and the action will be ignored. Another message will be displayed in the news record above the fields "Type" and "Category". Non-selectable categories will be displayed in grey text and not linked. See screenshot below. If the BE-user with this configuration opens a record that has at least one category assigned that is not in the list of allowed items he will see the error message below.

It doesn't work in LIST view if more than one category is selected. The category titles can be linked to the category shortcut page which is configured in the category db-record. That will include the current category and the newsitems which have this category assigned when the parent category is selected.

This works recursive. Works recursive for subcategories. Filtering by category works recursive for subcategories. Category titles or images can also act as shortcut to an internal page. If this is enabled and a visible page is defined as shortcut, the link from the category title or image points to this page.

The field "Single-view page for news from this category" gives you the possibility to define a single-view page for each category. If a news-record has 2 or more categories assigned the SinglePid will be taken from the first category which is assigned to the news record. Solution: There are some Firefox extensions which correct this problem.

I tried "Popup Alt Attribute" which works flawless for me see screenshot. The wraps for the complete catmenu, for the menu states NO and ACT and for the header of the catmenu are also used in both modes. The tree mode has some special options for configuring the icons. When you have long articles in SINGLE view, you might want to split them into multiple pages and have a page navigation inserted to navigate between these split pages.

This can be done automatically by specifying the amount of words after that a pagebreak is inserted. When the amount of words is reached, the extension looks for the next dot. You can also add a manual pagebreak at a specific position in the text. This will trigger a pagebreak at this position. On the new page, the wordcounter starts again for automatic pagebreaking.

However, manual pagebreaks work even when the automatic pagebreak feature is disabled. The subheader is by default only displayed on the first page of a single view with multiple pages. One thing to note is the way images are handled on multiple pages.

The images for the additional pages in single view are asssigned by their position in the Image-list of the news record. This will enable the pagebrowser for the Single view. If the text is longer than words, a pagebreak will be inserted automatically after the next paragraph an empty line in the field bodytext. Additionally to news records, relations can also point directly to internal pages. Related pages will be handled as news that link to internal pages.

The display of related news and pages is configured by TypoScript. The single view can also be configured to show a list of news articles with the same category as the current article. The following example tries to give you an overview which TypoScript settings will have which effect on different news content elements.

Note that newsitems with an empty archivedate will appear in all lists. Starting from version 2. This doesn't work if the news folder is in the first level of the pagetree without a normal page above it.

The version preview is triggered by clicking on the red marked preview symbol in the versioning view in the BackEnd. If a version preview is displayed a message with a link to the original version of the article will be inserted above it.

All pages below this page will take this setting if it is not overwritten by setting this value in another page. If your page structure requires, that the news folder s are notlocated under one pagetree, you have to set the "General Records Storage page" for each news sysfolder and the rootpage of your site:. There are several kinds of links in a news record.

The table below gives you an overview which parameters will affect which link. External links will use the target, given in the link-field in the news-record. If there is no target given they will use the global target for external links. The global target for all links has to be defined in your main template e.

If you want the news links to internal pages point to another frame, you can override the global target with this setting. If the catselector links should point to the current frame, there is no special setting required. If you want the links in the archive menu point to another page, you can enter the PID of this page here.

That page is configured to list only archived newsitems. Some of the link-types in the single view are configured with the same parameters as shown in the table above:. This will open the linked site in a new browser window. No special settings required, in the default configuration these links point to a javascript that opens the image in a pop-up window. If you click on the "TS" button in the right of the textarea you'll see all possible options in a pop-up window.

If you, e. One big advantage of rtehtmlarea is, that it works on almost all browsers and operating systems. The classic RTE works only in Internet Explorer because it depends on some ActiveX-controls which are fortenutely not available in other browsers. This is done at three places:.

The transformation mode defines how the content of the field is changed while storing it in the database and while getting it back from the database. This mode enables the use of CSS-classes for formatting the contents of the news record e.



0コメント

  • 1000 / 1000