Microsoft Content Management Server - Hide Empty Placeholders and Surrounding HTML?

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2006 > Hide Empty Placeholders and Surrounding HTML?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Hide Empty Placeholders and Surrounding HTML?
Ninerfan

2006-06-22, 1:22 pm

I am displaying rows using <div> tags and each row has two columns using CSS
boxes each using <div> tags. Inside one box is an HTML place holder to just
hold text, and inside the other CSS box is a single image placeholder
control.

I want to enforce a minimum of one but maximum of five rows, and the most
important thing is I only want to display each row (div/css/cms controls
combo) if the place holders for that row have been populated. If there is
nothing in those place holders I don't want to show the empty row?

This has been very basic OOTB functionality for other CMS systems for years
for example having a replicate attribute with min max values attached to the
place holder definition so those values could be set with a click of the
mouse, what is the expected approach with MS CMS?

I'm guessing that the only way to do this is to control the display of the
entire page from inside the code behind. I hope I'm wrong.

Thanks in advance for any advice.

Stefan [MSFT]

2006-06-23, 7:24 am

Hi Ninerfan,

this is not a MCMS related question but an ASP.NET question as the logic
needs to be implemented using ASP.NET methods.
Please post this question to an ASP.NET related newsgroup.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"Ninerfan" <Ninerfan@discussions.microsoft.com> wrote in message
news:5650BFF4-0E70-4561-9399-B6E6DDA48C6C@microsoft.com...
>I am displaying rows using <div> tags and each row has two columns using
>CSS
> boxes each using <div> tags. Inside one box is an HTML place holder to
> just
> hold text, and inside the other CSS box is a single image placeholder
> control.
>
> I want to enforce a minimum of one but maximum of five rows, and the most
> important thing is I only want to display each row (div/css/cms controls
> combo) if the place holders for that row have been populated. If there is
> nothing in those place holders I don't want to show the empty row?
>
> This has been very basic OOTB functionality for other CMS systems for
> years
> for example having a replicate attribute with min max values attached to
> the
> place holder definition so those values could be set with a click of the
> mouse, what is the expected approach with MS CMS?
>
> I'm guessing that the only way to do this is to control the display of the
> entire page from inside the code behind. I hope I'm wrong.
>
> Thanks in advance for any advice.
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com