|
Home > Archive > Microsoft Content Management Server > July 2005 > Code snippets?
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]
|
|
| Ben Werdmuller 2005-07-27, 2: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
| |
| Mei Ying [MVP] 2005-07-27, 2: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
>
| |
| Ben Werdmuller 2005-07-27, 2: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.
|
|
|
|
|