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
**********************************************************************

Reply via email to