Glen Beginner
-
Glen
Posted the thread Installing an External API Into Perch.ThreadHi everyone
I’m looking to connect an external API to a standard Perch site but I have never done it before so I was wondering if anyone had and pointers or tips.
I am wanting to display the local tide times and there is an API available that provides… -
Glen
Replied to the thread Comments App: comment posted notification email.PostThis is currently possible by using perch_forms at the same time.
On the Perch comments form you can also post to the Perch forms addon so that when a comment gets submitted, it also posts the data to perch_forms where you can then set up an… -
Glen
Replied to the thread Comment App Notifications & Replies.PostThis is currently possible by using perch_forms at the same time.
On the Perch comments form you can also post to the Perch forms addon so that when a comment gets submitted, it also posts the data to perch_forms where you can then set up an… -
Glen
Posted the thread Using Pagination Tags To Load More Comments.ThreadHi Everyone.
I have a website which uses the comments app so visitors can leave... comments!
One page now has over 50 comments so I am looking at adding in a button every 10 comments which load the next 10 comments, and so on. Lazy load style
The… -
Glen
Liked hus_hmd’s post in the thread New Perch Website Launched - Hunstanton Webcams.Like (Post)This sounds like a nice initiative. Well done, Glen -
Glen
Posted the thread New Perch Website Launched - Hunstanton Webcams.ThreadHi everyone
I have just launched a new community project, where I am teaming up with a few local businesses and organisations, and have just launched Hunstanton Webcams at https://hunstanton.webcam
The site uses standard Perch with the forms and… -
Glen
Liked Clive Walker’s post in the thread Perch Redirect New Window / Tab.Like (Post)However you do it, make sure that you use rel="noopener noreferrer" on any such links for security reasons. See https://web.dev/external-anchors-use-rel-noopener/ -
Glen
Liked Byron Fitzgerald’s post in the thread Perch Redirect New Window / Tab.Like (Post)Unfortunately not, php is server side language so doesn't have the capability to do this.
You would need to use JS to do this, something like window.open("https://openinnewtab.com"); would work -
Glen
Replied to the thread Perch Redirect New Window / Tab.PostThanks Byron Fitzgerald -
Glen
Posted the thread Perch Redirect New Window / Tab.ThreadHi everyone,
Me again (sorry!).
Quick question, is there a way to get PerchSystem::redirect('http://example.com/'); to open a new window / tab instead of redirecting in the current window / tab? (just like target="_blank" does).
Many thanks
Glen -
Glen
Liked hus_hmd’s post in the thread Hiding Page Extensions Using _page.Like (Post) -
Glen
Replied to the thread Hiding Page Extensions Using _page.Post -
Glen
Posted the thread Hiding Page Extensions Using _page.ThreadHi Everyone
I am using <a href="<perch:content id="_page">"> on a template which is being used via a perch_content_custom in order to link to the page that the original content has come from.
Does anyone know how I can hide the page extension as it… -
Glen
Replied to the thread Creating 'Time Ago' Blog Post Dates.PostBingo! Thank you Byron Fitzgerald
This one's on me -> 🍺
I've now got an issue that the time ago script doesn't recognise anything after 4 weeks ago and displays 1 Jan 1970, but I will have to figure that one out when I've got a bit more time.
A… -
Glen
Replied to the thread Creating 'Time Ago' Blog Post Dates.PostHi Byron Fitzgerald
Many thanks for that, the comments now appear.
Unfortunately however the "3 days ago" line does not. Looking at <perch:showall> the perch ID postAgo is not being passed into the template. So sorry to keep asking but would you know… -
Glen
Replied to the thread Creating 'Time Ago' Blog Post Dates.PostHi Byron Fitzgerald - wow thank you
Unfortunately, nothing is being displayed, I ran a debug which showed an array error but after fixing that nothing still displays. The updated code I am using is as follows...
(Code, 23 lines)
Time ago code...
… -
Glen
Replied to the thread Creating 'Time Ago' Blog Post Dates.Post(Quote from ian Hobbs)
Hi ian Hobbs
You can pass variables into layouts just like you can with other regions... https://docs.grabaperch.com/pe…nd-nav/layouts/variables/
As mentioned, it works perfectly well on another site using the blog addon, for… -
Glen
Replied to the thread Creating 'Time Ago' Blog Post Dates.PostHI Byron Fitzgerald, sorry me again!
I have just run <perch:showall> and it is showing that the id postAgo isn't getting passed into the template.
As mentioned, I have copied everything over from the other site so I'm not sure why this would be.
… -
Glen
Replied to the thread Creating 'Time Ago' Blog Post Dates.PostHi Byron Fitzgerald - I hope you had a great Christmas & News Year?
I was wondering if you could help me once again?
I have copied over the timeAgo code to another website but this time into the perch_comments addon. I have copied everything across… -
Glen
Replied to the thread Reviews App.PostThis is the perfect addition to Perch, did this ever get developed?
Glen