extension news typo3 preview function - typo3

Hi I am looking for a way to preview a new newspost with the extension news from Georg Ringer. Is there a way or an extension to do this? In the documentation I cannot find a way to achieve this. Does anybody has a workaround for this?

As Michael says, you need to create a (hidden = BE users only) preview page with a news plugin on it and set
plugin.tx_news.settings.enablePreviewOfHiddenRecords =1
See http://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/Configuration/TypoScript/Index.html?highlight=hidden#previewhiddenrecords
If you call this page something "preview page for hidden news", it should be very understandable for editors.

Related

Adding Templavoila template to Typo3 blog

I am pretty new to Typo3, and I am sorry if my question is too easy to answer =)
I'm using Templavoila and I installed the Typo3 Blog extension (T3G?) and I ticked the checkbox "Install and use the template provided by the extension" when setting up my first blog. I hardly managed to get a html only page with a sidebar and list of posts.
My problem is that I can't find a way to add a template or any CSS to that page. I'd like to fit it into the rest of my website with the logo, menu, etc… but after a day of searching and reading, I haven't find a solution to my problem.
Is the problem that I'm using Templavoila rather than FLUID?
Is there a way to add a TV template to my blog?
How can I add CSS to that page (I have tried page.includeCSS.style without success)?
Is it possible to fit that blog in the rest of the website?
I'm using : Typo3 7.6 - Typo3 Blog 7.6 - Templavoila! Plus 7.2
PS : Is it just me or is it pretty difficult for new people to make their way into Typo3 ? ^^ I'm probably just missing something obvious but there isn't much documentation or tutorials dedicated to beginners. I hope it get's easier =)
Templavoila (and Templavoila plus) operate its "magic" by its function to show the content; thus you don't need anymore the usual TypoScript:
page.10 < styles.content.get
Instead, the page content must be replaced with:
page.10 = USER
page.10.userFunc = tx_templavoilaplus_pi1->main_page
Be sure to enable the TemplaVoila page module to manage content with TemplaVoila.The reason is that the "bare" TYPO3 uses the colPos field to retrieve the content (e.g. styles.content.get means colPos=0) while as far as I remember TemplaVoila uses its own logic and the TemplaVoila page module is necessary (also, as far as I can remember,there is an option to map a TemplaVoila content container to the colPos but I could possibly be wrong).
This is only part of the answer I was looking for, and it was probably obvious (well not for me indeed).
In the options of the blog template (the Typoscript one) I had to uncheck all the checkboxes (Clear constants, clear setup, rootlevel).
I also deleted the page.10 < styles.content.get, if I don't I get all the content but again, HTML only.
I'm facing a new problem now. The list of posts is not showing. Only regular element like text elements are being displayed, the Templavoilà FCE aren't… It is worse for the blog posts, nothing at all is being displayed.
PS : Should I write a new question for this or is it okay to ask it here ?
as maintainer of the TemplaVoilà! Plus extension I'd like to help you. Till yet, I didn't tested the blog extension, but I'm willing to help you there.
Couls you please fill an issue report on https://github.com/pluspol-interactive/templavoilaplus/issues and add there a link to this discussion?
Thanks
PS: I know, this isn't a answer to the question, but not enough reputation to add a comment.

TYPO3 news: how to link to another news within rte editor

A question for tt_news:
how to link within the rte-editor - is there a possibilitiy to see a list of all news or is there another way to link news in the text
Best reguards
Volker
Yes, you can configure the RTE to have custom records (e.g. news) in the link wizard.
I wrote a tutorial about this for TYPO3 8LTS: https://usetypo3.com/linkhandler.html
For TYPO3 7LTS you have to use an extension like coding.ms already wrote.
Für TYPO3 7.6.x: https://github.com/cobwebch/linkhandler
Für TYPO3 8.7.x: https://docs.typo3.org/typo3cms/extensions/core/8.7/Changelog/8.6/Feature-79626-IntegrateRecordLinkHandler.html

How to download files from tx_news listView?

i'm currently working on a TYPO3 6.2 site using tx_news.
My goal is that a user can use the listView directly to download a related file, like it was possible in TT_news with type download.
The problem is in TX_news is only type news, internal page, external page available.
I dont really want to extend news that much to generate a new news type.
I got two possible solutions:
Use external page as link to file
Problem:
I dont really want the user to type the external file link
into these fields, since its a bigger project with many files.
Use sys_category and link the "more" field to related file
Problem:
I need a hardcoded check in the template files for the "File
Download Category" UID. What if this changes, or in a year some new
people need to maintain this.
This is possible with some template like this, but as is said before, this is an ugly hardcoded check in a template file:
<f:for each="{newsItem.categories}" as="category" iteration="catIterator">
</f:for>
Any help is very appreciated, if someone knows a better, cleaner solution.
To clarify: With 'listView' you mean a list of news items?
If so,
You could add a TemplateLayout to display only the URLs of the related files.
tx_news provides the news type "Internal Link", too.
With this type, it is possible to create a direct link to a file (on your webspace), page, folder or email.
HTH.

Open an external link in a wicket modal window

I'm pretty new to wicket, so apologies if this is very easy - I'd like to open an external link in a modal window. The url is fixed and isn't a lot more than a static page - how should I go about doing this?
My money would be on the Include component. Javadoc. Example in wicket examples
I'm afraid I didn't ever have to use this particular component, so I can't provide any more information, but it looks like you should be able to use it like any other wicket component with no particular complications.
Hope this helps!
you should have a look at ExternalLink. You can use it like so:
java:
ExternalLink link = new ExternalLink("linkid", "http://www.google.com");
add(link);
with html
Link
btw. Google is your friend when developing wicket. Lots of questions have already been asked, inlcuding this one.

Disqus comment count in TYPO3 tt_news

Is there a possibility to create in TYPO3 tt_news list/latest view link to article with #disqus_thread at the end of link i.e.:
Number of commments?
Anyone ever tried to view the comments count in tt_news extension?
Thanks for any help!
Regards,
Adrian
Check tt_news' manual for section Extending tt_news, most probably you can just use itemMarkerArrayFunc fpr creating custom tags, there are some samples in typo3conf/ext/tt_news/res/ folder.
Using it you can just handle some new marker like: ###LINK_TO_DISQUS###
Note, I don't know the Disqus' API, anyway most probably id doesn't require much effort.