For SharePoint development, I am used to placing all the images/CSS/JS files into the mapped layouts folder (..\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS) using Visual Studio. Recently, I saw my colleague using the STYLES folder in the layouts to store the CSS files.  Are there any implications or differences in the way we are storing the files? Just curious on what could be the best practice to store these files.  In addition, the files are located under a folder that goes by the name of the Project (i.e. \Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\Project1.Branding). What if I need to reuse certain images/CSS/JS files for a different project, what will be the proper way of reusing these?  Edit: I do not understand why people are marking this as duplicate with the question comparing Document library with layouts. My question relies on layouts alone, the Style (found under layouts) folder is also a mapped folder in visual studio. Please enlighten me with this.
122513
There's been a lively conversation (such as it can be in 140 chars) lately about whether it is better to put CSS files on the disk in the _layouts folder or to store them in a Document Library in the Site Collection.  This seemed like a good place to post the topic to allow some longer discussion about it.  As for me, I always prefer to avoid putting anything on the disk if I can avoid it.  I prefer a Document Library for the CSS. There are many reasons for this, but here are some: versioning, fine-grained permissions, approval processes, they are a part of a Site Collection backup, touching the server can lead to problems, etc.  I also don't believe that files on the disk will be served up any faster than files in SQL if SQL is managed correctly.  What's your opinion? Weigh in!
35033
As per Yahoo's much-ballyhooed , we serve up static content from a CDN using far-future cache expiration headers. Of course, we need to occasionally update these "static" files, so we currently add an infix version as part of the filename (based on the SHA1 sum of the file contents). Thus:  styles.min.css   Becomes:  styles.min.abcd1234.css   However, managing the versioned files can become tedious, and I was wondering if a GET argument notation might be cleaner and better:  styles.min.css?v=abcd1234   Which do you use, and why? Are there browser- or proxy/cache-related considerations that I should consider?
49351
Following the  and , I've built the following project structure:  ./mydocument.tex ./mystyle.sty ./tex/mysubfile.tex ./img/   mydocument.tex looks like:  \documentclass{report} \usepackage{mystyle} \begin{document} \subfile{./tex/mysubfile.tex}  \end{document}   mystyle.sty looks like:  \ProvidesPackage{mystyle} \usepackage{subfiles} % other packages % command declarations   mysubfile.tex looks like:   \documentclass[../mydocument.tex]{subfiles} \begin{document} % stuff goes here. \end{document}   I'm using (1) the subfiles package because I'd like to compile mysubfile.tex by itself and (2) mystyle.sty because I'd like to modularize this project a bit and split package and command declarations into their own .sty file. The problem is that when I try and compile mysubfile.tex by itself it can't "see" mystyle.sty.   Q: Is there some way I can still satisfy (1), (2), and the project structure outlined above and get things working? Some sort of option or command in the subfiles package?  I've tried: (1) moving mystyle.sty to different directories, (2) moving the subfiles declaration \usepackage{subfiles} to different parts of the document, (3) checking the subfiles documentation. All no dice.   I suppose that the second best option would be to stick all project files in the same folder and get rid of my .\tex folder. At least then, I can get things to compile. But I'd rather not sacrifice the project structure.
51185
When we create a new app in Visual Studio, we are given the option to select an hosting model:    What are the differences between the various models?
58174
In Visual Studio website projects (in Visual Studio 2005 or later, not web application projects where there is still a .csproj file) how is the reference information stored, and is it possible to source control it without storing compiled binaries in source control?  If you right-click on a website project and select Property Pages, the first screen (References) lists all the project references.  System.* references are listed as type GAC, and other DLL files can be listed as BIN or Project.  The problem occurs when you include something as a project reference, and then commit it to source control (for us, Subversion, ignoring .dll and .pdb files.)  Another developer gets updated code from the repository and has to manually set up all of these project references, but I can't even determine where this information is stored, unless it's in that .suo, which is NOT source-control friendly.
9807
I keep hearing that div tags should be used for layout purposes and not table tags. So does that also apply to form layout? I know a form layout is still a layout, but it seems like creating form layouts with divs requires more html and css. So with that in mind, should forms layouts use div tags instead?
84450
I am making a site with a lots of JS, and I am wondering where I should put the JS code. Optimally I would like to keep the JS with each module and not the theme layer. Some content could be exposed as blocks etc.   But I am having some issues with the cache. In my example I need to add JS &amp; CSS to the node edit form. I have used hook_block_view, but it is cached. So if there is an error in the node edit form, the drupal_add_js &amp; drupal_add_css functions are not called. The same seems to be true for hook_node_prepare.  Where would you input the JS &amp; CSS layer? and are there hooks that get's called even if there is an error in the node edit form?
44978
how to place JS-code to NewForm.aspx of a list in SharePoint 2013 APP.  In sharepoint 2010 we can use this list definition to add JS:  &lt;List ...&gt;   &lt;MetaData&gt;     ...     &lt;Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" UseDefaultListFormWebPart="False"&gt;         &lt;WebParts&gt;           &lt;AllUsersWebPart WebPartZoneID="Main" WebPartOrder="1"&gt;             &lt;![CDATA[              &lt;WebPart xmlns="http://schemas.microsoft.com/WebPart/v2"                 xmlns:sfwp="http://schemas.microsoft.com/WebPart/v2/SimpleForm"&gt;               &lt;Assembly&gt;Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;/Assembly&gt;                                        &lt;TypeName&gt;Microsoft.SharePoint.WebPartPages.SimpleFormWebPart&lt;/TypeName&gt;               &lt;FrameType&gt;None&lt;/FrameType&gt;               &lt;Title&gt;JS1&lt;/Title&gt;               &lt;sfwp:Content&gt;ANY HTML YOU NEED HERE               &lt;/sfwp:Content&gt;             &lt;/WebPart&gt;             ]]&gt;           &lt;/AllUsersWebPart&gt;           &lt;AllUsersWebPart WebPartZoneID="Main" WebPartOrder="2"&gt;             &lt;![CDATA[             &lt;WebPart xmlns="http://schemas.microsoft.com/WebPart/v2"&gt;               &lt;Assembly&gt;Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&lt;/Assembly&gt;                                        &lt;TypeName&gt;Microsoft.SharePoint.WebPartPages.ListFormWebPart&lt;/TypeName&gt;               &lt;PageType&gt;PAGE_NEWFORM&lt;/PageType&gt;             &lt;/WebPart&gt;             ]]&gt;           &lt;/AllUsersWebPart&gt;         &lt;/WebParts&gt;       &lt;/Form&gt;     &lt;/Forms&gt;   &lt;/MetaData&gt; &lt;/List&gt;   How to do the same for Sharepoint 2013?
91265
As a developer I work with a lot of source code files etc. and I need to copy these around, rename, etc. I'm sure any developer knows the drill.  Windows Explorer is really "helpful" in suggesting different Views for different folders. Apparently one source code folder is an image folder, another apparently needs large icons etc. This appears to be getting worse with every new Windows release. It used to be possible to set a View on a root folder and Windows would pretty much respect that, but Vista keeps guessing (wrong) no matter what I do.  I like many of the other improvements that MS made to Windows Explorer over the years, but this persistent attempt and failure to guess how I want my files listed make it counterproductive and really spoils it all.  So I gave up on Windows Explorer and now use Salamander instead. But the problem comes up again every time I use someone else's computer, and whenever a program uses the standard file open/save dialogs.  Please - does anyone know of a way to tell Windows Explorer to always use Detail View - and keep doing it?  Thanks in advance
21954
Back in the days when I was in the university I had a "Organization and tidiness" problem – I was unorganized and kept my layers in different folders without distinct names and hence had multiple copies of each layer.   Ever since I  started working, I've improved a lot – I keep special folders with special subfolders. I name my layers according to  a system which lets me be a bit more neat, but as I still have to manage multiple copies of layers (As Autocad and ArcGIS have their differences when dealing with non-Latin languages, I have to keep a copy adjusted for each program), I'd like to hear from your experiences and maybe learn a few tips from you:   How do you organize your layers? How do name them? By name, date, contents, customer?   How do you organize or deal with multiple copies (more acute: how do you update several copies at once)?   Note: I'm talking from the analyst/DBA POV and not from a web-developer's/web-manager's POV (I'm talking about organizing the layers for myself and maybe two more GIS workers, not more).
48227
I am building a Sharepoint 2013 App in Javascript / HTML / CSS and I want to implement / inherit the color / class / css used by the theme.  How do I do this?  I want to ensure consistency through usage of the same colors.  Thanks in advance!
74264
I have a folder scheme like (highly simplified version):  New Files  &gt;Tools  &gt;Scripts Tested Files  &gt;Tools  &gt;Scripts   ... and I'd like to have a shortcut in each folder from the "New Files" child folders, to the "Tested Files" child folder. But this folder may be moved around from time to time, which would break said shortcuts.  Is there a way to make a relative shortcut to each folder? I remember doing this in HTML where you could set a path, something along the lines of .../Files to go back to a parent and then into a new folder, but I'm unsure if this is something support under Windows shortcuts?  PS: The case of similarly relative shortcuts, when the target is a file, is dealt with in . In the present case the target is a Folder.
107177
Is there a way to use different folders views each folder ? Some folders i like to see as icons and others is better to see as list.
78392
Which would be the correct format for this XML data, are they equivalent or are there trade offs between the two?  1.  &lt;sitemap&gt;   &lt;category name="Animals"&gt;     &lt;section title="Dogs"&gt;       &lt;page url="/pics/greatdane.jpg" title="Great Dane"/&gt;     &lt;/section&gt;   &lt;/category&gt; &lt;/sitemap&gt;   2.  &lt;sitemap&gt;   &lt;page&gt;     &lt;category&gt;Animals&lt;/category&gt;     &lt;section&gt;Dogs&lt;/section&gt;     &lt;title&gt;Great Dane&lt;/title&gt;     &lt;url&gt;/pics/greatdane.jpg&lt;/url&gt;       &lt;/page&gt; &lt;/sitemap&gt;   I've implemented the first example with my style sheet and it seems to work fine, but I'm unsure what the correct form should be.
20549
Probably a basic issue, but still something that irks me and I can't find an answer online. I want to change the default folder for saving new shapes/processing outputs from &quot;last used folder&quot; to &quot;project folder&quot; or &quot;something in relation to project folder&quot; - is this possible? If so, how can I achieve this?
96110
I'm using Windows/TeXworks/MiKTeX, and I would like to have one style file I can use anywhere in any document in my top-level folder. If I want to add a new command or renew an old one, I'd like that to be available in all documents recursively contained in my top-level folder. I have a very hierarchical structure to my top-level folder. So this would seem to point to having a single file that TeXworks knows about. Could I add a path in Preferences -> Typesetting -> Paths for TeX and related programs? I've tried that, possibly superficially, without any success. Adding the correct folder to the Windows PATH variable doesn't seem to do the trick, either.   On the other hand, suppose I want to send someone a TeX file? It would be nice in such circumstances to be able to have the style file in the same folder as the TeX file. If I do that, how could I ensure that it's always up-to-date? Is there a script available somewhere that could take my master style file and push it down to all pre-existing lower-level locations?   Just to reiterate: I want uniformity of my style files in my very hierarchical folder structure. However, I would also like modularity, in that each folder is self-contained. How can I achieve that?  Also, out of curiosity, since I may acquire a Linux computer soon, how would I do this in, say, *ubuntu with TeXlive?
25000
I've already added my scripts, but I wanted to know the preferred way. I just put a &lt;script&gt; tag directly in the header.php of my template.  Is there a preferred method of inserting external or custom js files? How would I bind a js file to a single page? (I have the home page in mind)