Powershell, design manager, uploading html file not creating associated master page file
I am uploading a xyz.html file through powershell for 2 site collections, when .html file is uploaded and published it automatically creates xyz.master file. It is working fine for not publishing sites collection only, for publishing site collection .html file
is uploaded successfully but it is not creating associated .master file. If I close powershell console and run again it works successfully.
another interesting thing I noticed that if I specify "spadmin" account which I used to install sharepoint as site collection primary administrator, all works well, currently I am using "spsiteCollection" account for primary site collection
administrator and I am having above mentioned issue.
powershell script is also running with spadmin account.
I have ensured .html is checked in and publish properly, If I manually unpublish and publish .html file it creates .mater file. What could be the issue?
Hi,
According to your post, my understanding is that you have an issue about upload html file to master page gallery.
I have used the PowerShell contains in the codeplex to upload the files to master page gallery, it works without any issue.
https://uploadmasterpages.codeplex.com/
You can check your PowerShell with this article, or use this bat file to upload directly to check whether it works.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support
Similar Messages
-
How to upload html file document with his.files
i can upload only one file and i can't upload html file with his images or some more pages
index.html
chapter1.html
chapterN.html
I see this problem so: upload zip file and extract to os(i use linux) and saved link to his index.html.
IS IT POSSIBLE.
Thanks.
Sorry for my english.The simplest way to handle this would be to Upload the page and files to a remote server space and send your email buddies a link to the site. Barring that....
How to Code HTML Emails
http://www.sitepoint.com/article/code-html-email-newsletters/
Use inline CSS styles for fonts and background colors. Use Tables to hold your page elements. Use absolute URLs to images hosted on your web server because attached images may not get through. Give people who can't see your HTML page in their email client a link to the HTML page on your web server.
Download some HTML Email Templates from the links below to help you get started.
Mail Chimp
http://www.mailchimp.com/resources/html_email_templates/
Constant Contact
http://www.constantcontact.com/email-marketing/html-email-templates/index.jsp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
How do I create a Master Page?
I'm creating a page layout document with each page containing one or two photos on the left side and a bulleted list for each photo on the right. The doc is 150 pages and I'd like to create two different master pages - a one-photo layout and a two-photo layout. I can't find how to create a master page.
I have added guide lines and then duplicate the page and change the photo and text, but I'd love to create a set of master pages. Seems like a good skill to have. Thanks for any help.The Pages09_UserGuide.pdf does a poor job of explaining how to create a working template with master layouts.
For a start *Chapter 13 Designing Your Own Document Templates* doesn't acknowledge the difference between *Word Processing mode* and *Layout mode* with all instructions being only for Word Processing mode and even those are incomplete.
Pages in *Layout mode* does not have master pages it has what you might call an internal template, with the page layout being inserted from the Pages button on the toolbar or:
+Menu > Insert > Pages > select from thumbnail+
This is like a page duplicator, with none of it being retrospective as far as I can see. Once you insert a page, changing the original Pages layout does not actually change any page based on it. To change an existing Page design you have to remember its name perfectly down to case sensitive and save a new version over the existing version or go to a completely separate menu item to delete and add designs.
You create the Page designs, I hesitate to call them masters, by laying out a sample page and with an object selected on that page:
+Menu > Format > Advanced > Capture Pages… > Name the Page+
Despite the confusing plural in +Capture Pages…+ it only captures the one page with all other options greyed out.
Worse still it does not seem to retain any of the facing page information except for the header and footer, plunking down the page irregardless of whether it is left or right or part of a pair even though it lets you click +Facing Pages+ in the Inspector.
It is hard for me to imagine how they could have created a more muddled, confusing and incomplete arrangement for tasks that were well established on the Mac back in the early 80's when Apple started the DTP revolution 25 years ago.
I am repeating myself but it seems like a product designed by a committee that never uses it.
Peter -
How to create a master page in Dreamweaver?
Hi
Does anyone know how to create a master page in Dreamweaver ??Dreamweaver Templates ~
http://www.smartwebby.com/web_site_design/dreamweaver_template.asp#1
Server-Side Includes ~
http://www.smartwebby.com/web_site_design/server_side_includes.asp
Spry Tabbed Panels ~
http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_sample.htm
Spry Accordion Panels ~
http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Create horizontal master page?
How do I create a horizontal master page?
According to the Adobe documentation that I've found, the way to do this is in Document Setup. But I don't want the entire document to be horizontally aligned. I just want one page to be horizontally aligned. I thought the way to accomplish this would be to create a master page with a horizontal alignment. What is the easiest and best way to do that?Are you preparing a file for print or presentation?
If it is print, I would keep the orientation of all pages the same, and rotate content for the horizontal page. Rotate the Spread View as necessary to edit content.
If it is for presentation, it depends what version of Indesign you are using.
-If it is CS5 or higher, then you can define multiple page sizes in one document
-If it is CS4 or lower and final product is a PDF, then I would keep the orientation of all pages the same, and rotate the horizonal page in Acrobat -
How to upload html file to email
Hi,
I have absolutely no html background but was able to come up with a single page layout with graphics, texts and links with the help of online tutorials using Adobe Go Live which I can open the file now in Dreamweaver.
My goal is not to come up with a webpage in cyberspace but to create an html file with images and links to specific websites that can be emailed to people. The file must be part of the email body that people can readily view the images, texts and click the links right away and not to be as an attachment.
Would appreciate it very much if someone can help me out.
Thanks.
NewbieThe simplest way to handle this would be to Upload the page and files to a remote server space and send your email buddies a link to the site. Barring that....
How to Code HTML Emails
http://www.sitepoint.com/article/code-html-email-newsletters/
Use inline CSS styles for fonts and background colors. Use Tables to hold your page elements. Use absolute URLs to images hosted on your web server because attached images may not get through. Give people who can't see your HTML page in their email client a link to the HTML page on your web server.
Download some HTML Email Templates from the links below to help you get started.
Mail Chimp
http://www.mailchimp.com/resources/html_email_templates/
Constant Contact
http://www.constantcontact.com/email-marketing/html-email-templates/index.jsp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
Wiki Server uploading HTML file + related archives
Hello,
I am using Wiki Server to store content of our Lego Robotics training center oriented to childs. We use Lego Digital Designer (LDD) to create Lego models. LDD creates a kind of assembly instrucctions manual in HTML format. This file gets images from a folder created at the same time of the .html file by LDD. My intention is to upload the whole thing (html + archives) to the Wiki in order to properly organize the content to be used by the students.
I do not have HTML knowledge and have been struggling with all that for a while and can't find a way. Is it possible? if positive (I hope...) how?
Thanks!
RafaelHi,
Try downloading the file from application server using the transaction CG3Y, while saving the file, save as HTML file.
Still if you find the formatting error, then open the view -> source code of the HTML page, and adjust the space, line space, alignment etc if any, will resolve your issue.
Regards,
Santhosh. -
How to upload html files using Weblogic Bulkloader
I hav uploaded image files using bulkloader.
however with html files am facing a prob.
only the file structure gets created but there is no html file present inside.
in
Filename.html.md.properties i agv the followin
nodeType=html
lifecyclestatus=2
File=C:\ContentRepository\a.html
encoding=UTF-8
charset=us-ascii
mimeType = text/html
shud i add some more properties...You have to do this your self by either (as vinod said) using a different component (not present in adf) or implementing this:
1) allow the user to select multiple filenames (somehow)
2) zip them together
3) upload the zip
4) unpack the zip on the server
5) work with the files
Timo -
Hello Team,
I followed the instructions in the how-to section to create a form to be able to upload and download files.
It works very good. However, it does not work for html files.
I have done that before using PL/SQL outside HTMLDB and I remember that this involved the creation of a table: ****PORTAL_CONTENTSPART which is equivalent in structure to the table WWV_FLOW_FILE_OBJECTS$PART.
So now how this table can be used to store HTML contents.
Thank you and appreciate your help in advance.This is a modfied version of the code I used on AskTom.oracle.com. Should do the trick.
Create this table, it is pretty much a copy of wwv_flow_files
create table uploaded_files
(id number not null enable,
name varchar2(90),
pathid number,
filename varchar2(400),
title varchar2(255),
mime_type varchar2(48),
doc_size number,
dad_charset varchar2(128),
created_on date,
last_updated date,
content_type varchar2(128),
blob_content blob,
description varchar2(4000),
file_type varchar2(255),
file_charset varchar2(128),
constraint uploaded_files_pk primary key (id) enable
create index uploaded_files_idx1 on uploaded_files(filename)
This is the proecure used to download the files
create or replace procedure download_file (p_file in number)
as
v_mime varchar2(48);
v_length number;
v_file_name varchar2(2000);
lob_loc blob;
begin
select mime_type, blob_content,filename,dbms_lob.getlength(blob_content)
into v_mime,lob_loc,v_file_name,v_length
from uploaded_files
where id = p_file;
owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
htp.p('Content-length: ' || v_length);
-- 11/29/04 - Tyler just added this if statement to fix the download of html files
if v_mime != 'text/html' then
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename=' || v_file_name || '');
end if;
owa_util.http_header_close;
wpg_docload.download_file( Lob_loc );
end download_file;
Grant execute on this file to public since the DAD connects as HTMLDB_PUBLIC_USER. You could just grant execute on it to that user if you like.
grant execute on download_file to public;
This is the process used to UPLOAD files. Assume it is on page 2 and you have 2 items: P2_FILE of type "File Browse" and P2_DESCRIPTION of type "Text Area".
declare
l_id number;
begin
-- After file upload, HTML DB sets the value of the
-- file upload item to the "name" of the file uploaded.
-- We'll use that to get the primary key of the file.
select id
into l_id
from wwv_flow_files
where name = :P2_FILE;
-- Copy the new row from wwv_flow_files into our own table (uploaded files)
insert into uploaded_files(
id,
NAME,
FILENAME,
TITLE,
MIME_TYPE,
DOC_SIZE,
DAD_CHARSET,
CREATED_ON,
LAST_UPDATED,
CONTENT_TYPE,
BLOB_CONTENT,
DESCRIPTION,
FILE_TYPE,
FILE_CHARSET)
select id,
NAME,
FILENAME,
TITLE,
MIME_TYPE,
DOC_SIZE,
DAD_CHARSET,
CREATED_ON,
LAST_UPDATED,
CONTENT_TYPE,
BLOB_CONTENT,
DESCRIPTION,
FILE_TYPE,
FILE_CHARSET
from wwv_flow_files
where name = :P2_FILE;
-- Set the description = to the description from the item on our page.
-- You could do this in the insert, but I broke it out to make it more
-- readable.
update uploaded_files set description = :P2_DESCRIPTION where id = l_id;
-- Delete the new file from wwv_flow_files since we now have it in our
-- own table
delete from wwv_flow_files where id = l_id;
end;
This is the report used to display your files. I would put it on a different page than the upload page.
select ''||filename||'' link1,
description,
case when doc_size < 102.4
then round(doc_size,1)||'b'
when doc_size < 1048576
then round((doc_size/1024),1)||'kb'
else round((doc_size/1024/1024),1)||'mb'
end the_size,
mime_type,
created_on
from uploaded_files fHope this helps,
Tyler -
Uploading html files with .swf files in them
I created a website and published it in Flash. I then used
Dreamweaver to create the HTML file that I would upload to my
server. But, when I go to my site, the .swf file does not load.
Both the HTML file and the .swf file were uploaded using an
FTP client, so I don't know why it's not showing up.Don't know if this will fix it for you but when we went
through this we had to tell the server to allow .fla, .swf and .flv
files. Until we did this it didn't show the flash part of the
website. -
Powershell program to upload multiple files with version control at the file level
I have a network folder which contains multiple files refreshed daily.I then run a power
shell scrip which uploads all the files . I have scheduled it to run once
daily. I have version control at the directory level , is there a way to upload all the files daily and maintain the last X versions for each file , rite now it does it at a folder level . I want it at a file level
powershell script
if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq $null)
Add-PSSnapin Microsoft.SharePoint.PowerShell
#Script settings
$webUrl = "http://sharepoint.contoso.com/Corporate/Sales/"
$docLibraryName = "Shared Documents"
$docLibraryUrlName = "Shared Documents\arizona" # specify your subfolder url here
$localFolderPath = "C:\Test"
#Open web and library
$web = Get-SPWeb $webUrl
write-host $webUrl
$docLibrary = $web.Lists[$docLibraryName]
write-host $docLibrary
$files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
write-host $files
ForEach($file in $files)
if($file.Name.Contains(".pdf"))
write-host $file
#Open file
try
$fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead()
#Add file
$folder = $web.getfolder($docLibraryUrlName)
write-host "Copying file " $file.Name " to " $folder.ServerRelativeUrl "..."
$spFile = $folder.Files.Add($folder.Url + "/" + $file.Name,[System.IO.Stream]$fileStream, $true)
write-host "Success"
#Close file stream
$fileStream.Close();
catch
Write "Error: $file.name: $_" >>c:\logfile.txt
continue;
#Dispose web
$web.Dispose()Check if this helps you
http://blogs.technet.com/b/heyscriptingguy/archive/2013/04/28/weekend-scripter-use-powershell-to-upload-a-sharepoint-file-version.aspx
# Add the Snapin
Add-PSSnapin Microsoft.SharePoint.PowerShell
# Retrieve specific Site
$spWeb = Get-SPWeb http://SP01
# Create instance of Folder
$spFolder = $spWeb.GetFolder("Shared Documents")
# Get the file on Disk that we want to upload
$file = Get-Item C:\Documents\MyDoc.docx
# upload the file.
$spFolder.Files.Add("Shared Documents/MyDoc.docx",$file.OpenRead(),$false)
$newVersion = $spFolder.Files.Add($spFile.Name, $file.OpenRead(), $spFile.Author, $spFile.ModifiedBy, $spFile.TimeCreated, (Get-Date))
If this helped you resolve your issue, please mark it Answered -
Can not create template based page with customized page type.
I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
Steps to reproduce it:
1. create a new page type - test page type.
2. create a new template = test template.
3. create a new page - test page.
3.1 choose the page type to be "test page type"
3.2 fill in the form including the new attribute info.
3.2 choose the page template to be 'test template"
3.3 click finish
4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
I tried to find a workaround.
1. create a page with "test page type".
2. covert the new page to template.
I got this error message:
Error while copying page. (WWC-44262)
(WWC-00000)
Looks like customized page type and template can not coexist. Is this a bug?How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
Mike -
MDM Business Partner 5.5 Not Creating Customer Master in SAP ECC
Hi,
I am importing Business Partner into ECC from MDM using XI with BP Business Content. This is done using proxy.
The business partner is created sucessfully but the customer master table KNA1, KNB1 is not being populated.
Does anyone experienced this before? Or has a solution for this?I am not creating customer in ECC. I am creating Business Partner, this is because we are using IS-U which uses the BP instead of the Customer Master.
So we are using the MDM BuPa to ABAP BuPa mapping.
The thing about this is, when we run the transaction BP to create Business Partner, it automatically creates a mirror KNA1 record to match the business partner. But through MDM-XI proxy, it is not creating the record. -
Help!! Need to create Left Master Page in FM 8
Howdy--
I'm using Frame 8 after a bit of a break from FM. The last version I used was 7.2 and I don't seem to remember it being so hard to create a left master page. When I go to do it in FM8, it tells me that Left is reserved. OK, but where does it live--can't find that neither.
Would appreciate some help and many thanks,
MarieHi Marie
I'm not Van, but can answer those questions. :-)
To change the size of the text flow box (text frame, by the way), Ctrl-click on the frame border in the master page, then select Format > Customise Layout > Customise Text Frame. Or you can Ctrl-click and drag the borders, if you don't care about precise measurements. I'm using FM7, so FM8 may be different - but I hope not.
Cross-references aren't the friendliest. See the online help topic "Creating cross-reference formats". You need a definition that's something like:
See Figure <$paranumonly> for more info.
If you get stuck on cross-refs, it's prob a good idea to start a new forum topic about that.
Cheers, Rebecca -
Pushing Phone Designer (7.1) through SCCM not creating shorcuts
Hi
We are trying to push Cisco PD (exe package) though SCCM and it's getting isntalled on machines, but it failes to create any shorcuts in users desktop or with All programs folder. This we installing through user intraction. So how can we correct this issue, also is there msi version of this application available?
Regards
LMSHi,
I've had trouble with the on-demand installation of language packs, which I have put down to something on our corporate gateway. Seems to work fine if I download them manually, I think there are five, this is the Japanese one, http://www.adobe.com/support/downloads/detail.jsp?ftpID=4881.
I haven't come across any problems using Windows 7 though.
Regards
Bruce
Maybe you are looking for
-
How do i watch my iplayer on ipad
hi can anyone tell me how to watch my iplayer on an ipad ive installed different browsers as advised but it still says need flash player the site itself says it can be watched on ipad
-
Microsoft Excel Mac Issues - Print Format
I have Microsoft Office Mac 2008 and just purchased Microsoft Office Mac2011. There is a formatting issue with printing spreadsheets as Excel defaults to Portrait and 100% Scaling. I save the Excel worksheets formatted as Landscape and 60% Scaling in
-
Youtube playback bug: the video dosen't buffer at the start
Hello, I'm having this weird problem for youtube videos which I've just encountered few days ago. Basically, on normal occasions when you click the video you'll enter the page and video should immediately start playing as it buffers. However, for som
-
How to solve the syncing issues of apps downloaded? They are stuck on "loading" and "waiting"
Syncing issues from iTunes to iPad. Apps are showing as "loading" and "waiting"
-
Not able to use a function inside a sql in a form, Why ??
Here SERIAL_NUM is a function, this sql work fine in TOAD and SQLPLUS but inside the form iam getting error saying "function serial_num cannot be used in a sql" Why is it like that ?? Is there anyother way to execute this sql ? cursor c1 is SELECT ms