Re: Variable before query, rereplace or javascript to change title

2010-11-19 Thread Michael Grant

...until you need to hire five new developers in any place that isn't
California.
:(

On Fri, Nov 19, 2010 at 11:04 AM, Gerald Guido wrote:

>
> >>  I simply added this to my custom tag and it does just what its supposed
> to!
>
> Yep. Reason 32,657 why CF Roxorz.
>
> G!
>
> On Fri, Nov 19, 2010 at 10:24 AM, Joel Black  >wrote:
>
> >
> > Gerald,  was the key.  I didnt even have to
> savecontent
> > or anything else.  I simply added this to my custom tag and it does just
> > what its supposed to!
> >
> > Never even knew this tag existed, thanks a million!
> >
> >
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339401
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Variable before query, rereplace or javascript to change title

2010-11-19 Thread Gerald Guido

>>  I simply added this to my custom tag and it does just what its supposed
to!

Yep. Reason 32,657 why CF Roxorz.

G!

On Fri, Nov 19, 2010 at 10:24 AM, Joel Black wrote:

>
> Gerald,  was the key.  I didnt even have to savecontent
> or anything else.  I simply added this to my custom tag and it does just
> what its supposed to!
>
> Never even knew this tag existed, thanks a million!
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339400
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Variable before query, rereplace or javascript to change title

2010-11-19 Thread Michael Grant

Slightly OT, but I suspect this indicates that your app would benefit from a
separation of display logic and business logic.


On Fri, Nov 19, 2010 at 10:24 AM, Joel Black wrote:

>
> Gerald,  was the key.  I didnt even have to savecontent
> or anything else.  I simply added this to my custom tag and it does just
> what its supposed to!
>
> Never even knew this tag existed, thanks a million!
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339399
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Variable before query, rereplace or javascript to change title

2010-11-19 Thread Joel Black

Gerald,  was the key.  I didnt even have to savecontent or 
anything else.  I simply added this to my custom tag and it does just what its 
supposed to!

Never even knew this tag existed, thanks a million! 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339398
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Variable before query, rereplace or javascript to change title

2010-11-19 Thread Joel Black

>Your title  -
>#Yourvaraible#
> 
>
>This will put  #pageTitle# in the head of the document.
>
>
>
>On Thu, Nov 18, 2010 at 4:05 PM, Joel Black wrote:
>
>> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339397
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Variable before query, rereplace or javascript to change title

2010-11-18 Thread Brook Davies

I believe in your custom tag, you need to set the variables in the 'caller'
scope  (e.g. caller.mytitle) to be accessed in the calling template scope.
If I recall correctly...

Brook

-Original Message-
From: Joel Black [mailto:j...@blackbeardesign.com] 
Sent: November-18-10 1:05 PM
To: cf-talk
Subject: Re: Variable before query, rereplace or javascript to change title


Wrap the custom tag in a cfsavecontent tag at the top of the page:


I tried to do this, but the query.title doesnt read the query within the
save content.  I also tried to set a variable within the custom tag and pull
that out...but no success there either.  What if i set an application
variable?  Im gonna try it. 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339388
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Variable before query, rereplace or javascript to change title

2010-11-18 Thread Gerald Guido

Your title  -
#Yourvaraible#
 

This will put  #pageTitle# in the head of the document.



On Thu, Nov 18, 2010 at 4:05 PM, Joel Black wrote:

>
> Wrap the custom tag in a cfsavecontent tag at the top of the page:
>
>
> I tried to do this, but the query.title doesnt read the query within the
> save content.  I also tried to set a variable within the custom tag and pull
> that out...but no success there either.  What if i set an application
> variable?  Im gonna try it.
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339386
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Variable before query, rereplace or javascript to change title

2010-11-18 Thread Joel Black

Wrap the custom tag in a cfsavecontent tag at the top of the page:


I tried to do this, but the query.title doesnt read the query within the save 
content.  I also tried to set a variable within the custom tag and pull that 
out...but no success there either.  What if i set an application variable?  Im 
gonna try it. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339385
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Variable before query, rereplace or javascript to change title

2010-11-18 Thread Joel Black

>Wrap the custom tag in a cfsavecontent tag at the top of the page:
>
I gave this a try, but when I wrap it in the savecontent, its not reading the 
query when I put it in the title 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339381
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Variable before query, rereplace or javascript to change title

2010-11-18 Thread Brook Davies

Wrap the custom tag in a cfsavecontent tag at the top of the page:





Then output your page:



#myquery.somevalue#


   #myoutput#




Brook
-Original Message-
From: Joel Black [mailto:j...@blackbeardesign.com] 
Sent: November-18-10 12:27 PM
To: cf-talk
Subject: Variable before query, rereplace or javascript to change title


I created a custom tag I can reuse, which runs a news manager.  I would like
to optimize it for search engines, but here is my issue:

1. The query and output are in the custom tag, which goes in the main
content of the page
2. I want the news title to be in the page title, but I cant put an output
before a query that I know of
3. Not sure if an ReReplace will work in this situation either
4. I know I can do it with javascript, but javascript is client side and
will not change the title in time for a search engine to catch it will it?

Any input would be greatly appreciated.  Example:
http://desconsultants.com/news.cfm?newsId=84 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339376
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Variable before query, rereplace or javascript to change title

2010-11-18 Thread Claude Schnéegans

 >>2. I want the news title to be in the page title, but I cant put an output 
 >>before a query that I know of

No, but you can run the query before any HTML, ie :

 SELECT title, ...



#myQuery.title#




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339375
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm