Code snippets?
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 > Code snippets?




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

    Code snippets?  
Ben Werdmuller


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


 
07-27-05 07:48 AM

Hi all,

I've got a basic template style that goes across every single page in
my system. Beyond that, I sometimes want users to be able to insert
certain elements within the body text of a page - one example I have is
a world map with built in HTML imagemap code. Another is a piece of
HTML for calling attention to quotes, with a photograph, a title and
text in another style, formatted using a table. One page might have
three of these quotes; another might have seven.

Is there a way I can have these snippets available to users without
having to create a new template for each different way they might be
used? (i.e., a template with three quotes, and a connected template
with seven, which seems like the long way round to do this?) Can the
resource manager, for example, store this kind of thing?

Ben






[ Post a follow-up to this message ]



    Re: Code snippets?  
Mei Ying [MVP]


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


 
07-27-05 07:48 AM

Hi Ben

You could store the items as postings or resources. But write the logic for
displaying them in a web user control. The web user control could have a
property that defines, say, the number of stories to list. You could extract
the content from the postings/resource gallery using the PAPI. Then use the
control in all pages that need it. In this way, you don't have to replicate
the content all over the place and it makes the code and content a lot
easier to maintain.

regards
Mei Ying

"Ben Werdmuller" <ben.werdmuller@sbs.ox.ac.uk> wrote in message
news:1122387099.207616.74680@g47g2000cwa.googlegroups.com...
> Hi all,
>
> I've got a basic template style that goes across every single page in
> my system. Beyond that, I sometimes want users to be able to insert
> certain elements within the body text of a page - one example I have is
> a world map with built in HTML imagemap code. Another is a piece of
> HTML for calling attention to quotes, with a photograph, a title and
> text in another style, formatted using a table. One page might have
> three of these quotes; another might have seven.
>
> Is there a way I can have these snippets available to users without
> having to create a new template for each different way they might be
> used? (i.e., a template with three quotes, and a connected template
> with seven, which seems like the long way round to do this?) Can the
> resource manager, for example, store this kind of thing?
>
> Ben
>







[ Post a follow-up to this message ]



    Re: Code snippets?  
Ben Werdmuller


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


 
07-27-05 07:48 AM

Definitely agreed if it was content - but if it's little visual
elements that then need to be individually filled in? I've developed a
makeshift wizard for this, that basically inserts the HTML code in, but
I feel like there should be a better solution.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:59 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