tt_news: List of categors with link - typo3

I have a LIST VIEW in tt_news. I want to display a list of all the categories each entry belongs to, like this:
"TITLE OF NEWS
Sports, Travel, Photos"
so that each category name links to the view of all news from that category, like the CATMENU.
How could I do it? Im using genericmarkers for tt_news to add custom objects

Use the extraItemMarkerProcessor we were talking about before and insert new marker ie. ###ITEM_CATEGORIES###. Then you can use some kind of loop for every category to build link with and pass it to the marker as a list of coma-separated links:
$pObj->cObj->typolink($catName, $catLinkConfArray);
Building links with typolink is documented in TSref

Related

moodle - Customize the list of courses in the dashboard page

I'd like to modify the list of courses ( course overview ), to modify the display of the courses.
I'd like something like that:
Is there a way to save a thumbnail for each course in the database, and display it in the dashboard of the course list, each course with it's own picture, according to the subject
I have updated the file moodleDir\blocks\course_overview\renderer.php
I added a static HTML image next to each course
In the course settings form there is an option to add images in "Course Summary files"
You can upload an image there and retrieve it in the renderer using the function course_image($courseid) shown in this example:
https://gist.github.com/bmbrands/c1eb21dfa7f491b1205ea0ca806b5493

tt_news No categories when creating news

When I create a new article in the News administration of tt_news in Typo3 6.2, I am not able to select any categories in the "Options" window of the news, as there are none listed. But I have categories created and I can assign already existing new to categories, if I select it in the "Items" window of the category itself.
In image 1 you can see there are no categories listed, when creating or editing news entries, although there are some.
When I try to assign news to a category in the list module (opening the category and assigning a news item to it via "Items" section) it works, as you can see in image 2.
I have looked up if I need to specify for tt_news where the categories are stored, but I have not been able to find anything and I cannot remember doing so in the past (for other pages). Did I miss anything?
Did you figure it out ...?
To me it looks like you confused the tt_news categories, they would not show in the tab in image 1 ...
You'd edit this selecting the folder where your news is stored, selecting the article you'd like to assign to a category and then the 'Categories & Relations' tab ...

Display category and its content in TYPO3

I am using TYPO3 6.2.9 CMS.I make category and assigned to page.But I don't know how to display the category when i am showing the page i want all the category assign to that page must display then after clicking that category the content which i have assign to that category must display
There is no out-of-the box solution for this.
But you can use the following :
Or create your own extension where you gather the categories of your page and render them on your page. You then can also create a sort of category menu.
You can use category collection :
http://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Categories/Index.html
cObject RECORDS has also a categories property, so you could also use typoscript for rendering.
For this purpose you can use extensions to your website.
Catalogue extension package
Which relates to categorisers and if you want to you can customize it in your own manner.
Use of these extensions make simple in listing category.
The usage is also given in its manual ans its simple to adopt it.

How to link tt_news H1 title to the news itself?

For the SEO reason, I have to link the news title in single view to the news itself. When I try this by ###LINK_ITEM### marker it links to the (return-page) I've chosen in flexforms to return.
How should I link that title to the page itself, it also can be used as PERMALINK the other systems like wordpress have.
You can extend tt_news with new marker.
create the extension with the kickstarter or just create empty one (extend tt_news table if
necessary)
create hook-objects and register for the hook "extraItemMarkerProcessor"
create the marker and content within that hook and assign value of current url $url=t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');

Facebook Open Graph Multiple objects per action

I have one custom action (add) and two custom objects (favorites list) and (tv show). I want to add TV shows to Favorites List and register it with the Facebook Timeline. I.E. these two objects are attached to the same action.
I would like the news feed to read:
"[Joe] added [Modern Family] to his [Favorites List]."
I can't seem to figure out how to attach two objects to the same action and have them display in the timeline together. I can either do one or the other.
Anyone have any experience in this? Is this possible?
I have also been searching for a way of doing this, and I've not been able to find anything useful.
I noticed that Spotify does this without issue (straight from the feed of a friend): [user] listened to [song] by [artist] on Spotify, though looking at the 'types' documentation on open graph: http://ogp.me/#types looks like it is a custom feature for listening to music.
Should favorites list really be an Open Graph object?
Can a user have several favorites lists with different names?
If each user only has one favorites list (called "Favorites list") there is no reason to have it defined as an Open Graph object.
Perhaps a descriptive App name could be used to make the aggregations readable.
[User] added [TV show] to [AppName]:
Joe added Modern Family to MyFavoritesList.
Joe added Modern Family and 3 other TV shows to MyFavoritesList.
Joe, Bob and 3 others added Modern Family to MyFavoritesList.
Change your action from [add] to [Favorite] and have [Favorite] inherit from [like] rather than [action]
Add [Favorites List] as a custom property on [Favorite]
The title will still come up with only the object and action so:
"[Joe] favorited [Modern Family] with YourApp"
However then in the Configure Story Attachment you can add a few extra bits to the attachment in a caption e.g.:
[Modern Family] added to their [Favorites List].
Though obviously with curly braces :-)
You can set [Favorite List] to be a property instead of a Connected Object Type and use braces on "Configure Sentences" to display it the way you want it