Channel Rendering Scripts
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Channel Rendering Scripts




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Channel Rendering Scripts  
Graham


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-18-06 10:52 PM

Hi
I am in the process of creating an intranet portal type site using Content
Management Server 2002 Sp1a.

At this time I have a channel under "/Channels/" called "StaffIntranet".

I have no problems accessing this channel via http://localhost/StaffIntranet
(i have set it up in IIS too).

Through development I came across the problem of not being able to add a new
posting to a channel that doesnt have any existing postings (new channels).

I decided to create a custom channel rendering script for the
"StaffIntranet" channel and sub-channels to use when site editors want to
add new postings to a new channel (one that doesnt have any existing
postings). It is just a bare bones page at the moment with a web author
control placed on it (how the Help documentation tells you to create one).

The problem I am encountering is that when a user accesses a channel without
an explicit page name the script shows up.
e.g. http://localhost/StaffIntranet will show the channel rendering script
(there are postings in this channel)
but http://localhost/StaffIntranet/default.htm will show the default.htm
page and content.

From what I understood in the help documentation the channel rendering
script would only show up when there isnt any pages in the channel.
There is a setting in the Publishing tab of the channels properties under
the Channel Rendering section called "Default Page".
I have tried setting it to be blank (or first page) or an excplicit posting
name (that exists), neither option changes the results.

Is this behaviour by design?
Do I have to add some custom code to my channel rendering script that
detects if there are any postings in the current channel then redirect to
the first one if there is?
Have I done something really funky and stupid?

Any help is appreciated
Graham








[ Post a follow-up to this message ]



    Re: Channel Rendering Scripts  
Jonathan Vardy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-18-06 10:52 PM

Hi Graham,

My understanding is that you have to manually code the requested behavior,
otherwise it just shows the channel rendering script. The setting that you
describe, "Default Page", is accessible through the Channel object as
Channel.DefaultPostingName:

http://msdn.microsoft.com/library/d...nel_Members.asp

You could use the Channel.DefaultPostingName value and the Postings
collection to code the behavior.

Cheers, Jonathan

"Graham" <enlighten@newsgroups.nospam> wrote in message
news:utAocYHHGHA.2040@TK2MSFTNGP14.phx.gbl...
> Hi
> I am in the process of creating an intranet portal type site using Content
> Management Server 2002 Sp1a.
>
> At this time I have a channel under "/Channels/" called "StaffIntranet".
>
> I have no problems accessing this channel via
> http://localhost/StaffIntranet (i have set it up in IIS too).
>
> Through development I came across the problem of not being able to add a
> new posting to a channel that doesnt have any existing postings (new
> channels).
>
> I decided to create a custom channel rendering script for the
> "StaffIntranet" channel and sub-channels to use when site editors want to
> add new postings to a new channel (one that doesnt have any existing
> postings). It is just a bare bones page at the moment with a web author
> control placed on it (how the Help documentation tells you to create one).
>
> The problem I am encountering is that when a user accesses a channel
> without an explicit page name the script shows up.
> e.g. http://localhost/StaffIntranet will show the channel rendering script
> (there are postings in this channel)
> but http://localhost/StaffIntranet/default.htm will show the default.htm
> page and content.
>
> From what I understood in the help documentation the channel rendering
> script would only show up when there isnt any pages in the channel.
> There is a setting in the Publishing tab of the channels properties under
> the Channel Rendering section called "Default Page".
> I have tried setting it to be blank (or first page) or an excplicit
> posting name (that exists), neither option changes the results.
>
> Is this behaviour by design?
> Do I have to add some custom code to my channel rendering script that
> detects if there are any postings in the current channel then redirect to
> the first one if there is?
> Have I done something really funky and stupid?
>
> Any help is appreciated
> Graham
>
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:58 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register