Adding Custom Button to a Salesforce Standard Page - salesforce

How can a user that have Developer Account can add custom button to a standard page is there a way to do that. Because I couldn't find editing a button, adding a button or editing button's redirect URL for a standart visualforce edit page. i.e Opportunity creation form.

Your question is unclear :/
Your organisation is a "Developer Edition" (a free one to try out working on Force.com platform) or for example "Enterprise Edition" and your user Profile (a set of system permissions) is called "Developer"? In "Developer Edition" you probably are a System Administrator, so you have all the rights. In the later case - check if your profile has "Customize Application" permission for a start.
What do you mean by "standard visualforce edit page", there's no such thing. You mean standard page layout or do you have custom Visualforce Page that's used to edit opportunities?
Best guess answer:
You can go to Setup -> Customize -> Opportunities -> Buttons and Links, create there a "Detail Page Button" and when it's done - add it to the page layout(s) of Opportunities. If you don't see these options - you don't have permission to customize application.
BUT: none of the buttons added that way can be displayed on the "edit" page, which is a standard one with very limited customisation options. Only standard "view" page displays the extra buttons. There are some JavaScript tricks to inject content to "new/edit" (via section headers or sidebar)... But if you want the button to behave reliably best might be
to make a Visualforce page and override the actions.
What exactly this button should do?

You can not delete the standard button but you can edit it and override it with Visualforce page. You can find the all standard buttons for the opportunity are here. Setup-->App Setup --> Customize --> Opportunity --> Buttons and Links.
Form here you can either create any custom button or you can edit the standard button.
Note : If you are overriding standard page with Visualforce page then make sure that the Visualforce page is having standardcontroller as selected object i.e. here in this case is "Opportunity"

To add a custom button to a standard page go to Setup -> Customize -> Opportunity -> Buttons & Links. Click "New" custom button and link button.
Here is a good tutorial for adding javascript actions.
http://www.interactiveties.com/b_execute_javascript_button.php
If you wanted to override standard buttons with visualforce pages, create your page first, then on the same buttons and link page from above, select "Edit" on the action you want to override.

Related

How can I fire a Javascript function when a standard visualforce page is loading in Salesforce?

On standard salesforce page, I need to display some custom buttons based on some conditions. The decision to display the button or not is based on response from Apex method. As my page is standard visual force page, how can I trigger the JavaScript function before the page is loaded so that I can take a decision whether to display the button or not?
You can display a custom button on standard salesforce page. but salesforce not allowed to make any call on load of standard page. Salesforce have a feature that is page layout. You can create different record type with page layout in that you can use custom button as your need.
On the other hand you can make a decision and filter when javascript custom button click and show error like 'you are not allowed to click this button'.

URL to display a Visualforce page in salesforce1

How to display a Visualforce page in Salesforce1 without using a tab. What is the URL to be provided in the href attribute?
The following do not work:
/apex/VF_Pagename
{!URLFOR($Page.VF_Pagename)}
Using the above URLs styles the page more like a browser. I want the header bar of salesforce1 visible.
Since Salesforce1 doesn't support the /apex/Page style of redirecting to VF Pages, I think you'll want to consider using custom Publisher Actions to surface your VF Page. These can either be at the record level or the global level.
http://help.salesforce.com/apex/HTViewHelpDoc?id=actions_overview.htm
Visualforce pages can surface in Salesforce1 as:
++ Tab in the Navigation Menu
++ Mobile card in a record view
++ A mobile card in the related information page
++ In a publisher action layout
If you're worried about styling a custom VF page, consider using the styling from the Mobile Design Templates: https://developer.salesforce.com/en/mobile/services/mobile-templates/templates-faq.

How to override a standard link in Salesforce

i have to override a standard link in Home Page layout .My screenshot of Home page layout is
i want to open my visualforce page when user click on link on left bottom Approve/Reject link.How to override its functionality please guideline.is this possible or not ??
Why do you want to override the existing link? You can add fields to the Approval page layout which gets displayed when the approver will click on Approve/Reject button, but you cannot override it.
You will need to create your own approval process if you absolutely need to show visualforce page on the link.

How to add additional portals to my DNN community edition site?

I know this is a very basic question - I have googled and every where it says - click the "Add New Portal" button/link on the Portals page.
However, I have a DNN community edition version 06.00.00 that is live and I do not see any option to add a new portal. Could this be a configuration issue? Do I have to change some settings to be able to get the option to add a new portal?
See the image of the Host menu and Portals page. I am unable to get the Add New Portal link:
In the menu shown in your first screenshot, you need to go to "Portals"
Then you will see a small semi-transparent button that says "Manage"(if not, make sure your view mode is set to "Edit" in the top right of the control bar
hover over it and a menu will drop-down and there will be your "add new site" or "add new portal" link
you need to make sure your page is in the EDIT view mode (selected in the top right of the page), then you will see a manage button appear when you hover over the sites on the portal page. Click the manage button and choose new site.

dotnetnuke hide menu from page

I'm running a dotnetnuke project (v7.0) with 2 portals.
I need to remove the default DDR menu from one page only.
The menu works great now with multiple pages and sub-pages, however on 1 specific page , ie landing page, I don't want to show the menu.
Right now I can think of 2 methods for achieving this:
Create a new skin template, remove menu, apply template to that one page
Use jquery to detect URL, for that page hide menu.
I'd rather just code the logic inside the template file, but I'm not strong in .net/c# and I'm new to DNN.
It's just one page today.
However, if you are using it for a landing page design I would recommend you just create another skin and exclude it from that and tailor that skin for that need.
That way when your non-technical editors need to work on the site and make a page that might only be used when linking from Google Adwords or whatever they can pick a template without that navigation and you as the developer/designer don't need to edit the skin to put in another exception based on the URL.

Resources