[DONE] Need help placing FLV in Cataloger Module...

A place to make for-pay "CMS made simple" job offerings
Post Reply
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

[DONE] Need help placing FLV in Cataloger Module...

Post by pixelita »

[I am marking this [DONE] because I solved it (somewhat) on my own and will post my quick fix below in case it helps someone else.]

Hi, all. I am working on a web site using Cataloger to display various products (items of fish for sale). All that is working great. The client has videos (FLV and/or SWF) associated with each product offered.

I am using the Play module to manage the videos.

I tried using Cataloger to allow for a place to put each product's video (using the Play module code to display the video record), but that doesn't seem to work.

I then tried altering the single product template to add an additional content block. That doesn't seem to work either.

I'm willing to pay for someone's time to help me figure out how to get this working.

PM me for details and login credentials to the dev server and let me know your hourly rate.

Thanks.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: [DONE] Need help placing FLV in Cataloger Module...

Post by pixelita »

Here's my somewhat crude solution. Using the Pla module's

Code: Select all

{Play record='n'}
tag on the Item page (where you fill in all your catalog item variables) wouldn't work; they wouldn't be processed as code. There should be a way to pass some kind of variable to that tag but that's beyond my scope of expertise.

I needed to automate it for the client so when they add new products and an associated video, they wouldn't have to think too hard about it. Hence the desire to automate everything.

I took a look at the code that the Play module spit out with regard to the FLV video. I remembered when I was setting up my catalog item fields that there was a box marked "default."

So I decided to paste the FLV code (which was everthing inside the

Code: Select all

<object></object>
tag) into that default box. But I changed the file name to VIDEOFILENAME.FLV. That way, the client will have that code already populated and all he has to do is supply the name of the video. We will continue to use the Play module for other areas of the site and to upload any future videos so they are all in the same place.

Works a treat, just not the most elegant solution out there!
uniqu3

Re: [DONE] Need help placing FLV in Cataloger Module...

Post by uniqu3 »

If you are talking about Cataloger detail template you could of tried something like this:

Add new "user defined field" in Cataloger named for example "Video"
Than in Detail Tempalte you could do something like this:

Code: Select all

{section name=at loop=$attrlist}
{if 'Video'!=$attrlist[at].name}{capture assign="videoname"}{eval var=$attrlist[at].key}{/capture}
{Play record=$videoname}
{/if}
{/section}
This means in Cataloger/Item page you would have a field "Video" this is where your client adds videoname or whatever you have setup for record attribute.

I didn't test this but theoretically this could work.
Post Reply

Return to “Help Wanted (commercial)”