[TYPO3-ttnews] no news_id given

Nagita Karunaratne nagita.k at gmail.com
Wed Aug 9 00:12:53 CEST 2006


This only means it is not navigatable from the menu. It will only be
accessed from another news content element which will give it a id.

On 8/8/06, Katja Lampela <katja.lampela at lieska.net> wrote:
>
> Oh but I want to use it, it's the actual news page. In this case it's a
> nice feature that the news list and the chosen single news are both on
> the same page.
>
>
>
> Nagita Karunaratne wrote:
> > Maybe tell T3 not to use that page on the menu
> >
> > uid.excludelist = <page_id>
> >
> >
> >
> > On 8/8/06, Katja Lampela <katja.lampela at lieska.net> wrote:
> >>
> >> Yes that seems to be the case - I just thought there might be a way to
> >> show the news list and the single in the same page in different
> columns.
> >> And sure it works, only problem is that when you come to the page the
> >> single news element has the "no news_id given" text (because nothing is
> >> chosen yet). Well, I have to keep trying..
> >> Thanks for your response though:)
> >>
> >>
> >> Nagita Karunaratne wrote:
> >> > I am new as well but I think 'Single view' is to display a the
> complete
> >> > news
> >> > item when you select 'more' in another news content element (like
> >> Latest).
> >> >
> >> > You have a 'Single' on a page and then on the 'Latest' point it to
> the
> >> > 'Single' when it want to show the complete news item.
> >> >
> >> > 'Single' needs a item id to display, it does not display news items
> on
> >> its
> >> > own.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > On 8/7/06, Katja Lampela <katja.lampela at lieska.net> wrote:
> >> >>
> >> >> Hi,
> >> >> I'm stuck with this message in the single view when nothing is
> chosen.
> >> >> I've tried the code below in the news-pages ext ts setup, but it
> >> doesn't
> >> >> have any effect even for the noNewsIdMsg-part.
> >> >>
> >> >> I'm using template selector (rlmptemplselector) - it's quite new to
> >> me,
> >> >> so maybe I just couldn't figure out how the code should be modified.
> >> >>
> >> >> Though I would think the first line would have some effect anyway..
> >> any
> >> >> ideas to point me in right direction?
> >> >> Katja
> >> >>
> >> >>
> >> >> # hide the "no news id" message
> >> >> plugin.tt_news._LOCAL_LANG.default.noNewsIdMsg = &nbsp;
> >> >> # set the tt_news singlePid to the current page
> >> >> plugin.tt_news.singlePid = 20
> >> >> # fill the content of the main-column to a tmp.object
> >> >> tmp.pagecontent < page.10.subparts.colLeft
> >> >>
> >> >> # clear the content of the main column
> >> >> page.10.subparts.colLeft >
> >> >>
> >> >> # build a new object for this column as content-object-array
> >> >> page.10.subparts.colLeft = COA
> >> >> page.10.subparts.colLeft {
> >> >>    10 = CONTENT
> >> >>    10.table = tt_news
> >> >>    10.select {
> >> >> # insert the pids of all pages from where you want to fetch news.
> >> >> # the recursive-field has no influence on this selection
> >> >>      pidInList = 20
> >> >>      orderBy = datetime desc
> >> >>      max = 1
> >> >>    }
> >> >> # insert the object "10." only if there is no SINGLE news selected
> >> >>    10.stdWrap.if.isFalse.data = GPvar:tx_ttnews|tt_news
> >> >> # re-insert the normal pagecontent to the page
> >> >>    20 < tmp.pagecontent
> >> >> }
> >> >> _______________________________________________
> >> >> TYPO3-project-tt-news mailing list
> >> >> TYPO3-project-tt-news at lists.netfielders.de
> >> >>
> >>
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-news
> >>
> >> >>
> >> >>
> >> _______________________________________________
> >> TYPO3-project-tt-news mailing list
> >> TYPO3-project-tt-news at lists.netfielders.de
> >>
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-news
> >>
> >>
> _______________________________________________
> TYPO3-project-tt-news mailing list
> TYPO3-project-tt-news at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-news
>



More information about the TYPO3-project-tt-news mailing list