Add JavaScript Through Acumatica Customization - acumatica

I'm wondering if it's possible to add JavaScript code to an Acumatica web page through a customization.
Thanks for your help!
Fran Parker

Another way is to create customization for existing page.
In Layout Editor select "Actions->Edit Aspx",
add the following code
<px:PXLiteral runat="server" ID="s">
<script type="text/javascript" src="myscript.js"></script>
</px:PXLiteral>
and click "Generate customization script"

You can add js code to your aspx page, and then add this page to your customization package. Here you can see example of adding js code.

Related

Bootstrap in sharepoint web part

Does anyone know of a good way to use Bootstrap styles for a SharePoint web part? I don't want to restyle the entire SharePoint site with bootstrap styles. I just want to be able to use bootstrap elements like buttons and forms and modals within a SharePoint web part without interfering with the regular SharePoint styles on the rest of the site. So with that in mind looking at the example below should give a good picture of what I want. Basically I want to reset the styles and then apply bootstrap styling within the div with ID BootstrapContent but everything outside of that div should be unaffected and just use the normal SharePoint styles. Thanks for the help.
<html>
<body>
STANDARD SHAREPOINT STYLES
<div id='BootstrapContent'>
HTML CONTENT WITH BOOTSTRAP STYLES
</div>
STANDARD SHAREPOINT STYLES
</body>
</html>
There's no good way to isolate one part of your html without using iFrames. If you went that way you could put your html into a doc lib, then call it from an iframe. That html file would reference bootstrap and only affect the iframe. You can use the Page Viewer web part to create the iframe for you.
Another option which isn't quite what you are asking, is you could get a cut down (customized) version of bootstrap customized. If you only need the grid system for example, only get that option. You might be able to exclude a lot of the generic things that interfere with SP. However, you'd likely lose things you want.

SP2013 - Adding a Content Editor web part to a custom layout page

In sharepoint 2013, I have 2 custom layout pages:
1 associated with Content Type = Article Page, and
1 associated with Content Type = Welcome Page.
I add a Web Part zone to both layout pages.
I create a web page from either layout page.
When I edit the web page to fill in the Web Part zone, no Web Part zone appears and this appears in its place: $Resources:core,ContentEditorWebPartTitle;
Any clues?
Thanks.
I'm adding the steps of my process hoping that may make things clearer:
access desired site.
went to Design Manager
clicked "Edit Page Layouts"
clicked desired custom page layout
clicked "Snippets"
clicked "Web Parts / Media and Content"
clicked "Content Editor"
clicked "Copy to Clipboard"
then
opened custom page layout (.html) in Sharepoint Designer 2013
copied the clipbboard contents within the "asp:ContentPlaceHolder" tags
saved
then
returned to browser
went back to "Design Manager"
and "Publish a Major Version" of the custom layout page
then
clicked "Add a Page"
goto "Page" tab
click "Page Layout"
select my custom layout page
then scroll to examine my new page (while in "Edit" mode)
result
I see the text "$Resources:core,ContentEditorWebPartTitle;",
but no box for adding content.
Thanks
Im new to Sharepoint myself, but this sounds like your snippet might be wrong. If you can access the snippet manager, how to do this is on MSDN SharePoint 2013 Design Manager snippets.
Then what you want to do is create the snippet using the snippet manager, try the Content Editor inside the Media and Content section, you can then add this to your MasterPage inside the MainContent user control.
You could try adding this snippet to your PageLayout.html instead of MasterPage.html in place of the current web part thats failing, to see if that works.
Remove the web part zones from your layout pages.
Open the layout page in design manager and navigate to snippet manager.
Copy the snippet for web part zone and place them in the layout as desired.
Publish the layout.
Hope this will help to resolve your issue
Your problem is on Step#10 you should put your code inside the following tag:
asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server"

Adding an external style sheet to Page Template Header Kentico CMS 7

I have a hopefully simple question, but I have been trying to figure this out for the past few hours with no luck and no response from Kentico's support team.
Just recently upgraded Kentico CMS from 6 to 7 and am now having problems getting css to load that used to be just called in the individual page templates. I decided to try and add in the css link at the Site Manager > Development > Page Templates > My Template > Header tab. This is apparently supposed to work according to posts on Kentico's website, but no matter what I do, I cannot get the css file to load for that template.
The link tag for the css should be formatted correctly, but in case Kentico does something crazy, here it is
<link type="text/css" rel="Stylesheet" href="../_SalesPad/Stylesheets/_HomeMini.css" />
Any help would be greatly appreciated!
This seems to be working for me if I add your tag.
Could you make sure that in your masterpage on the header tab that "Allow child templates to inherit the current header" is ticked.

Open a custom webpart from the other custom webpart through a link button

How to Open a custom webpart from the other custom webpart through a link buttom.
I have a custom webpart in which i have a link buttons of all other custom webparts in that page.On click event the particular webpart should be open.
can anyone please help me in solving this...
What do you mean by "Open a custom webpart" ?
If you want to make some operations on webparts, you can use the splimitedwebpartmanager
you need to follw this step to open the custom web part on page:
(1) create seperate page for each custom web part.
(2) add web part on the page.
(3) set url to related web part page.
hope this help.

Can I make a SharePoint Image Web Part clickable to link to another page

The Image Web Part doesn't seem to have an href attribute that I can set. Is there something I am missing?
Does it have to be an Image Web Part? If not I would simply use a Content Editor Web Part and paste the required HTML there.
<img src="urlToImage" />
what if it have to?
users need to have an opportunity to change the link and the image themselves and not to disturb an administrator.

Resources