Display recently viewed pages and an image for that page in CakePHP - cakephp

So title basically sums it up, how would I go about doing something like this?
I want a logged in user to have their own "logged in page" that they can view products that they have recently viewed and then suggest other products that they might like to view in the future.
Any ideas? Google literally has nothing on doing this with CakePHP.
I am so lost for what to do and this is for an assignment due tomorrow night.

You need to created a database table to records users activity. Mean, you need to save what product are browsing by users and you can show them this in next.

Related

Salesforce Knowledge Article Field - Not Visible to Guest User

I am very new to Salesforce, so apologies if my use of terms is not correct.
I am using Lightning Knowledge
I have enable and setup Knowledge Base and added FAQ articles and have added Question and Answerr fields to those articles.
I have setup the field visibilty so they are visible to all user including "Read Only" users (I could not find anything specific for Guests, should there be?)
So as far as I can tell the field permissions on the Question and Answer fields is correct.
I create articles and enter my values for my "Question and Answer fields" but when I go to my public site to view the FAQ, I only see the content of the Title and URL Name fields. I do not see my Question and Answer Fields.
If I login and view the articles via the public site, I do see the Question and Answer values.
I would very much appricaite it if anyone could point me in the right direction for trying to figure this out. I have googled but cannot seem to find anything that talks about guest users and field visibilty that has helped me.
Many Thanks
Derek
Yes, guest user is still an user. There's hidden user account (which acts as "created by" when you make new Case for example) and Profile which you might have to edit. It doesn't show up on normal list of profiles (but for example the Id can be queried and once you know Id you could construct the url yourself).
If you're using an Experience Cloud (aka Community) go to your site's Builder and the links will be at the bottom.
If you're using Sites - it should be in Site's config.
I had the exact same issue, but did see the solution documented in the previous comments.
In your community navigate to Settings
Select General
Click link under Guest User Profile
Scroll down to Field-Level Security
Click View for Knowledge
Click Edit
Check the Read Access box for the fields which are not displaying
Click Save

Google Analytics Goal Funnel Count has number differences with Production Data

I have this funnel visualization problem in Google Analytics. I have set up the funnel using the virtual pageview like so:
So basically what it tracks is that in activity page, when user clicks a button, it will show up a modal for registration and hits the /activity/virtual/open-volunteer-modal. After they fill out the forms, they click Register, and it will hits the /activity/virtual/submit-volunteer-modal.
Everything was fine, until I saw some difference in GA and Production values.
In GA, there are 3000 users that filled out the forms and submit their data. I was totally happy seeing this, but:
In Production DB, I only got 1906 users submitting their data.
I checked the code, and there is nothing wrong with it. It basically send a virtual page view when the value has been validated, so my question is how is this possible and is there any way to fix this? Or is it just intended behavior?
After further investigation, I found that some of the buttons that has open-volunteer-modal event is redirecting to submit-volunteer-modal. Hence, the submit-volunteer-modal value was bigger than the open.
Should have sipped some coffee first before working.

How to make a page with a list of Users in a Salesforce Community?

So I'm completely new to Salesforce Communities and working with the Experience Builder which is where I think this task would need to be done.
I want to display a list of Users in the Community (specifically only ones associated with the same Account as the current User) showing a certain set of fields and allowing in-line edits.
I see there's already a set of pages for User list, profile, and related list, but the User List page is blank by default. I found the Record List component for Experience Builder, but it does not appear to support User.
I'm considering making a Lightning Component that displays my table of Users to then use as a component in Experience Builder, but I'm not sure how involved of a process that would be or if there is a more straightforward approach.
How can I go about making this?
(If it matters, when I first made the Community I believe I selected "Customer Service")

Update website automatically via database

So I have created a database for my church website that the admin can upload our current sermons easily and it update the website automatically based on what the date is.
Use Case:
Admin Uploads Sermon 3 months before it starts --> No Change on the website --> 3 Months pass and it’s the first Sunday that sermon is airing —> Website updates to show the sermon.
openarms.site down at the bottom is where I want it to be viewable, showing the previous 10ish sermons with the most current one being at the left.
I’ve successfully made the code to upload the sermons to the database but I am not sure where to start on the website updating it’s self. Does anyone have any ideas?
Depends on which language you're writing your website in. The basic idea is you need to have different views in your database and your website only serves the most current view and in the database the views are updated at regular intervals based on whatever update logic you have.

Drupal 7 - Display Recent Nodes on Profile Page

I haven't had much luck finding help for this in terms of Drupal 7, but this is the closest I've found:
Drupal Views: Display recent nodes created by user on profile page
Basically, I want to access user pages at site.com/users/billy_joel, and have the users profile visible, plus a paginated list of their posts in reverse chronological order. I've tried messing around with Views, but I'm a little shaky with Drupal 7's Views.
Basically, I'd like the view to return an array of the posts so I can theme the results myself.
Has anyone done anything like this and does anyone have any pointers?
Thanks in advance!
1.You can create new views to list out the latest contents created by user and make user id as contextual filter which will get uid from url.
2.Create custome user profile page template with Display Suite
3.Render view in user profile template.

Resources