Discussion:
[TYPO3-english] Is it possible to set a default category in "News System" (ext:news) ?
Christian Richter
2013-06-06 13:55:27 UTC
Permalink
Hi Everybody,

I'm implementing the news-extension from Georg Ringer and have some trouble optimizing the user-experience for the "Editor".
We use the extension to create so called "dates" (Type: External Page) and normal "blogposts" (Type: News).

you can have a look:

blog: http://cayoux.5punkt1.com/index.php?id=3

dates: http://cayoux.5punkt1.com/index.php?id=4

We are categorizing the news as follows:

? blog (id=1)
? projekte (id=2)
? tour (id=3)
? studio (id=4)


? dates (id=5)
? festival (id=6)
? main act (id=7)
? support (id=8)
? free! (id=9)

All "Blog"-posts are saved in the Sysfolder "blogposts" (id=21)
and all "Dates"-posts are saved in Sysfolder "dates" (id=22)

What I like to do now is, setting default categories for those two Sysfolders as News-Records are created.

When the editor creates a new record in the Sysfolder "dates" it should automatically have the category "dates" (id=5) set,
respectively "blog" (id=1) for newly created records in Sysfolder "blogposts" (id=1).

If I remember correctly, in EXT_tt_news there was a setting-option called "predefined.categories" which did that.

Is there a way to to that in Georg Ringers "News System"?

Thanks in advance,

Christian
Georg Ringer
2013-06-06 14:07:55 UTC
Permalink
Hi,

maybe this helps:
http://docs.typo3.org/typo3cms/extensions/news/Main/Tutorial/PredefineFields/Index.html

as this is tceforms, this is a core feature, not limited to an extension

georg
Philipp Gampe
2013-06-06 14:48:47 UTC
Permalink
Hi Georg,
Post by Georg Ringer
as this is tceforms, this is a core feature, not limited to an extension
You should mention here that the values must be set like in the database,
not the way you would enter them into the forms.

Best regards
--
Philipp Gampe ? PGP-Key 0AD96065 ? TYPO3 UG Bonn/K?ln
Documentation ? Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!
Christian Richter
2013-06-06 16:28:14 UTC
Permalink
Hi,

thanks for the response!

Georgs advice sounds like a scalable solution, which could come in handy for several things.

Nonetheless, in the case of EXT:news I have problems "predefining" the category values like:

TCAdefaults.tx_news_domain_model_news.categories = 1,2,3,4
because tx_news_domain_model_news.categories seems to be an item-counter where I thought it to be a comma-seperated list and I don't know where to set my default category id's.



Christian
Christian Richter
2013-06-07 14:30:11 UTC
Permalink
Hi,

Sorry for being stubborn, but I had a look at:

tx_news_domain_model_category
tx_news_domain_model_news
and
tx_news_domain_model_news_category_mm

and I still do not know where my category uid's are!

tx_news_domain_model_news_category_mm is the right one isn't it?

But I have to say, I really don't get the structure of that table?

Little tip, pointing me in the right direction?

Best,

Christian
Philipp Gampe
2013-06-07 15:28:29 UTC
Permalink
Hi Christian,
Post by Christian Richter
Little tip, pointing me in the right direction?
The mm table holds the relations between the two other tables. Thus is
contains the uids of both (and maybe a few additional attributes).

Best regards
--
Philipp Gampe ? PGP-Key 0AD96065 ? TYPO3 UG Bonn/K?ln
Documentation ? Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!
Loading...