News: Teaser -> Details

2 views
Skip to first unread message

bernd....@googlemail.com

unread,
Feb 4, 2007, 8:47:44 AM2/4/07
to farcry-dev
I guess I am missing something. I wanna add news to my page.
I got to the point where I can see the news-teaser on my page,
but when I click on the link and I expect to see the news details
all I get is "This is the default output of types.Display():" and
a dump.

Where do I make the connection between a teaser format and the
layout that I wanna use to show the news details?

Thanks in advance

Bernd

Blair McKenzie

unread,
Feb 4, 2007, 8:04:08 PM2/4/07
to farcr...@googlegroups.com
Is the display method property on the news items set?

Blair

bernd....@googlemail.com

unread,
Feb 5, 2007, 2:41:29 AM2/5/07
to farcry-dev
I just copied the code from the default Layout that comes with Farcry:
<a href="/index.cfm?objectid=#stObj.objectid#">
Where would I add this property and what should it's value be?

Thank you
Bernd

On 5 Feb., 02:04, "Blair McKenzie" <shi...@gmail.com> wrote:
> Is the display method property on the news items set?
>
> Blair
>

> On 2/4/07, bernd.ande...@googlemail.com <bernd.ande...@googlemail.com>

Blair McKenzie

unread,
Feb 5, 2007, 3:29:24 AM2/5/07
to farcr...@googlegroups.com
When you create the news item, on the start page you should be able to choose a display method.

bernd....@googlemail.com

unread,
Feb 5, 2007, 5:27:46 AM2/5/07
to farcry-dev
Yes - I chose a display method. But the method I can choose is for the
teaser page.
This part works fine - if I change to another display method the
teaserpage looks
different. But when I click on the teaser I expect a certain display
page to be used.
Where can I tell the teaser which details page to use?

On 5 Feb., 09:29, "Blair McKenzie" <shi...@gmail.com> wrote:
> When you create the news item, on the start page you should be able to
> choose a display method.
>

> On 2/5/07, bernd.ande...@googlemail.com <bernd.ande...@googlemail.com>

Blair McKenzie

unread,
Feb 5, 2007, 5:42:26 AM2/5/07
to farcr...@googlegroups.com
You can only choose the one display method for the details page. I'm not sure what might cause your problem though.

Blair

bernd....@googlemail.com

unread,
Feb 5, 2007, 6:32:30 AM2/5/07
to farcry-dev
I guess this is the part that I don't understand.

I add a container to a page.
I switch to design mode - choose the news rule and the news I wanna
see and the display method.
The method I choose here is for the page that shows all my news teaser
- not the details.
How does Farcry make the connection between the teaser and the
details... is there a naming convention
or anything like that?


On 5 Feb., 11:42, "Blair McKenzie" <shi...@gmail.com> wrote:
> You can only choose the one display method for the details page. I'm not
> sure what might cause your problem though.
>
> Blair
>

> On 2/5/07, bernd.ande...@googlemail.com <bernd.ande...@googlemail.com>

Blair McKenzie

unread,
Feb 5, 2007, 7:11:57 AM2/5/07
to farcr...@googlegroups.com
Rules that insert content (like news) into a page allow you to pick a display method for just that page. The rule gets the data for those items and uses the display method you choose to generate html, then outputs them. The rule and display method don't have any intrinsic connection to the details page and its display method - but you can link to the details page.

The details page will use the display method you specify while editing the news item in the FarCry admin console. That means that if you simply navigate to it (/index.cfm?objectid=...) that is the display method that will be used.

If you want to be able to specify different display methods for the details page you can either:
  • Add a query string parameter
    This is a good option for when you just want slight changes in the display - i.e. you can just check for the parameter in the display method itself and handle it there.
  • Create a specialized display handler
    This is a reasonable choice for chreating print friendly pages - you set up printfriendly.cfm , and that file is coded to always use the same specific display method.
But usually, just using the display method property of the item itself is enough for most situations.

Blair

bernd....@googlemail.com

unread,
Feb 5, 2007, 9:58:05 AM2/5/07
to farcry-dev
Thanks a lot! Now I can finally finish my website :-)


On Feb 5, 1:11 pm, "Blair McKenzie" <shi...@gmail.com> wrote:
> Rules that insert content (like news) into a page allow you to pick a
> display method for just that page. The rule gets the data for those items
> and uses the display method you choose to generate html, then outputs them.
> The rule and display method don't have any intrinsic connection to the
> details page and its display method - but you can link to the details page.
>
> The details page will use the display method you specify while editing the
> news item in the FarCry admin console. That means that if you simply
> navigate to it (/index.cfm?objectid=...) that is the display method that
> will be used.
>
> If you want to be able to specify different display methods for the details
> page you can either:
>

> - Add a query string parameter


> This is a good option for when you just want slight changes in the
> display - i.e. you can just check for the parameter in the display
> method itself and handle it there.

> - Create a specialized display handler


> This is a reasonable choice for chreating print friendly pages - you

> set up printfriendly.cfm, and that file is coded to always use the


> same specific display method.
>
> But usually, just using the display method property of the item itself is
> enough for most situations.
>
> Blair
>

> On 2/5/07, bernd.ande...@googlemail.com <bernd.ande...@googlemail.com>

bernd....@googlemail.com

unread,
Feb 5, 2007, 10:55:57 AM2/5/07
to farcry-dev
ahhh.... I got one more :-)

When I click on the link displayed from the news teaser I do get the
default display method from the types.cfc (which is nothing more than
a dump) because News.cfc doesn't have a default display method. I
wonder why. Shouldn't News.cfc have it's own display method?

On Feb 5, 3:58 pm, "bernd.ande...@googlemail.com"

Jake Churchill

unread,
Feb 5, 2007, 11:02:33 AM2/5/07
to farcr...@googlegroups.com
you have to create your own inside the project_folder/webskins/dmNews
directory

--
Jake Churchill
CF Webtools
11204 Davenport, Ste. 200b
Omaha, NE 68154
http://www.cfwebtools.com
402-408-3733 x103


bernd....@googlemail.com

unread,
Feb 5, 2007, 11:53:04 AM2/5/07
to farcry-dev
that was the point where I started :-)

But I did find the problem. I don't know why but when I added a news
item farcry did not save the default template that I chose. Which
explains why it always showed me the default display method for types.
Man ... a couple more of these problems and I know this system by
heart :-))

Thanks for all the feedback

Bernd

Reply all
Reply to author
Forward
0 new messages