URL to display a Visualforce page in salesforce1 - salesforce

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.

Related

How to show sidebar router page in Tab

I am using DevExtreme react template in my react js project from below link.The router page navigation is working fine as per my requirement.I would like to know how to use router page navigation as in "Tab" instead of single page.For example if we take from below link,there are two pages in sidebar (profile and display data pages).If I click "Profile and display page" ,both the pages should display in Tab but currently its shows only current page.hope its clear.
https://devexpress.github.io/devextreme-react-template/#/home
I also want to note that you can contact DevExpress support team directly at Submit a Support Ticket. They answer questions in 24 hours, so you will be able to resolve the issue faster.

Wagtail how to separate custom page types in sidebar

Is it possible to add custom pages in the admin sidebar and remove the "Pages" link. I want to have different links such as:
Blog Posts
Pages
Events
Games
Shown in the sidebar and each listing page only shows items based on the custom page. I have been looking in the documentation and the only thing that I found was to add custom URLs to the sidebar but I need to also add custom pages to show listings.
The ModelAdmin module allows you to register page models to appear as new items in the admin menu.
You can add exclude_from_explorer = True to your ModelAdmin definition to hide a page type from the main page explorer, although that won't hide the Pages menu item itself - for that, you would need to define a construct_main_menu hook to run after the menu has been built, and remove it from the list.

In Salesforce Whats the difference between Page Layouts and Visual force Pages?

I have created a custom Object in Salesforce. Now to save values in that what should i use Page layouts or a visualforce page and apex controller? in other way- When should we use page layouts and when the visualforce pages should be used?
Page layout is a built-in standard mechanism for displaying information to user. You can use Page layout editor without any development experience, just drag-and-drop. If you need a simple form which just shows field value and related records you have to use a page layout. But sometimes you need to use JavaScript, custom HTML tags, CSS on you page in this case you have to use VisulaForce pages which are similar to JSF or any similar technologies. Also note that you can include VisualForce inside standard page layouts.

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.

Can we make visualforce page as Home page in salesforce?

i want to make my visualforce page as home page in my sandbox.
So is it possible to make visualforce page as home page in salesforce.
I can think of two things that might work for you.
You can embed a Visualforce Page in your home page layout
Similarly, you could create an HTML area home page component with a little javascript that redirects from the home page to the visualforce page:
<script language="JavaScript">
window.location.replace("/apex/YourVfPage");
<script>
I don't think so.
What you can do is, build a visualforce page, create a tab for that, add that tab to your application and make that as the default tab.
As was mentioned above - one thing you can try is the following:
Create the visualforce page
Create a custom tab for that visualforce page called "Home" (or whatever you want to call it)
Remove the default "Home" tab from the list of tabs a user sees (can be done via customizing the tabs & profile editing)
Add your new Home tab to the user and make it their default tab
I believe that should accomplish what you're wanting to do.
No We can't make visualforce page as home page in classic in Lightning it is possible to make it as a home page.
or
you want to by click on the tab to display the visualforce page is possible using visalforce tab.

Resources