Customization of SharePoint list menu item – Part 1 add Custom Action Item

Customization of SharePoint list menu item – Part 1 add Custom Action Item

Posted by chrissyz on June 6, 2009

It has been a while since last time I blogged. And I do feel bad about being ignorant of my blog for such a long time. So this time I am gonna show some code to feed those hungry souls. Today I would like to talk about adding a list menu item through feature. This example is to add a menu item in a calendar list.

We all know a feature includes two files, feature.xml and elements.xml

In our feature.xml, nothing special, it will look like any other normal
feature.xml

<?xml version=“1.0“encoding=“utf-8“?>

<Feature  Id=“GUID”
          Title=”Calender list Menu“
          Description=“Creates Custom Action in Calender list item menu”
          Version=“12.0.0.0″
          Hidden=“TRUE”
          Scope=“Site“                                                                
          xmlns=“http://schemas.microsoft.com/sharepoint/“>
<ElementManifests>

<ElementManifest Location=“elements.xml“/>

</ElementManifests>

</Feature>

Then comes the elements.xml

<?xml version=“1.0“encoding=“utf-8“?>

<Elements xmlns=“http://schemas.microsoft.com/sharepoint/“>

<CustomAction  
    Id=“F699684E-3127-428e-BF2B-EA71CA6E36C8“   
    RegistrationType=“List“   
    RegistrationId=“106“  
    Location=“EditControlBlock“  
    Sequence=“1000“  
    Title=“Calendar Custom Action“>
    <UrlAction
Url=“~site/YourPageLibrary/YourCustomPage.aspx?ID={ItemId}&amp;List={ListId}“/>
  </CustomAction>

</Elements>

RegistrationType can be “ContentType”, “FileType” (for example if you only want your feature appear to .xsn file), list and Prog ID.

The RegistrationID element is used to specifiy the ID of RegistrationType. If RegistrationType is “ContentType”, to get Registration ID, open the document library settings, in the ContentType section click on the content type you
choose, then grab the hex string in the url after “ctype=” parameter.

If you use FileType as RegistrationType, then just add the “.doc” or “.xls” etc in the RegistrationID

If the RegistrationType is list or ProgID, John Holiday has a blog summarized all the RegistrationID, look it up!

转载于:https://www.cnblogs.com/icedog/archive/2010/07/06/1772531.html

### LaTeX `\item` Command Usage In the `itemize` and `enumerate` environments, the `\item` command is used to introduce each item within a list. The following demonstrates how this works: #### Using `\item` in an Itemized List (`itemize`) An unordered (bullet-pointed) list can be created using the `itemize` environment. ```latex \documentclass{article} \begin{document} \begin{itemize} \setlength{\itemsep}{15pt} % Adjusts spacing between items[^1] \item First bullet point. \item Second bullet point with more text that might wrap onto multiple lines depending on its length. \item Third bullet point. \end{itemize} \end{document} ``` This code snippet creates three bulleted points where the space between them has been adjusted by setting `\itemsep`. #### Using `\item` in Enumerated Lists (`enumerate`) For ordered lists—where items are numbered—the `enumerate` environment should be utilized instead of `itemize`. Here’s an example demonstrating enumeration: ```latex \documentclass{article} \usepackage{enumitem} % Allows customization of labels and formatting \begin{document} \begin{enumerate}[label=\alph*.],% Customizes numbering style; here alphabetic letters followed by periods \item An enumerated item labeled as 'a.' \item Another one marked 'b.' automatically without manual intervention. \item Yet another entry continuing sequentially from previous ones. \end{enumerate} \end{document} ``` The package `enumitem` provides additional flexibility when customizing both appearance and behavior beyond basic functionality offered directly through standard classes alone.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值