Page: 599
Focus of text: The different attributes of the Module element
Quote:
"List This is the actual ID number of the list where the file will be stored; for
example, 116 indicates the Master Page and Page Layout Gallery."
The Huh?!
This guy is confused, I have tried using the List attribute and it does not seem to cause anything to be stored there. Moreover, the way I understand it is that this is the ID of the TYPE of List Template and not the ID of an actual List. I think this is only meaningful if we are creating a list as a feature.
Focus of text: The different attributes of the Module element
Quote:
"List This is the actual ID number of the list where the file will be stored; for
example, 116 indicates the Master Page and Page Layout Gallery."
The Huh?!
This guy is confused, I have tried using the List attribute and it does not seem to cause anything to be stored there. Moreover, the way I understand it is that this is the ID of the TYPE of List Template and not the ID of an actual List. I think this is only meaningful if we are creating a list as a feature.
3 comments:
No - incorrect. the List ID is the TYPE OF LIST by the standard lists defined my Microsoft. 116 used in a feature, will install master pages in the Master Pages and Page Layouts list (defined as 116).
FYI - You should investigate and verify before commenting the wrong view as fact.
Thanks for the reply. Here is what I did to come to my _possibly incorrect_ conclusion so please bear with me:
I used your example "MyFirstFeature" and modified the ElementManifest.xml file to look like the following:
<code>
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="SamplePageProv" Path="" Url="thirdFeature" List="116" >
<File Url="SimplePage.htm" Type="Ghostable"></File>
</Module>
</Elements>
which lead to the "SimplePage.htm" file being saved in a "sub-directory" called "thirdFeature" _expected_ but the page was not added to the "Master Page Gallery". I intentionally did not use the Url that points to the "Master Page Gallery" "catalogs/masterpage", and I did that to observe the effect of the List attribute on its own. You said it would install "master pages", so is it exclusive to just master pages _that being the reason why it did not work for a simple htm page or is there something I am missing?
Post a Comment