You read me right the first time: You should put <cf_DisplayProNewsTeasers>
in index.cfm, then put <cf_DisplayProNews> below the <cf_DisplayContent
id="#URL.id#"> in News.cfm.  That will display your teasers on the home
page.

This is the simplest and easiest way to implement teasers.  I thought about
this quite a bit, and it just isn't efficient to retrieve a second text
column for every content item when only some of them use teasers.

Of course, if you insist, you can always modify the Plum CMS to do whatever
you want it to do, which is the way we designed it to be used.  You can see
from the CMS-related forms and action pages that modification would take all
of about three minutes tops on that end, and modifying Content.cfc shouldn't
take very long at all.  As long as you don't intend to index the teasers
(which would be a bad idea, anyway), then you probably don't have to modify
Verity.cfc.

Ahmadie, please let us all know how you decide to handle the solution.  It's
always good to see new ideas.

Respectfully,

Adam Phillip Churvis
Member of Team Macromedia
http://www.ProductivityEnhancement.com

Download Plum and other cool development tools,
and get advanced intensive Master-level training:

* C# & ASP.NET for ColdFusion Developers
* ColdFusion MX Master Class
* Advanced Development with CFMX and SQL Server 2000

----- Original Message ----- 
From: "Ahmadie Thaha" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, December 08, 2004 6:47 AM
Subject: Re: [plum] Adding Teaser to Plum CMS


> Thank's you, Adam
>
> The system is now running. By adding
> <cf_DisplayProNews> (not <cf_DisplayProNewsTeaser as
> you say> in index.cfm, I have many news's titles (only
> title) displayed in the homepage. But, I want there is
> a brief news (teaser) below the news titles. Then I
> try to add #Left(ContentBody,'200')# in the
> <cf_DisplayProNews>, but I get an error message:
> "Variable ContentBody is undefined".
>
> Another problem, if applied, I must input data via two
> forms (one for teaser, and another for it's detail
> news) only to have a news page. This is not efficient
> solution. Is there another solution? Is it possible
> adding another table "NewsTeaser" where it's field
> linked (via ContentItemID) to "PlumContentItem" table?
>
>
> Thank's you
> ahmadie
>
>
> --- Adam Churvis <[EMAIL PROTECTED]>
> wrote:
>
> > > I dosn't understand what do you mean by IDs and
> > > "-Teaser" above? Would you like to explain me more
> > > clear? I have try creating new custom tag as you
> > > suggest, then creating News.cfm in the root app,
> > but
> > > when I clicking the link of news item, it refers
> > to
> > > itself. I want to refer to detail news item.
> > >
> > > ID="-TeaserMyNews"
> > > Category="NewsTeaser"
> >
> > Sorry for the partial answer.  I'll create a
> > KnowledgeBase article on this
> > after training, but for now here's some more detail.
> >
> > We put this call on our home page:
> >
> > <cf_DisplayProNewsTeasers>
> >
> > This is the tag I gave you earlier.  Here is
> > News.cfm:
> >
> > ---
> > <cfmodule template="#Request.layout#/Header.cfm"
> > pageType="Home">
> >
> > <cfparam name="URL.id" default="">
> > <cf_DisplayContent id="#URL.id#">
> >
> > <h2>More Productivity Enhancement News</h2>
> > <cf_DisplayProNews>
> >
> > <cfmodule template="#Request.layout#/Footer.cfm">
> > ---
> >
> > Here is <cf_DisplayProNews>:
> >
> > ---
> > <cfsetting enablecfoutputonly="Yes">
> > <cfparam name="Attributes.category" type="string"
> > default="News">
> > <cfif ThisTag.ExecutionMode EQ "Start">
> >  <cfinvoke
> >   component="#Application.Content#"
> >   method="GetContentNamesByCategory"
> >   returnvariable="contentQuery"
> >   category="#Attributes.category#">
> >
> >  <cfif contentQuery.RecordCount GT 0>
> >   <cfoutput><ul style="margin-left: 9px; margin-top:
> > 3px; line-height:24px;
> > list-style-image:
> > url('/images/arrow.gif');font-size:
> > 12px;"></cfoutput>
> >   <cfoutput query="contentQuery">
> >    <li><a
> >
>
href="#Application.urlRoot#/#DisplayTemplate#?id=#ContentItemID#">#ContentIt
> > emName#</a></li>
> >   </cfoutput>
> >   <cfoutput></ul></cfoutput>
> >  <cfelse>
> >   <cfoutput><p>There is currently no content in this
> > category.</p></cfoutput>
> >  </cfif>
> > </cfif>
> > <cfsetting enablecfoutputonly="No">
> > ---
> >
> > To make all this work, I use two content items per
> > news article.
> >
> > For example, our Plum press release has an ID of
> > "PlumV10PublicBetaReleased", it's in the category
> > "News", and uses
> > "News.cfm" (it's in the application's root
> > directory) as the Display
> > Template. ("ID", "Category", and "Display Template"
> > are fields on the
> > content item's add and edit forms.)
> >
> > The teaser for this news release has an ID of
> > "PlumV10PublicBetaReleased-Teaser", it's in the
> > category "NewsTeaser", and
> > has no value for Display Template because I don't
> > want the teaser to be
> > indexed by Verity (only content items with values
> > for Display Template are
> > indexed).
> >
> > When someone comes to the home page,
> > <cf_DisplayProNewsTeasers> displays the
> > teasers I currently have published.  Clicking a
> > teaser's headline takes the
> > person to News.cfm, where <cf_DisplayContent
> > id="#URL.id#"> displays the
> > full news article, and <cf_DisplayProNews> displays
> > all the currently
> > published news headlines.  Clicking on another
> > headline displays that
> > article using that article's display template (which
> > is typically also
> > News.cfm).
> >
> > I hope this is a proper explanation that helps you,
> > Ahmadie.  If not then
> > reply back and I'll explain more as soon as I can.
> >
> > Respectfully,
> >
> > Adam Phillip Churvis
> > Member of Team Macromedia
> > http://www.ProductivityEnhancement.com
> >
> > Download Plum and other cool development tools,
> > and get advanced intensive Master-level training:
> >
> > * C# & ASP.NET for ColdFusion Developers
> > * ColdFusion MX Master Class
> > * Advanced Development with CFMX and SQL Server 2000
> >
> >
> >
> **********************************************************************
> > You can subscribe to and unsubscribe from lists, and
> > you can change
> > your subscriptions between normal and digest modes
> > here:
> >
> >
> http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
> >
> **********************************************************************
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com
>
> **********************************************************************
> You can subscribe to and unsubscribe from lists, and you can change
> your subscriptions between normal and digest modes here:
>
> http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
> **********************************************************************
>


**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************

Reply via email to