Hot answers tagged html
4
What you are looking for is called "Reusable content". The following links will help you on your journey to wisdom:
Use reusable content
SharePoint Reusable Content
SharePoint 2010 Reusable Content
Bear in mind that Reusable Content is only meant for HTML content or other content and can only be used on certain pages - just give it a go and see whether ...
4
Both the description and the solution of your issue can be found here : Unable to Open PDF Directly from SharePoint 2010.
Basically, it's a security feature (that can be disable, if you accept the implication), that prevent some files to be displayed in the browser directly. Typically, what would prevent someone to put some javascript in the html file and ...
4
I haven't tested this, but I would think you can add it with a javascript maybe. You already have the _spPageContextInfo on your sites.
<script type="text/javascript">
document.write('<a href=\"'+_spPageContextInfo.webServerRelativeUrl+'/page.aspx\">link</a>');
</script>
That's just an example, probably not the best way to add js ...
2
Hi you can also use webservice for getting listitem.
try this in your content editor webpart
<div class="testing"></div>
create one div for append links
insert script after that
<script type="text/javascript">
function processResult(xData, status) {
$('.testing').empty();
...
2
Here is a blog post that talks about how to add JavaScript to the CEWP.
But I like to use the HTML Form Web Part for this myself.
Now it comes down to how to get the link. Without knowing the criteria you wish to use to pick the row from the list it is hard to give you a very good example. But here is something to get you started.
Notice I like to use ...
2
Accord to this blog entry on msdn blogs, the nested div will not be excluded in SharePoint Search, but also states that it might change.
So my rule is:
- if you don't want it searched then give it the noindex class.
- if you want it searched then place it outside the noindex div.
2
You should be able to provision html at the root of the site by a FEATURE that uses Module element.
From VS.NET add project item of type Module, replace sample.txt with your html file and make sure the elements.xml looks like below assuming you have sample.htm file abd your module name is RootModule. The name of module and html file can be different in ...
2
If the file isn't expecting to be in a document library, you can use SharePoint Designer to upload the file to the root of the web site, and also set this page to be the HomePage for the site within SharePoint Designer.
SharePoint Designer is a free product available from Microsoft, here: http://www.microsoft.com/download/en/details.aspx?id=16573
2
This is more of an Excel issue than SharePoint. However, when you create links in Excel, there is no way to specify the target of a URL. (For instance, you would need _blank to create a new window). When you export from Excel, the target is set to _parent. Only way to achieve this would be to edit the HTML files themselves to replace _parent with _blank ...
2
Move the CEWP below the list.
Alternatively, don't run the javascript until the page has loaded. A common method of doing this is via jquery: http://api.jquery.com/ready/
<html><head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/JavaScript">
$(function() {
// ...
2
For full story see SharePoint 2010 and Pdf Integration Series – Part 1
The short story either set Browser File Handling to Permissive
Go to SharePoint 2010 Central Administration > Application Management > Manage Web Applications
Select the row of your web application
Click General Settings in the ribbon
Scroll down to Browser File Handling and select ...
2
You could use a web service client to read the list data directly from typo3. Since typo3 is based on PHP you will probably benefit the most from using existing libraries for PHP, such as:
thybag / PHP-SharePoint-Lists-API
tangervu / ShareSoap
RapotOR / Sharepoint-PH
1
This should still be possible using FrontPage instead of SharePoint Designer.
In the Folder List, right-click the page that you want as your new home page, and then click 'Set as Home Page'.
NOTE If the Folder List is hidden, on the View menu, click Folder List.
Instructions taken from the link below:
Navigation in Frontpage 2003.
Please see these ...
1
No tags are recognized in a title element by HTML rules (and by browser practice); they are indeed rendered as such. In principle, you can use special characters like “₂” SUBSCRIPT TWO U+2082 in a title element. You can even denote them using character references:
<title>CO₂</title>
However, only some fonts support SUBSCRIPT TWO, ...
1
On a SharePoint Server a Service Document Conversion Service exists. This allows you to convert word documents to a web page in SharePoint. You won't have a html file but you end up in an article pages that you can then also edit in SharePoint directly. You will find more information in the following link.
...
1
You need to change a setting for your web application in Central Administration.
Go to Central Administration > Manage web applications > Your Web application
Select General Settings
Locate Browser File Handling
Select Permissive
Here are the details as stated in Central Administration:
Specifies whether additional security headers are added to ...
1
I believe you try to recreate the search page (the actual search box and search tabs). It is an easier way, and proper too, as described in this article http://msdn.microsoft.com/en-us/library/ms584031(v=office.12).aspx and further under http://msdn.microsoft.com/en-us/library/ff513701(v=office.14).aspx
Basically, the search box is available via the Search ...
1
No actual mechanism exists to help you do that, but workarounds could be envisioned. example:
Rely on the Markup Styles and Style to locate actual HEADINGs -
helping you to build TOC
Use jQuery selectors heavily to modify on the fly wiki pages and inject elements with dynamically generated TOCs
See here an example to get you started ...
1
Even if the web app has it's file handling set to permissive, it can be overriden at the library level.
It can be set via powershell like this:
$site = Get-SPSite("http://sbx01/sites/Harry")
$web = $site.OpenWeb()
$list = $web.GetList("http://sbx01/sites/Harry/Shared Documents")
$list.browserfilehandling // list the current value
...
1
I would recommend to avoid using id for just css styling, especially such a general word as #current. Use a class instead: .current-page or something like that.
SharePoint renders classes and id for a current menu item in the server side. In your CEWP you don't have access to server side. One possible solution is to use an attribute selector with jQuery. ...
1
This is more of a general HTML/CSS question (except for the fact that you are using CEWP), however, while you are still here why don't you Export the CEWP and simply use a selector (e.g. id="current") and define that with the style for the active one, while changing which of the elements have the #current added on each page.
On the other hand the top ...
1
You can add content query web part to your page which is easy to configure and after finishing your configuration you can export the web part and import it to whatever page
since you will use this approach. you can also check the following webpart http://imtech.codeplex.com which is an extended version of the content query web part that support built in ...
1
Yes it is possible..
you have to create custom webpart using visual studio..
go through below link.
http://msdn.microsoft.com/en-us/library/ms415817%28v=office.14%29.aspx
Hope it helps...
1
If it is SharePoint List form, you can simply make the fields as Required and SharePoint will handle it...
But if its some other form, which I think it is... you can use JavaScript like this:
<script type="text/javascript">
function onSubmitValidation() {
if (TrimAll(document.getElementById("field1").value) == "") {
alert('All fields are ...
1
Welcome to SharePoint StackExchange. Your question doesn't seem to have enough information for what you want to do. Are you just looking for the purpose of SPBuiltInField.Nickname?
I will attempt to answer your question presuming the above:
Nickname is just a field "Identifies a field that contains the informal name of a person who is referenced in a ...
1
It sounds to me like you simply want to read whatever content is in your SharePoint list and display it as content on your typo3 CMS site. To do this, you could utilize the SharePoint web services to retrieve all the list items from JavaScript (or whatever server-side code you can put into your CMS) and then display them however you want.
There is a ...
1
There is a way, but you will have to do your work in master pages. The following tag is rendered in a sharepoint 2010 master page as ahref, and the relativity is passed on to sites created as templates.
<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/SitePages/dashboard.aspx" id="v3idNavLinkTrackerDash" Text="Now is the time for all good ...
1
Tough one! I can't think of any OOTB way to do this as the relative url tokens only work in masterpages. Ways that will work would be to create your webparts as custom ones you can override the default behaviour of, or probably easier to create a custom site definition rather than a site template, and add a feature to update these links as the site is ...
1
If you are running a 2010 Enterprise, you can enable the publishing infrastructure and features. This will give you a link in Site Settings called Welcome Page. This will allow you to set a different home page. So you can upload your htm page to a document library and then set that as the new home page.
Only top voted, non community-wiki answers of a minimum length are eligible
