Microsoft Content Management Server - Managed Links in MOSS

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > July 2007 > Managed Links in MOSS





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 Managed Links in MOSS
Karsten Grombach

2007-07-05, 1:18 pm

I want to extend the MOSS publishing feature with custom developed field
controls and webparts. I've noticed that the OOB publishing field controls
support some kind of managed link functionality, similar as in MCMS.
What must I do to create my own field controls and webparts which support
managed links? Is it just a question of inheriting from the right class? Or
do I need to implement some kind of event handler?
Regards
Karsten

Stefan Goßner [MSFT]

2007-07-05, 1:18 pm

Hi Karsten,

field controls are similar to placeholder controls - they do not do any link
management.
The link management is done by the fields these field controls bind to.

Cheers,
Stefan

"Karsten Grombach" <KarstenGrombach@discussions.microsoft.com> wrote in
message news:09879DA3-B850-4CA8-9596-CFBF5D4D213E@microsoft.com...
>I want to extend the MOSS publishing feature with custom developed field
> controls and webparts. I've noticed that the OOB publishing field controls
> support some kind of managed link functionality, similar as in MCMS.
> What must I do to create my own field controls and webparts which support
> managed links? Is it just a question of inheriting from the right class?
> Or
> do I need to implement some kind of event handler?
> Regards
> Karsten
>



Karsten Grombach

2007-07-06, 1:18 am

Bytes: 2442
X-Original-Bytes: 2399
Xref: number1.nntp.dca.giganews.com microsoft.public.cmserver.general:66968

Hi Stefan,
thanks for that very valuable pointer!
So if I'd want to create a WebPart which uses the link management feature,
it would have to store it's values in a field which is in or derived from the
Microsoft.SharePoint.Publishing.Fields namespace. Correct?

The same probably applies for the "View Changes" functionality?

Regards
Karsten

"Stefan Goßner [MSFT]" wrote:

> Hi Karsten,
>
> field controls are similar to placeholder controls - they do not do any link
> management.
> The link management is done by the fields these field controls bind to.
>
> Cheers,
> Stefan
>
> "Karsten Grombach" <KarstenGrombach@discussions.microsoft.com> wrote in
> message news:09879DA3-B850-4CA8-9596-CFBF5D4D213E@microsoft.com...
>
>
>

Stefan Goßner [MSFT]

2007-07-06, 7:16 am

Hi Karsten,

you would need to create a field control. Not a web part.

Cheers,
Stefan


"Karsten Grombach" <KarstenGrombach@discussions.microsoft.com> wrote in
message news:96CB5276-5BBA-46F9-BFD7-CECC45FB728A@microsoft.com...[vbcol=seagreen]
> Hi Stefan,
> thanks for that very valuable pointer!
> So if I'd want to create a WebPart which uses the link management feature,
> it would have to store it's values in a field which is in or derived from
> the
> Microsoft.SharePoint.Publishing.Fields namespace. Correct?
>
> The same probably applies for the "View Changes" functionality?
>
> Regards
> Karsten
>
> "Stefan Goßner [MSFT]" wrote:
>


Karsten Grombach

2007-07-07, 7:17 am

Hi Stefan,

What I've done unitl now:
- implemented a custom fieldType which inherits from BaseRichFieldType
- this field type binds to a custom field control which inherits from
BaseFieldControl
- the custom field control consists of a simple text box
- when i store html e.g. <div><a
href="/sitea/siteb/Pages/default.aspx">relativ</a></div>, links are
"managed". Fine
- when i store xml, nothing is saved.
<xml>
<product>
<div><a href="/sitea/siteb/Pages/default.aspx">Link to Site B</a></div>
</product>
</xml>

In the end, i want to store most of my page data in one field, similar as
the xml above, and then let multiple page controls render out the content
where needed.
So if a page is moved, links inside the xml need to be updated. Do you think
this is feasible at all?

Regards
Karsten
"Stefan Goßner [MSFT]" wrote:

> Hi Karsten,
>
> you would need to create a field control. Not a web part.
>
> Cheers,
> Stefan
>
>
> "Karsten Grombach" <KarstenGrombach@discussions.microsoft.com> wrote in
> message news:96CB5276-5BBA-46F9-BFD7-CECC45FB728A@microsoft.com...
>
>
>

dp@ithnet.com

2007-07-20, 7:17 am

We have a similar problem. We used XML placeholders in MCMS 2002
before and want to use now multiple lines of text to hold the xml data
(as there is no real XML placeholder anymore in MOSS2007). How is the
link handling done here? Links that were manged inside the old XML
Placeholder are no longer managed in MOSS2007. Do we need new prefixes
for the links, similar to the quotation marks in MCMS2002?

Best regards,
Dominik

Stefan Goßner [MSFT]

2007-07-20, 7:17 am

Hi Dominik,

please post this question on a MOSS related newsgroup.

Thanks,
Stefan


<dp@ithnet.com> wrote in message
news:1184929390.897439.107820@22g2000hsm.googlegroups.com...
> We have a similar problem. We used XML placeholders in MCMS 2002
> before and want to use now multiple lines of text to hold the xml data
> (as there is no real XML placeholder anymore in MOSS2007). How is the
> link handling done here? Links that were manged inside the old XML
> Placeholder are no longer managed in MOSS2007. Do we need new prefixes
> for the links, similar to the quotation marks in MCMS2002?
>
> Best regards,
> Dominik
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com