Child postings or multiple documents
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Child postings or multiple documents

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Dave
Guest





Posted: Fri Jan 14, 2005 8:21 pm    Post subject: Child postings or multiple documents Reply with quote

Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have any
number of documents attached to it. These can be Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not suitable
either.

The page where the documents are will not be visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the normal page.
2. Have a link to upload a document, which launches a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked to the
parent.

Does CMS support child postings to a parent posting? If
not, then what would be the suggestion to manage this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.
Back to top
Stefan [MSFT]
Guest





Posted: Fri Jan 14, 2005 9:01 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Hi Dave,

you could also use the MultiAttachmentPlaceholderControl or customize it to
your needs:
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote in message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Quote:
Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have any
number of documents attached to it. These can be Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not suitable
either.

The page where the documents are will not be visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the normal page.
2. Have a link to upload a document, which launches a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked to the
parent.

Does CMS support child postings to a parent posting? If
not, then what would be the suggestion to manage this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.
Back to top
Dave
Guest





Posted: Fri Jan 14, 2005 9:14 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Stefan, you are a star. Is there no end to your knowledge
on CMS?

This looks like it is possibly what I am looking for, but
I don't know how to use it. (There is no help file). I am
assuming it is a web control, but as of yet, I have done
nothing with web controls or custom controls.

Can you give me a brief idea of what to do with it?

Thanks.
Dave.
~~
http://www.FOCUSPortals.com - Franchises available.

Quote:
-----Original Message-----
Hi Dave,

you could also use the MultiAttachmentPlaceholderControl
or customize it to
your needs:
http://www.gotdotnet.com/Community/UserSamples/Details.as
px?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have any
number of documents attached to it. These can be Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not suitable
either.

The page where the documents are will not be visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the normal
page.
2. Have a link to upload a document, which launches a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked to the
parent.

Does CMS support child postings to a parent posting? If
not, then what would be the suggestion to manage this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.


.
Back to top
Stefan [MSFT]
Guest





Posted: Fri Jan 14, 2005 9:36 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Hi Dave,

it is actually a custom placeholder control.
To use it, create a new c# class library project, add the CS file to the
project (remove the class1.cs) and compile it.
then add the resulting dll to your toolbox and you can use it like the html
placeholder control.
The placeholder definition you need to create to bind it to needs to be a
HtmlPlaceholderDefinition.

Cheers,
Stefan.


"Dave" <david@revilloc.remove.this.bit.com> wrote in message
news:171e01c4fa4b$c77a78c0$a601280a@phx.gbl...
Quote:
Stefan, you are a star. Is there no end to your knowledge
on CMS?

This looks like it is possibly what I am looking for, but
I don't know how to use it. (There is no help file). I am
assuming it is a web control, but as of yet, I have done
nothing with web controls or custom controls.

Can you give me a brief idea of what to do with it?

Thanks.
Dave.
~~
http://www.FOCUSPortals.com - Franchises available.

-----Original Message-----
Hi Dave,

you could also use the MultiAttachmentPlaceholderControl
or customize it to
your needs:
http://www.gotdotnet.com/Community/UserSamples/Details.as
px?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have any
number of documents attached to it. These can be Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not suitable
either.

The page where the documents are will not be visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the normal
page.
2. Have a link to upload a document, which launches a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked to the
parent.

Does CMS support child postings to a parent posting? If
not, then what would be the suggestion to manage this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.


.
Back to top
Dave
Guest





Posted: Mon Jan 17, 2005 4:38 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Hi Stefan,

I have compiled it, attached it but having problems. My
steps are below...

1. Open up a new instance of vis studio. Create a new
class file. Remove class1.cs, add an existing file, the
one you pointed me to.
2. Won't compile. Added various references until it did.
The refs are:
2.1 Microsoft.ContentManagement.Common
2.2 Microsoft.ContentManagement.Publishing
2.3
Microsoft.ContentManagement.Publishing.Extensions.Placehol
ders
2.4 Microsoft.ContentManagement.WebControls
2.5 System
2.6 System.Data
2.7 System.Web
2.8 System.XML

3. This now compiles. Find the new DLL and copy it into
the BIN folder of my CMS project.
4. Open the Content Management Server toolbox panel.
Right click, browse to the newly created DLL and add it.
5. Go into my template explorer, edit the template to add
a new HTML placeholder control.
6. Add the multiattachment placeholder to the aspx page,
bind the placeholder to the newly created HTML
placeholder defined in step 5.
7. Compile and run.

When running, I am getting a parser error...

Parser Error Message: The base class includes the
field 'MultiAttachmentPlaceholderControl', but its type
(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol) is not compatible with the type of control
(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol).


on the line...

<cc1:MultiAttachmentPlaceholderControl
id="MultiAttachmentPlaceholderControl" runat="server"
PlaceholderToBind="DocumentsPlaceholder"></cc1:MultiAttach
mentPlaceholderControl>

Any help would be appreciated.

Thanks.
Dave.
http://www.FOCUSPortals.com - Franchise opportunities
available.


Quote:
-----Original Message-----
Hi Dave,

it is actually a custom placeholder control.
To use it, create a new c# class library project, add
the CS file to the
project (remove the class1.cs) and compile it.
then add the resulting dll to your toolbox and you can
use it like the html
placeholder control.
The placeholder definition you need to create to bind it
to needs to be a
HtmlPlaceholderDefinition.

Cheers,
Stefan.


"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:171e01c4fa4b$c77a78c0$a601280a@phx.gbl...
Stefan, you are a star. Is there no end to your
knowledge
on CMS?

This looks like it is possibly what I am looking for,
but
I don't know how to use it. (There is no help file). I
am
assuming it is a web control, but as of yet, I have
done
nothing with web controls or custom controls.

Can you give me a brief idea of what to do with it?

Thanks.
Dave.
~~
http://www.FOCUSPortals.com - Franchises available.

-----Original Message-----
Hi Dave,

you could also use the
MultiAttachmentPlaceholderControl
or customize it to
your needs:

http://www.gotdotnet.com/Community/UserSamples/Details.as
px?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have
any
number of documents attached to it. These can be
Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not
suitable
either.

The page where the documents are will not be
visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the normal
page.
2. Have a link to upload a document, which launches
a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked to
the
parent.

Does CMS support child postings to a parent
posting? If
not, then what would be the suggestion to manage
this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.


.



.
Back to top
Stefan [MSFT]
Guest





Posted: Mon Jan 17, 2005 5:23 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Hi Dave,

that's strange - actually it is more a VS.NET or .NET framework question
than a MCMS question.
It seems something went wrong with the server control.

The only difference in the steps I usually use is the fact that you manually
copied the DLL into the bin directory.
I never did this. This is automatically done when you drag the control on
the template.

I would suggest to remove the reference to the dll from your project, remove
all references of the dll from your template files and from the bin folder.
also remove it from the toolbox and then add the reference to the original
DLL in the DLL template project.

Then drag it again to the template project.

Maybe this resolves the problem.

Cheers,
Stefan.


"Dave" <david@revilloc.remove.this.bit.com> wrote in message
news:18e101c4fc80$a9a0d600$a401280a@phx.gbl...
Quote:
Hi Stefan,

I have compiled it, attached it but having problems. My
steps are below...

1. Open up a new instance of vis studio. Create a new
class file. Remove class1.cs, add an existing file, the
one you pointed me to.
2. Won't compile. Added various references until it did.
The refs are:
2.1 Microsoft.ContentManagement.Common
2.2 Microsoft.ContentManagement.Publishing
2.3
Microsoft.ContentManagement.Publishing.Extensions.Placehol
ders
2.4 Microsoft.ContentManagement.WebControls
2.5 System
2.6 System.Data
2.7 System.Web
2.8 System.XML

3. This now compiles. Find the new DLL and copy it into
the BIN folder of my CMS project.
4. Open the Content Management Server toolbox panel.
Right click, browse to the newly created DLL and add it.
5. Go into my template explorer, edit the template to add
a new HTML placeholder control.
6. Add the multiattachment placeholder to the aspx page,
bind the placeholder to the newly created HTML
placeholder defined in step 5.
7. Compile and run.

When running, I am getting a parser error...

Parser Error Message: The base class includes the
field 'MultiAttachmentPlaceholderControl', but its type
(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol) is not compatible with the type of control
(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol).


on the line...

cc1:MultiAttachmentPlaceholderControl
id="MultiAttachmentPlaceholderControl" runat="server"
PlaceholderToBind="DocumentsPlaceholder"></cc1:MultiAttach
mentPlaceholderControl

Any help would be appreciated.

Thanks.
Dave.
http://www.FOCUSPortals.com - Franchise opportunities
available.


-----Original Message-----
Hi Dave,

it is actually a custom placeholder control.
To use it, create a new c# class library project, add
the CS file to the
project (remove the class1.cs) and compile it.
then add the resulting dll to your toolbox and you can
use it like the html
placeholder control.
The placeholder definition you need to create to bind it
to needs to be a
HtmlPlaceholderDefinition.

Cheers,
Stefan.


"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:171e01c4fa4b$c77a78c0$a601280a@phx.gbl...
Stefan, you are a star. Is there no end to your
knowledge
on CMS?

This looks like it is possibly what I am looking for,
but
I don't know how to use it. (There is no help file). I
am
assuming it is a web control, but as of yet, I have
done
nothing with web controls or custom controls.

Can you give me a brief idea of what to do with it?

Thanks.
Dave.
~~
http://www.FOCUSPortals.com - Franchises available.

-----Original Message-----
Hi Dave,

you could also use the
MultiAttachmentPlaceholderControl
or customize it to
your needs:

http://www.gotdotnet.com/Community/UserSamples/Details.as
px?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have
any
number of documents attached to it. These can be
Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not
suitable
either.

The page where the documents are will not be
visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the normal
page.
2. Have a link to upload a document, which launches
a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked to
the
parent.

Does CMS support child postings to a parent
posting? If
not, then what would be the suggestion to manage
this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.


.



.
Back to top
Guest






Posted: Mon Jan 17, 2005 5:27 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Hi Stefan,

My fault.

I originally copied the file to my project and tried
compiling within it, therefore I had two instances of the
class, and it was getting confused.

Anyway, that appears to be working, BUT, there is a HTML
bug (2 bugs in fact) in your source.

After line 169, you need a </td></tr>, then on the
current line 170, remove the </td></tr></table> (Or just
remove the first </table> on line 170, which currently
shows... </table></td></tr></table> )

Best regards,
Dave.
http://www.FOCUSPortals.com - Franchise Opportunities
available



Quote:
-----Original Message-----
Hi Stefan,

I have compiled it, attached it but having problems. My
steps are below...

1. Open up a new instance of vis studio. Create a new
class file. Remove class1.cs, add an existing file, the
one you pointed me to.
2. Won't compile. Added various references until it did.
The refs are:
2.1 Microsoft.ContentManagement.Common
2.2 Microsoft.ContentManagement.Publishing
2.3
Microsoft.ContentManagement.Publishing.Extensions.Placeho
l
ders
2.4 Microsoft.ContentManagement.WebControls
2.5 System
2.6 System.Data
2.7 System.Web
2.8 System.XML

3. This now compiles. Find the new DLL and copy it into
the BIN folder of my CMS project.
4. Open the Content Management Server toolbox panel.
Right click, browse to the newly created DLL and add it.
5. Go into my template explorer, edit the template to
add
a new HTML placeholder control.
6. Add the multiattachment placeholder to the aspx page,
bind the placeholder to the newly created HTML
placeholder defined in step 5.
7. Compile and run.

When running, I am getting a parser error...

Parser Error Message: The base class includes the
field 'MultiAttachmentPlaceholderControl', but its type

(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol) is not compatible with the type of control

(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol).


on the line...

cc1:MultiAttachmentPlaceholderControl
id="MultiAttachmentPlaceholderControl" runat="server"
PlaceholderToBind="DocumentsPlaceholder"></cc1:MultiAttac
h
mentPlaceholderControl

Any help would be appreciated.

Thanks.
Dave.
http://www.FOCUSPortals.com - Franchise opportunities
available.


-----Original Message-----
Hi Dave,

it is actually a custom placeholder control.
To use it, create a new c# class library project, add
the CS file to the
project (remove the class1.cs) and compile it.
then add the resulting dll to your toolbox and you can
use it like the html
placeholder control.
The placeholder definition you need to create to bind
it
to needs to be a
HtmlPlaceholderDefinition.

Cheers,
Stefan.


"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:171e01c4fa4b$c77a78c0$a601280a@phx.gbl...
Stefan, you are a star. Is there no end to your
knowledge
on CMS?

This looks like it is possibly what I am looking for,
but
I don't know how to use it. (There is no help file).
I
am
assuming it is a web control, but as of yet, I have
done
nothing with web controls or custom controls.

Can you give me a brief idea of what to do with it?

Thanks.
Dave.
~~
http://www.FOCUSPortals.com - Franchises available.

-----Original Message-----
Hi Dave,

you could also use the
MultiAttachmentPlaceholderControl
or customize it to
your needs:

http://www.gotdotnet.com/Community/UserSamples/Details.a
s
px?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have
any
number of documents attached to it. These can be
Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not
suitable
either.

The page where the documents are will not be
visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the
normal
page.
2. Have a link to upload a document, which
launches
a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked
to
the
parent.

Does CMS support child postings to a parent
posting? If
not, then what would be the suggestion to manage
this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.


.



.

.
Back to top
Dave
Guest





Posted: Mon Jan 17, 2005 6:02 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Hi again,

That is working quite neat now...

Is there any way to format the way the document looks
when the link is shown on the page?

I want to have:
Small Icon - Document Name (not the filename) - Document
Size
and each doc on seperate lines.

If not, then is there a way I can interrogate the
resource gallery, for documents attached to this posting?

Thanks.
Dave.
http://www.FOCUSPortals.com - Portal franchises available

Quote:
-----Original Message-----
Hi Stefan,

I have compiled it, attached it but having problems. My
steps are below...

1. Open up a new instance of vis studio. Create a new
class file. Remove class1.cs, add an existing file, the
one you pointed me to.
2. Won't compile. Added various references until it did.
The refs are:
2.1 Microsoft.ContentManagement.Common
2.2 Microsoft.ContentManagement.Publishing
2.3
Microsoft.ContentManagement.Publishing.Extensions.Placeho
l
ders
2.4 Microsoft.ContentManagement.WebControls
2.5 System
2.6 System.Data
2.7 System.Web
2.8 System.XML

3. This now compiles. Find the new DLL and copy it into
the BIN folder of my CMS project.
4. Open the Content Management Server toolbox panel.
Right click, browse to the newly created DLL and add it.
5. Go into my template explorer, edit the template to
add
a new HTML placeholder control.
6. Add the multiattachment placeholder to the aspx page,
bind the placeholder to the newly created HTML
placeholder defined in step 5.
7. Compile and run.

When running, I am getting a parser error...

Parser Error Message: The base class includes the
field 'MultiAttachmentPlaceholderControl', but its type

(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol) is not compatible with the type of control

(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol).


on the line...

cc1:MultiAttachmentPlaceholderControl
id="MultiAttachmentPlaceholderControl" runat="server"
PlaceholderToBind="DocumentsPlaceholder"></cc1:MultiAttac
h
mentPlaceholderControl

Any help would be appreciated.

Thanks.
Dave.
http://www.FOCUSPortals.com - Franchise opportunities
available.


-----Original Message-----
Hi Dave,

it is actually a custom placeholder control.
To use it, create a new c# class library project, add
the CS file to the
project (remove the class1.cs) and compile it.
then add the resulting dll to your toolbox and you can
use it like the html
placeholder control.
The placeholder definition you need to create to bind
it
to needs to be a
HtmlPlaceholderDefinition.

Cheers,
Stefan.


"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:171e01c4fa4b$c77a78c0$a601280a@phx.gbl...
Stefan, you are a star. Is there no end to your
knowledge
on CMS?

This looks like it is possibly what I am looking for,
but
I don't know how to use it. (There is no help file).
I
am
assuming it is a web control, but as of yet, I have
done
nothing with web controls or custom controls.

Can you give me a brief idea of what to do with it?

Thanks.
Dave.
~~
http://www.FOCUSPortals.com - Franchises available.

-----Original Message-----
Hi Dave,

you could also use the
MultiAttachmentPlaceholderControl
or customize it to
your needs:

http://www.gotdotnet.com/Community/UserSamples/Details.a
s
px?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have
any
number of documents attached to it. These can be
Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not
suitable
either.

The page where the documents are will not be
visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the
normal
page.
2. Have a link to upload a document, which
launches
a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked
to
the
parent.

Does CMS support child postings to a parent
posting? If
not, then what would be the suggestion to manage
this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.


.



.

.
Back to top
Dave
Guest





Posted: Mon Jan 17, 2005 6:14 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Hi Stefan,

What I meant by document name is the name you wish to
display (the display name, but I couldn't think of the
term...)

I am currently reading the HTMLPlaceHolder that is bound
to the attachment list. How can I read the attachment
list?

If I can just get the filename, display name, the URL and
the filesize from MCMS (I suppose I can get the filesize
through filesystemobject) then I can associate my own
icon.

Come to think of it, the upload dialog asks me the
filetype. Can I also read that?

Thanks.
Dave.
http://www.AshfieldFOCUS.com

Quote:
-----Original Message-----
Hi Dave,

you are able to use the information the dialog gives to
you.
MCMS does not provide a small icon - you could try to
resize the icon but
I'm not sure if this will look very nice.
Or you could check the file extension during
presentation and associate your
own icon with it.

What is a document name if it is not the filename?

Cheers,
Stefan.

To rearrange the items you need to

"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:15c001c4fc8c$5d79c960$a301280a@phx.gbl...
Hi again,

That is working quite neat now...

Is there any way to format the way the document looks
when the link is shown on the page?

I want to have:
Small Icon - Document Name (not the filename) -
Document
Size
and each doc on seperate lines.

If not, then is there a way I can interrogate the
resource gallery, for documents attached to this
posting?

Thanks.
Dave.
http://www.FOCUSPortals.com - Portal franchises
available

-----Original Message-----
Hi Stefan,

I have compiled it, attached it but having problems.
My
steps are below...

1. Open up a new instance of vis studio. Create a new
class file. Remove class1.cs, add an existing file,
the
one you pointed me to.
2. Won't compile. Added various references until it
did.
The refs are:
2.1 Microsoft.ContentManagement.Common
2.2 Microsoft.ContentManagement.Publishing
2.3

Microsoft.ContentManagement.Publishing.Extensions.Placeho
l
ders
2.4 Microsoft.ContentManagement.WebControls
2.5 System
2.6 System.Data
2.7 System.Web
2.8 System.XML

3. This now compiles. Find the new DLL and copy it
into
the BIN folder of my CMS project.
4. Open the Content Management Server toolbox panel.
Right click, browse to the newly created DLL and add
it.
5. Go into my template explorer, edit the template to
add
a new HTML placeholder control.
6. Add the multiattachment placeholder to the aspx
page,
bind the placeholder to the newly created HTML
placeholder defined in step 5.
7. Compile and run.

When running, I am getting a parser error...

Parser Error Message: The base class includes the
field 'MultiAttachmentPlaceholderControl', but its
type


(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol) is not compatible with the type of control


(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol).


on the line...

cc1:MultiAttachmentPlaceholderControl
id="MultiAttachmentPlaceholderControl" runat="server"

PlaceholderToBind="DocumentsPlaceholder"></cc1:MultiAttac
h
mentPlaceholderControl

Any help would be appreciated.

Thanks.
Dave.
http://www.FOCUSPortals.com - Franchise opportunities
available.


-----Original Message-----
Hi Dave,

it is actually a custom placeholder control.
To use it, create a new c# class library project, add
the CS file to the
project (remove the class1.cs) and compile it.
then add the resulting dll to your toolbox and you
can
use it like the html
placeholder control.
The placeholder definition you need to create to bind
it
to needs to be a
HtmlPlaceholderDefinition.

Cheers,
Stefan.


"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:171e01c4fa4b$c77a78c0$a601280a@phx.gbl...
Stefan, you are a star. Is there no end to your
knowledge
on CMS?

This looks like it is possibly what I am looking
for,
but
I don't know how to use it. (There is no help
file).
I
am
assuming it is a web control, but as of yet, I have
done
nothing with web controls or custom controls.

Can you give me a brief idea of what to do with it?

Thanks.
Dave.
~~
http://www.FOCUSPortals.com - Franchises available.

-----Original Message-----
Hi Dave,

you could also use the
MultiAttachmentPlaceholderControl
or customize it to
your needs:


http://www.gotdotnet.com/Community/UserSamples/Details.a
s
px?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote
in
message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Hi all,

I need to have a dynamically adjustable amount
of
documents that people can upload into the CMS.

Say I am creating a news page, each page can
have
any
number of documents attached to it. These can be
Word,
XL, PDF etc.

I don't want to have "unlimited" amount of
document
placeholders, and the HTMLPlaceHolder is not
suitable
either.

The page where the documents are will not be
visible. I
will be iterating through the collection to get
the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the
normal
page.
2. Have a link to upload a document, which
launches
a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked
to
the
parent.

Does CMS support child postings to a parent
posting? If
not, then what would be the suggestion to manage
this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises
available.


.



.

.



.
Back to top
Stefan [MSFT]
Guest





Posted: Mon Jan 17, 2005 6:14 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Hi Dave,

you are able to use the information the dialog gives to you.
MCMS does not provide a small icon - you could try to resize the icon but
I'm not sure if this will look very nice.
Or you could check the file extension during presentation and associate your
own icon with it.

What is a document name if it is not the filename?

Cheers,
Stefan.

To rearrange the items you need to

"Dave" <david@revilloc.remove.this.bit.com> wrote in message
news:15c001c4fc8c$5d79c960$a301280a@phx.gbl...
Quote:
Hi again,

That is working quite neat now...

Is there any way to format the way the document looks
when the link is shown on the page?

I want to have:
Small Icon - Document Name (not the filename) - Document
Size
and each doc on seperate lines.

If not, then is there a way I can interrogate the
resource gallery, for documents attached to this posting?

Thanks.
Dave.
http://www.FOCUSPortals.com - Portal franchises available

-----Original Message-----
Hi Stefan,

I have compiled it, attached it but having problems. My
steps are below...

1. Open up a new instance of vis studio. Create a new
class file. Remove class1.cs, add an existing file, the
one you pointed me to.
2. Won't compile. Added various references until it did.
The refs are:
2.1 Microsoft.ContentManagement.Common
2.2 Microsoft.ContentManagement.Publishing
2.3
Microsoft.ContentManagement.Publishing.Extensions.Placeho
l
ders
2.4 Microsoft.ContentManagement.WebControls
2.5 System
2.6 System.Data
2.7 System.Web
2.8 System.XML

3. This now compiles. Find the new DLL and copy it into
the BIN folder of my CMS project.
4. Open the Content Management Server toolbox panel.
Right click, browse to the newly created DLL and add it.
5. Go into my template explorer, edit the template to
add
a new HTML placeholder control.
6. Add the multiattachment placeholder to the aspx page,
bind the placeholder to the newly created HTML
placeholder defined in step 5.
7. Compile and run.

When running, I am getting a parser error...

Parser Error Message: The base class includes the
field 'MultiAttachmentPlaceholderControl', but its type

(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol) is not compatible with the type of control

(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol).


on the line...

cc1:MultiAttachmentPlaceholderControl
id="MultiAttachmentPlaceholderControl" runat="server"
PlaceholderToBind="DocumentsPlaceholder"></cc1:MultiAttac
h
mentPlaceholderControl

Any help would be appreciated.

Thanks.
Dave.
http://www.FOCUSPortals.com - Franchise opportunities
available.


-----Original Message-----
Hi Dave,

it is actually a custom placeholder control.
To use it, create a new c# class library project, add
the CS file to the
project (remove the class1.cs) and compile it.
then add the resulting dll to your toolbox and you can
use it like the html
placeholder control.
The placeholder definition you need to create to bind
it
to needs to be a
HtmlPlaceholderDefinition.

Cheers,
Stefan.


"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:171e01c4fa4b$c77a78c0$a601280a@phx.gbl...
Stefan, you are a star. Is there no end to your
knowledge
on CMS?

This looks like it is possibly what I am looking for,
but
I don't know how to use it. (There is no help file).
I
am
assuming it is a web control, but as of yet, I have
done
nothing with web controls or custom controls.

Can you give me a brief idea of what to do with it?

Thanks.
Dave.
~~
http://www.FOCUSPortals.com - Franchises available.

-----Original Message-----
Hi Dave,

you could also use the
MultiAttachmentPlaceholderControl
or customize it to
your needs:

http://www.gotdotnet.com/Community/UserSamples/Details.a
s
px?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have
any
number of documents attached to it. These can be
Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not
suitable
either.

The page where the documents are will not be
visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the
normal
page.
2. Have a link to upload a document, which
launches
a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked
to
the
parent.

Does CMS support child postings to a parent
posting? If
not, then what would be the suggestion to manage
this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.


.



.

.
Back to top
Stefan [MSFT]
Guest





Posted: Mon Jan 17, 2005 6:14 pm    Post subject: Re: Child postings or multiple documents Reply with quote

Thanks for the hint!
:-)

Cheers,
Stefan.

<anonymous@discussions.microsoft.com> wrote in message
news:159901c4fc87$7c6d5120$a301280a@phx.gbl...
Quote:
Hi Stefan,

My fault.

I originally copied the file to my project and tried
compiling within it, therefore I had two instances of the
class, and it was getting confused.

Anyway, that appears to be working, BUT, there is a HTML
bug (2 bugs in fact) in your source.

After line 169, you need a </td></tr>, then on the
current line 170, remove the </td></tr></table> (Or just
remove the first </table> on line 170, which currently
shows... </table></td></tr></table> )

Best regards,
Dave.
http://www.FOCUSPortals.com - Franchise Opportunities
available



-----Original Message-----
Hi Stefan,

I have compiled it, attached it but having problems. My
steps are below...

1. Open up a new instance of vis studio. Create a new
class file. Remove class1.cs, add an existing file, the
one you pointed me to.
2. Won't compile. Added various references until it did.
The refs are:
2.1 Microsoft.ContentManagement.Common
2.2 Microsoft.ContentManagement.Publishing
2.3
Microsoft.ContentManagement.Publishing.Extensions.Placeho
l
ders
2.4 Microsoft.ContentManagement.WebControls
2.5 System
2.6 System.Data
2.7 System.Web
2.8 System.XML

3. This now compiles. Find the new DLL and copy it into
the BIN folder of my CMS project.
4. Open the Content Management Server toolbox panel.
Right click, browse to the newly created DLL and add it.
5. Go into my template explorer, edit the template to
add
a new HTML placeholder control.
6. Add the multiattachment placeholder to the aspx page,
bind the placeholder to the newly created HTML
placeholder defined in step 5.
7. Compile and run.

When running, I am getting a parser error...

Parser Error Message: The base class includes the
field 'MultiAttachmentPlaceholderControl', but its type

(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol) is not compatible with the type of control

(Stefan.PlaceholderControls.MultiAttachmentPlaceholderCont
rol).


on the line...

cc1:MultiAttachmentPlaceholderControl
id="MultiAttachmentPlaceholderControl" runat="server"
PlaceholderToBind="DocumentsPlaceholder"></cc1:MultiAttac
h
mentPlaceholderControl

Any help would be appreciated.

Thanks.
Dave.
http://www.FOCUSPortals.com - Franchise opportunities
available.


-----Original Message-----
Hi Dave,

it is actually a custom placeholder control.
To use it, create a new c# class library project, add
the CS file to the
project (remove the class1.cs) and compile it.
then add the resulting dll to your toolbox and you can
use it like the html
placeholder control.
The placeholder definition you need to create to bind
it
to needs to be a
HtmlPlaceholderDefinition.

Cheers,
Stefan.


"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:171e01c4fa4b$c77a78c0$a601280a@phx.gbl...
Stefan, you are a star. Is there no end to your
knowledge
on CMS?

This looks like it is possibly what I am looking for,
but
I don't know how to use it. (There is no help file).
I
am
assuming it is a web control, but as of yet, I have
done
nothing with web controls or custom controls.

Can you give me a brief idea of what to do with it?

Thanks.
Dave.
~~
http://www.FOCUSPortals.com - Franchises available.

-----Original Message-----
Hi Dave,

you could also use the
MultiAttachmentPlaceholderControl
or customize it to
your needs:

http://www.gotdotnet.com/Community/UserSamples/Details.a
s
px?SampleGuid=e596e8e5-baac-4448-b10c-736c8a6b672f

Cheers,
Stefan.

"Dave" <david@revilloc.remove.this.bit.com> wrote in
message
news:0cab01c4fa44$5e578290$a301280a@phx.gbl...
Hi all,

I need to have a dynamically adjustable amount of
documents that people can upload into the CMS.

Say I am creating a news page, each page can have
any
number of documents attached to it. These can be
Word,
XL, PDF etc.

I don't want to have "unlimited" amount of document
placeholders, and the HTMLPlaceHolder is not
suitable
either.

The page where the documents are will not be
visible. I
will be iterating through the collection to get the
document list.

The way I was thinking was:
1. Have my normal posting, where I create the
normal
page.
2. Have a link to upload a document, which
launches
a
child window, having a document placeholder.
3. Each of the child docs will be somehow linked
to
the
parent.

Does CMS support child postings to a parent
posting? If
not, then what would be the suggestion to manage
this?

Thanks for your assistance.

Best regards,
Dave Colliver.
~~
http://www.FOCUSPortals.com - Franchises available.


.



.

.
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB