Typo3 tx news related files download counter - typo3

I have a question about the TYPO3 Extension News System 2.3.0.
If you add related files to a news, is it possible to show a download counter
or a counter that count how many users that have clicked the "Related File" !

This is not possible with the current version of the TYPO3 News extension.
You could try to create an own extension which extend the TYPO3 News extension by the functionality needed.
Your extension could include the following
Add a new property (e.g. downloads) to the Domain Model Tx_News_Domain_Model_File
An action (e.g. downloadFileAction($fileUid)), that increases the download counter and redirects the user to the file download
A ViewHelper, which renders the link to the new action for the file download
Also you should make some security considerations like "user can only download files she/he has access to".

Related

tx_news direct link to news entry

it is possible to have a direct path to a special news entry?
example:
my link is: http://www.domain.de/start/topnewsdetail/news/really-long-name-of-news-entry.html
and it would be nice to have
http://www.domain.de/newsEntry.html.
Can someone give a hint?
it is a little bit complicated if you want a general automatic solution.
you can do it by hand if you insert pages of type 'external url' where you insert the long path as external url.
with realurl you have problems as realurl at least will use one path segment for the page with the detail view before the last segment which is for identifying the news record. AFAIK coolurl can ommit the path segemnt for the page.
on the other hand: make sure the news identification (title, subtitle?) is unique and does not collide with pathes for normal pages.
at last you can use .htaccess rewrites, but that needs to differentiate between short urls for news and short urls for top-level pages. So those urls will show the page, those urls are not generated inside of TYPO3 and so nowhere used (except manual)
this EXT. adds a custom link to records like system category or news:
https://typo3.org/extensions/repository/view/recordlink
It'S deployed for TYPO3 6.2 but perhabs it'S helpful to create an own EXT.?

What Typo3 newsletter extension can automatically fetch web content changes

The Typo3 extension tt_news enables for example all created news by this extension to be shown in the newsletter but not content from a "not news" page of the website.
We are looking for a plugin which automatically finds new content on the website and let us create a newsletter from it.
What extension could be used here? Might direct mail be able to do so?
Taken from the Direct Mail manual: "Newsletter pages are just normal pages. Their rendering is configured by the TS template."
A very simple solution for what you want to do would be to write a simple extension where you get the newest content elements and output them. Direct Mail itself will not do that for you, but it will send out any content that you provide on the "Newsletter page".

Update content programmatically

I am publishing content on a TYPO3 instance where I have just editor rights. At the moment, that content is generated automatically as HTML; my workflow consists of
Copy HTML code
Log in to TYPO3
Select page
Click Edit on the HTML element of this page
Paste HTML code
Submit
Is there a library or an API that helps automating this process?
Since you are only an normal editor in your TYPO3 instance, I assume you cannot just add a TYPO3 extensions that helps you with the task. If you could alter the TYPO3 instance, there would be numerous ways to automate the process: A Scheduler task that fetches new content and puts it to a page or even fetches content from a mailbox or Dropbox share etc..
The only solution I see is that you do some browser automation to perform this task. You use e.g. use Chromium Browser Automation if you work with Chrome. You can record all form entries (username, password, paste text to RTE) and clicks and you also should be able to define some variables (ID of the page and content element, content itself).

How to add a movie in a typo3 news article

I'm using typo3 6.2.4 with the news extension to show some articles om my website. In one of the articles I want to add a youtube movie within a iframe. But it is not allowed to add html code. Does any one know how to solve this?
If you're talking about EXT:news, you can enable "Content element relations" in the extension configuration (in the Extension Manager). Then you can use every Content Element type as part of the News item, so you can add a HTML element or a Media element to display it.
By the way, if you host your video yourself, EXT:news accepts it as a media item as if it were a picture.

TYPO3 tt_news : No code given

I just inherited this TYPO3 project and have a bunch of tasks to perform with it (adding this here, and that there, etc.) and I'm at the task "Add news to the front page" and "Add a RSS feed to the site"
Well, the tt_news extension is installed and I have created 1 test news. Now I added a page content plugin of type "News" and configured it from the best of my knowledge, following the outdated manual provided with the extension, saved the page, cleared the cache and refreshed the frontend page to see this :
...What does it mean and how do I make the extension work?
Edit the content element containing tt_news extension and at the Plugin tab in select field What to display choose default view ie: Standard list view (LIST)
Also:
make sure that in Content Element's settings you choose correct
folder with tt_news records in field Other settings > Page(s)
with tt_news records
tt_news records are created by default with Hidden flag set to true, make sure that the checkbox is unchecked. (BTW this behaviour can be changed with TCAdefaults.tt_news.hidden=0 in PageTS or UserTS)