Jump to content

Picture Series


pconkie

Recommended Posts

3 hours ago, ADT said:

Come on Quincy when you are ready........ :P 

@Graham Quince

He's away until Wednesday I think - If @pconkie is happy to let you guys have it, I'll have a look and see if I can export the widget. I'm not sure of the process that Graham usually uses, but I'm sure I'll figure it out :p

 

Link to comment
Share on other sites

1 minute ago, adamw said:

He's away until Wednesday I think - If @pconkie is happy to let you guys have it, I'll have a look and see if I can export the widget. I'm not sure of the process that Graham usually uses, but I'm sure I'll figure it out :p

 

Part timer......  :P

That would be great Adam thanks!!

Link to comment
Share on other sites

5 hours ago, adamw said:

He's away until Wednesday I think - If @pconkie is happy to let you guys have it, I'll have a look and see if I can export the widget. I'm not sure of the process that Graham usually uses, but I'm sure I'll figure it out ?

 

As usual, happy to share.  Especially for some help with my coding questions posted today!

  • Like 1
Link to comment
Share on other sites

13 hours ago, gbligh said:

@pconkie Could an option be to link to another Frog site?

I tried this initially as it seemed the most flexible approach.  I can open a page in the current site or open another site.  What i couldn't figure out was how to open another site to a specific page.  If someone knows how to do that, i'll happily update the widget.

Link to comment
Share on other sites

20 minutes ago, pconkie said:

I tried this initially as it seemed the most flexible approach.  I can open a page in the current site or open another site.  What i couldn't figure out was how to open another site to a specific page.  If someone knows how to do that, i'll happily update the widget.

@adamw

Link to comment
Share on other sites

24 minutes ago, adamw said:

Sorry, I've been super rammed here with work! I'm sure that one of us will get around to it today ;)

Ah...  well the Parents Evening Booking System won't make itself i suppose..... ;)

Link to comment
Share on other sites

54 minutes ago, ADT said:

@Graham Quince @adamw

Any ideas on how to "PIMP" up Conkies widget to allow a link to a different site/page on that different site???  That would make this even more epic!!!

Right, so I've had a look at the code and it seems that to open a site at a certain page you need to do this:

[yourfrogurl]/app/os?site=[site_uuid]&page=[page_external_link]

So, the external link for a page is basically the page name with the spaces replaced by dashes - for example: "page 1" will become "page-1"

How you get this page external link easily I don't know, but you could try using the page picker widget preference type and seeing what that returns for you, for example:

 page: {
                type: 'pagepicker',
                label: 'label.page_url',
                defaultValue: JSON.stringify({
                    page_uuid: '',
                    site_uuid: ''
                })
            }

and then using the page uuid that the pref gives you and then making a call to get the page object, which may have the external link name in it.

Sites.Models.Pages.findOne({page_uuid: page.page_uuid}).done(function(data){
	//do something with data here
});

No idea if that will work, but would be worth a try. If I get a spare moment (ahahahahahahaha) I'll have a look.

  • Thanks 1
Link to comment
Share on other sites

On 26/03/2019 at 11:40, pconkie said:

I tried this initially as it seemed the most flexible approach.  I can open a page in the current site or open another site.  What i couldn't figure out was how to open another site to a specific page.  If someone knows how to do that, i'll happily update the widget.

Did you leave the ability to open another site in???  Or am i missing something...  as usual!! ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...