Page include on force.com site

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Hi working on my first Force.com Skuid site, and i'm having  a little basic issue.

I followed instructions here, and until now all was fine.

Main page works great, now trying to have a popup with a page include , and it's not working when on force.com. Says loading and nothing else...

-I tried creating a new VF redirect for that page and gave permission to it on the public profile of that site

-As well Site has permission to the objects /fields on that "page include"


In salesforce i can view it fine, so it's a force.com issue.

Was i suppose to include the page include redirect in Same vf as original page?
if yes, pls let me know how so.

I'm sure i'm missing something simple...

here's the VF I used on original page

<apex:page standardController="Account"
extensions="skuid.Redirects" action="{!redirect}?page=Site_offers">
</apex:page>

Thx
Photo of Dave

Dave

  • 5,538 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Dave

Dave

  • 5,538 Points 5k badge 2x thumb
Photo of Thimo

Thimo

  • 1,280 Points 1k badge 2x thumb
I once also tried to create a public accessible Skuid page and the tutorial you posted wasn't enough for me to get it working.

One thing was that I didn't use <skuid:page>

Maybe that is the same issue on your problem.


Instead of a redirect to the skuid page, add the tag

<skuid:page page="Site_offers" />

Inside the apex:page.

http://help.skuid.com/m/page-assignments-and-overrides/l/201793-using-the-skuid-page-visualforce-com...
Photo of Thimo

Thimo

  • 1,280 Points 1k badge 2x thumb
Maybe this quick tutorial can help you aswell :)
https://thimo-org-developer-edition.eu6.force.com/
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Nice Tutoral Thimo! 
Photo of Dave

Dave

  • 5,538 Points 5k badge 2x thumb
Thank you Thimo for your help.

My main page is accessible by the public and works perfectly.

My issue is that I have a popup button on that main page that uses a "page include" to show another skuid page.

This page is not working on the public site.

I looked at your detailed tutorial, and I have done the exact same steps, except did not use Skuid:page.

In your opinion would that make a difference in regards to my specific problem?

Here's error I get on console when clicking on button with page include:



Thx
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Dave.  You are using the skuid:page redirect method for the public site.  As you should. 

ONe of the considerations for using this mechanism is that you need to make local copies of  a set of VF pages that come with Skuid.  Look at this tutorial:  http://help.skuid.com/m/page-assignments-and-overrides/l/201793-using-the-skuid-page-visualforce-com... (look especially at the considerations section)

This should correct your issue. 
Photo of Dave

Dave

  • 5,538 Points 5k badge 2x thumb
Rob, you are 100% correct that was all I was missing.

At the same time you fixed my issue with uploading documents on public site!

Thank you very much to you and Thimo :)