OVH Cloud OVH Cloud

Récupération d'informations d'une webpart

4 réponses
Avatar
tibobao
Bonjour,

j'aimerai récupérer le titre d'une webpart a l'aide d'une feuille de style
XSLT (titre que l'on lui donne).
Pour l'id j'y arrive bien avec : $$webpart:ID$$

mais quelle est la commande pour le titre d'une webpart ?

Merci d'avance

4 réponses

Avatar
EROL MVP SPS
Bonsoir,


Vous avez vu :
http://www.waka.dk/Blog/PermaLink,guid,8578905c-a9ec-44a7-b770-7a168ce5fc9b.aspx
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/CreateABasicWP_SV01003709.asp
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/spsintrowritingwebparts_SV01162341.asp
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_sp2003_ta/html/sharepoint_webparttemplates.asp

-
http://www.sharepointcustomization.com/resources/webpartspacs.htm

Lire aussi:
http://www.sharepointblogs.com/mkruger/archive/2005/02/15/1310.aspx
--
EROL MVP SharePoint. www.mysps.info
http://aspnet2.com/mvp.ashx?ErolGiraudy
"tibobao" a écrit dans le message de
news:
Bonjour,

j'aimerai récupérer le titre d'une webpart a l'aide d'une feuille de style
XSLT (titre que l'on lui donne).
Pour l'id j'y arrive bien avec : $$webpart:ID$$

mais quelle est la commande pour le titre d'une webpart ?

Merci d'avance


Avatar
tibobao
Bonjour,

merci pour la liste de liens que m'avez fournie mais elle ne répond en aucun
cas a ma question.

j'aimerai afficher le titre d'une webpart a l'aide d'une feuille de style
XSLT avec le code $$webpart:truc$$
mais je ne connais le mot clé definissant le titre de la webpart, pour l'id
c "ID" mais le titre je trouve pas

Cdt.

"EROL MVP SPS" a écrit :

Bonsoir,


Vous avez vu :
http://www.waka.dk/Blog/PermaLink,guid,8578905c-a9ec-44a7-b770-7a168ce5fc9b.aspx
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/CreateABasicWP_SV01003709.asp
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/spsintrowritingwebparts_SV01162341.asp
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_sp2003_ta/html/sharepoint_webparttemplates.asp

-
http://www.sharepointcustomization.com/resources/webpartspacs.htm

Lire aussi:
http://www.sharepointblogs.com/mkruger/archive/2005/02/15/1310.aspx
--
EROL MVP SharePoint. www.mysps.info
http://aspnet2.com/mvp.ashx?ErolGiraudy
"tibobao" a écrit dans le message de
news:
> Bonjour,
>
> j'aimerai récupérer le titre d'une webpart a l'aide d'une feuille de style
> XSLT (titre que l'on lui donne).
> Pour l'id j'y arrive bien avec : $$webpart:ID$$
>
> mais quelle est la commande pour le titre d'une webpart ?
>
> Merci d'avance





Avatar
EROL MVP SPS
Bonjour,

Je vous propose du SDK:

Xsl Property

The Xsl property of the DataViewWebPart class gets or sets the embedded
Extensible Stylesheet Language Transformation (XSLT) that is used to
transform the Web Part content if an XslLink is not supplied.


[Visual Basic .NET]Public Property Xsl As String [C#]public string Xsl {get;
set;}Property Value
A System.Xml.XmlNode that contains the XSLT that is used to transform
content for this Web Part.

Remarks

The Xsl property is read/write. The value of this property is stored in the
database. Embedded XSL can transform XML content specified through either
the Content or ContentLink properties if you specify ContentType as XML. You
cannot specify encoding in embedded XSL, because the Web Part Page passes
the XSL through a string. The encoding value is not processed. This property
and XslLink are similar to the embedded Content and ContentLink properties.
Web Part Pages first check whether XslLink has a value. If it does, the Web
Part Page uses the results of that link and ignores the Xsl property. If
XslLink is not defined or is inaccessible, the Web Part Page uses the
contents of the Xsl property. If neither property is defined, or if XslLInk
fails and this property has no value, the content is rendered without any
transformation.

----------------------------------------------------------------------

XslLink Property

The XslLink property of the DataViewWebPart class gets or sets the URL for
the XSLT that is used to transform the content for this Web Part.


[Visual Basic .NET]Public Property XslLink As String [C#]public string
XslLink {get; set;}Property Value
String that contains the URL that points to the XSLT that renders content
for this Web Part.

Remarks

The XslLink property is read/write. The URL in this property can point to
any Web address; however it must be prefixed with the protocols "http://" or
"https://" to work properly. For example, "http://www.domain.com" or
"https://www.domain.com." There is no maximum length for this property.
There is no default value. If the XSLT cannot be retrieved from the
specified URL, the contents of the Xsl property will be used instead.

---------------------------------------------

Cdlt
--
EROL MVP SharePoint. www.mysps.info et www.clubsps.org
http://aspnet2.com/mvp.ashx?ErolGiraudy

"tibobao" a écrit dans le message de
news:
Bonjour,

merci pour la liste de liens que m'avez fournie mais elle ne répond en
aucun
cas a ma question.

j'aimerai afficher le titre d'une webpart a l'aide d'une feuille de style
XSLT avec le code $$webpart:truc$$
mais je ne connais le mot clé definissant le titre de la webpart, pour
l'id
c "ID" mais le titre je trouve pas

Cdt.

"EROL MVP SPS" a écrit :

Bonsoir,


Vous avez vu :
http://www.waka.dk/Blog/PermaLink,guid,8578905c-a9ec-44a7-b770-7a168ce5fc9b.aspx
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/CreateABasicWP_SV01003709.asp
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/spsintrowritingwebparts_SV01162341.asp
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_sp2003_ta/html/sharepoint_webparttemplates.asp

-
http://www.sharepointcustomization.com/resources/webpartspacs.htm

Lire aussi:
http://www.sharepointblogs.com/mkruger/archive/2005/02/15/1310.aspx
--
EROL MVP SharePoint. www.mysps.info
http://aspnet2.com/mvp.ashx?ErolGiraudy
"tibobao" a écrit dans le message de
news:
> Bonjour,
>
> j'aimerai récupérer le titre d'une webpart a l'aide d'une feuille de
> style
> XSLT (titre que l'on lui donne).
> Pour l'id j'y arrive bien avec : $$webpart:ID$$
>
> mais quelle est la commande pour le titre d'une webpart ?
>
> Merci d'avance







Avatar
tibobao
Merci pour votre reponse,
mais je n'ai pas trouvé la réponse à ma question.
J'arrive à mettre en forme ma liste grace à mon fichier XSLT.
Seulement, j'aimerais récupérer le titre qu'on remplit dans le panneau
propriete de la webPart, menu "Appearance" à l'interieur du code XSLT.
$$Webpart:ID$$ me permet de récuperer l'id de ma WebPart. Y a t'il un moyen
de recuperer le titre ou les autres propriétés de ma WebPart, sachant que je
ne peux toucher au coté C# de la WebPart.

"EROL MVP SPS" a écrit :

Bonjour,

Je vous propose du SDK:

Xsl Property

The Xsl property of the DataViewWebPart class gets or sets the embedded
Extensible Stylesheet Language Transformation (XSLT) that is used to
transform the Web Part content if an XslLink is not supplied.


[Visual Basic .NET]Public Property Xsl As String [C#]public string Xsl {get;
set;}Property Value
A System.Xml.XmlNode that contains the XSLT that is used to transform
content for this Web Part.

Remarks

The Xsl property is read/write. The value of this property is stored in the
database. Embedded XSL can transform XML content specified through either
the Content or ContentLink properties if you specify ContentType as XML. You
cannot specify encoding in embedded XSL, because the Web Part Page passes
the XSL through a string. The encoding value is not processed. This property
and XslLink are similar to the embedded Content and ContentLink properties.
Web Part Pages first check whether XslLink has a value. If it does, the Web
Part Page uses the results of that link and ignores the Xsl property. If
XslLink is not defined or is inaccessible, the Web Part Page uses the
contents of the Xsl property. If neither property is defined, or if XslLInk
fails and this property has no value, the content is rendered without any
transformation.

----------------------------------------------------------------------

XslLink Property

The XslLink property of the DataViewWebPart class gets or sets the URL for
the XSLT that is used to transform the content for this Web Part.


[Visual Basic .NET]Public Property XslLink As String [C#]public string
XslLink {get; set;}Property Value
String that contains the URL that points to the XSLT that renders content
for this Web Part.

Remarks

The XslLink property is read/write. The URL in this property can point to
any Web address; however it must be prefixed with the protocols "http://" or
"https://" to work properly. For example, "http://www.domain.com" or
"https://www.domain.com." There is no maximum length for this property.
There is no default value. If the XSLT cannot be retrieved from the
specified URL, the contents of the Xsl property will be used instead.

---------------------------------------------

Cdlt
--
EROL MVP SharePoint. www.mysps.info et www.clubsps.org
http://aspnet2.com/mvp.ashx?ErolGiraudy

"tibobao" a écrit dans le message de
news:
> Bonjour,
>
> merci pour la liste de liens que m'avez fournie mais elle ne répond en
> aucun
> cas a ma question.
>
> j'aimerai afficher le titre d'une webpart a l'aide d'une feuille de style
> XSLT avec le code $$webpart:truc$$
> mais je ne connais le mot clé definissant le titre de la webpart, pour
> l'id
> c "ID" mais le titre je trouve pas
>
> Cdt.
>
> "EROL MVP SPS" a écrit :
>
>> Bonsoir,
>>
>>
>> Vous avez vu :
>> http://www.waka.dk/Blog/PermaLink,guid,8578905c-a9ec-44a7-b770-7a168ce5fc9b.aspx
>> -
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/CreateABasicWP_SV01003709.asp
>> -
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/spsintrowritingwebparts_SV01162341.asp
>> -
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_sp2003_ta/html/sharepoint_webparttemplates.asp
>>
>> -
>> http://www.sharepointcustomization.com/resources/webpartspacs.htm
>>
>> Lire aussi:
>> http://www.sharepointblogs.com/mkruger/archive/2005/02/15/1310.aspx
>> --
>> EROL MVP SharePoint. www.mysps.info
>> http://aspnet2.com/mvp.ashx?ErolGiraudy
>> "tibobao" a écrit dans le message de
>> news:
>> > Bonjour,
>> >
>> > j'aimerai récupérer le titre d'une webpart a l'aide d'une feuille de
>> > style
>> > XSLT (titre que l'on lui donne).
>> > Pour l'id j'y arrive bien avec : $$webpart:ID$$
>> >
>> > mais quelle est la commande pour le titre d'une webpart ?
>> >
>> > Merci d'avance
>>
>>
>>