List Info

Thread: HELP!!! changing the output channel from popup to xhtml




HELP!!! changing the output channel from popup to xhtml
user name
2007-01-12 15:57:58
On 12 Jan 2007 at 5:03, Jules Richardson wrote:

> HTTP/1.0 302 Object moved
> Date: Fri, 12 Jan 2007 11:05:36 GMT
> Content-Length: 144
> Content-Type: text/html
> Cache-Control: private
> Server: Microsoft-IIS/4.0

I like to use www.netcraft.com to get a bunch of information
at once. 
Once you start looking at any of the subdomains, such as 
netscape.compuserve.com, the answer comes back Solaris 8.  
Maybe the 
www.compuserve.com and www.cs.com are just front-ends for
member 
login and that most of a session is redirected to the
Solaris 
servers?  It's kind of hard to believe that the
bread-and-butter of 
CS is still being run on NT 4.0.

Cheers,
Chuck


Re: HELP!!! changing the output channel from popup to xhtml
user name
2007-01-12 21:49:10
David,

I changed the "use" line to point to the devel
clone
use lib '/usr/local/bricolage-dev/lib';

my test to see if I'm working against the devel.

- checked out 3 av_gallery stories on the dev..

modified the Story->list() method

 Story->list({ element_key_name => 'av_gallery',
'publish_status' =>
'1',  'checked_out' => '0' })

and

Story->list({ element_key_name => 'av_gallery',
'checked_out' => '0' })

I removed the publish_status since the stories had actually
been published.

still can't tell.

trying to resolve this quickly. but need to know I'm not
going to be
updating the production server.

anyone??

Thanks in advance!!

On 1/12/07, Chauncey Thorn <chauncey.thorngmail.com> wrote:
> David,
>
> I found this code in the migrate_galleries script you
all wrote.
>
> I changed one line -
> moved the $story->del_output_channels(ocs);
up.
>    By moving it up will it delete the current OCs first
then allow me
> to add the other ocs?
>
> -- Also, since we have our dev and production running
on the same
> system for now. How do I tell it to run against the dev
only.
>
> #!/usr/local/bin/perl -w
>
> use strict;
> use lib '/usr/local/bricolage/lib';
> use aliased 'Bric::Biz::Asset::Business::Story';
> use aliased 'Bric::Biz::OutputChannel';
>
> my $xhtml_oc = OutputChannel->lookup({ id => 1034
});
> my $email_oc = OutputChannel->lookup({ id => 1039
});
>
> for my $story (Story->list({ element_key_name =>
'av_gallery' })) {
>     # Update the output channels.
>     my ocs = $story->get_output_channels;
>     #$story->del_output_channels(ocs);
>     #$story->add_output_channels($xhtml_oc);
>    
#$story->set_primary_oc_id($xhtml_oc->get_id);
>     #$story->add_output_channels($email_oc);
>     #$story->save;
>     print $story->get_primary_uri, $/;
> }
>
>
> Thanks
>
> On 1/12/07, David E. Wheeler <davidkineticode.com> wrote:
> > On Jan 12, 2007, at 1:57 PM, Chauncey Thorn
wrote:
> >
> > > Can this be done without having to touch
every story via the UI? Can I
> > > use bric_soap?
> >
> > Yep, just export them all, then change this line:
> >
> >   
<output_channel>Popup</output_channel>
> >
> > To this:
> >
> >   
<output_channel>XHTML</output_channel>
> >
> > and then update them.
> >
> > Best,
> >
> > David
> >
>

Re: HELP!!! changing the output channel from popup to xhtml
user name
2007-01-12 22:17:52
On Jan 12, 2007, at 19:49, Chauncey Thorn wrote:

> trying to resolve this quickly. but need to know I'm
not going to be
> updating the production server.

Put this in:

   print Bric::Config:B_NAME,
$/;
   exit;

It will output the name of the database that it will be
updating.

Best,

David

-- 
David Wheeler
President, Kineticode, Inc.
http://www.kineticode.com/

Kineticode. Setting knowledge in motion.[sm]



Re: HELP!!! changing the output channel from popup to xhtml
user name
2007-01-12 22:16:39
On Jan 12, 2007, at 19:02, Chauncey Thorn wrote:

> David,
>
> I found this code in the migrate_galleries script you
all wrote.

Ah, that's the one!

> I changed one line -
> moved the $story->del_output_channels(ocs);
up.
>   By moving it up will it delete the current OCs first
then allow me
> to add the other ocs?

No. You actually want to assign a new primary before you
delete all  
the others. That's why it had first fetched the originals,
then added  
a new primary, then deleted the originals.

> -- Also, since we have our dev and production running
on the same
> system for now. How do I tell it to run against the dev
only.

Make sure that you set the "use lib" line to point
to the proper  
install's lib directory.

HTH,

David

-- 
David Wheeler
President, Kineticode, Inc.
http://www.kineticode.com/

Kineticode. Setting knowledge in motion.[sm]



Re: HELP!!! changing the output channel from popup to xhtml
user name
2007-01-12 22:20:34
Thanks..



On 1/12/07, David E. Wheeler <davidkineticode.com> wrote:
> On Jan 12, 2007, at 19:02, Chauncey Thorn wrote:
>
> > David,
> >
> > I found this code in the migrate_galleries script
you all wrote.
>
> Ah, that's the one!
>
> > I changed one line -
> > moved the $story->del_output_channels(ocs);
up.
> >   By moving it up will it delete the current OCs
first then allow me
> > to add the other ocs?
>
> No. You actually want to assign a new primary before
you delete all
> the others. That's why it had first fetched the
originals, then added
> a new primary, then deleted the originals.
>
> > -- Also, since we have our dev and production
running on the same
> > system for now. How do I tell it to run against
the dev only.
>
> Make sure that you set the "use lib" line to
point to the proper
> install's lib directory.
>
> HTH,
>
> David
>
> --
> David Wheeler
> President, Kineticode, Inc.
> http://www.kineticode.com/

> Kineticode. Setting knowledge in motion.[sm]
>
>
>

Re: HELP!!! changing the output channel from popup to xhtml
user name
2007-01-13 02:15:24
Re: HELP!!! changing the output channel from popup to xhtml
user name
2007-01-13 01:57:28
Re: HELP!!! changing the output channel from popup to xhtml
user name
2007-01-13 00:25:32
[1-8]

about | contact  Other archives ( Real Estate discussion Medical topics )