CMS to develop an aggregator of posts - templates

I would like to know if there is a CMS where users sign up and create posts (with text, images and videos) and then these posts are displayed on the main page of the website. Posts can be voted. Posts can also be filtered by most voted, most recent and by tag name. Basically, it will be like the Stack Overflow website but instead of questions, users post a topic.
If such a CMS does not exists, what options are available to develop one in terms of existing CMS/templates/themes that I can customize or otherwise?

There is some alternatives to go on with. I would go with a PHP one since it's more widespread but they should all do the job. Here's 2 of them:
http://www.osqa.net/
http://www.lampcms.com/
You can find more by doing a Google search with the keywords "Q&A Platform".

Related

Adding custom data to Django's admin dashboard

I'm having a bit of trouble with Django again.
I have a simple e-commerce website project that I'm working on for my graduation. It sells books. I've got basic functionalities down, such as adding categories and products, client sign-ups and logins, a session-based shopping cart, a checkout page fully connected to a payment API, and an orders model to keep track of data.
My professor has asked me now to to add relevant reports in the Admin panel, talked to me a while about what would be relevant to see and all. So, I've got in mind what I'm hoping to make.
I want to have two containers in the main dashboard page, which would display some quick analytics (like, how many books the store has sold in the past seven days, how much money from sales the site has made in the past month), as well as links in the sidebar: I want each relevant app within my project to have their own reports section in the Admin panel, maybe led to from a link underneath their models. I've separated the storefront, accounts, orders, shopping cart, and checkout, for instance, in different apps
The problem is I can't really figure out how to actually... do that...
I've fiddled with the layout and templates on the admin; I've figured out how to add custom links to the admin page, and change its design elements, for instance. But I'm not sure how to link the data I want to the dashboard. It feels like the answer is right in front of me and I can't reach it...
I guess my question is, how can I add my reports to the Django admin page per app, and how can I add these containers that I want in the dashboard?
I've guessed that I have to start out by building a view for each report. So I am currently reading the Django docs on the Admin page again, as well as looking at questions similar to mine.
But any information y'all can share that could ease up this process and save me some time would be very much appreciated. Thanks so much!
PS: If it helps, I am overriding the admin templates by having all the .html pages copied on my project's templates folder - it's how I got it to display the store's header in the admin dashboard.

AWS Amplify: How can I create nested subscription?

I am developing app using AWS Amplify and using graphql API for serverless.
I have following tables:
Users
Pages
UserPages - linking table joining users with pages they are following.
Posts
Users can create and/or subscribe to Pages and create posts on pages.
I could use subscriptions so list of pages updated as soon as someone else creates new page and same with posts on pages.
But the problem I am having is how to create subscription so that I get notified about any new posts added to pages I am following.
How can I achieve this? Apologies if my question is not clear enough.
You need the server to resolve the pages that a user follows, then return the posts from that page. In order to achieve that, you need to keep a global list of userIds that are subscribed to any page.
When a post changes, resolve which page this post belongs to. From there, resolve the users that belong to that page, then find out which one among them is online, and emit to them. An optimisation would be, when a post changes, get all the "online" users, then find out which one(s) among them belong to the page that that post has been posted to. This all depends on how many users you expect to be onlive vs how many pages you have...
See this related anser as well

I want to get the information of exact categories from Google Photos API, such as the each people in PEOPLE categories

I want to get the information of exact categories from Google Photos API, such as the each people in PEOPLE categories ,but I find any methods in Google Photos APIs, Can you help me to get the information of exact categories?
I assume you want to programmatically get a list of categories that you can filter.
To my knowledge and after having worked with the API for some weeks, this is currently not possible.
There is a static list of categories that you can currently use for filtering at : https://developers.google.com/photos/library/guides/apply-filters#content-categories
Of course it would be nice of Google to provide a way to get this list dynamically with an API call in case this list is updated/modified in the future.
The Google Photos API is still very new and in beta, so maybe this will be a future feature from Google.

Is there a way to track our website activity from our Facebook fans clicking link on our page?

We just started an advertisement with Facebook and are curious if there is a way to track who has visited our website by clicking our website link on our Facebook page? I am very pleased with all of the ways to track the performance of our ad on Facebook and want to see if people are not only 'liking' our page, but visiting our website to learn more about us. Any information would be helpful :)
This is our website if you need to look into it further:
http://drkennethlevine.webs.com/
I don't know how much you can change about your website or how it is built. However there is a way to track where the users who visited your page from. Use the http reffer field.
In php (and probably in most other languages) you can get the refer link by using
$_SERVER['HTTP_REFERER'];
The refer field contains the last page visited by the user.
Simply count the number of users that are surfing from your facebook page to your website.
You can use $_SERVER['HTTP_REFERER']; as mentioned by #fake, or simply use Google Analytics, which will provide you a lot of statistics for free, including referers, stats by browsers, countries...
All you have to do is create a GA account, and link your website to your account (you'll have a few javascript lines to add in your footer for it)

Social sharing link (like in StackOverflow) for Django

I'd like to add the ability to share a particular Model object via a link and social media as Stack Overflow does when you click the share link below. I like the way it pops out of the page like that with the link.
Is there a module for Django that can perform a similar function.
Thanks!
This can be done with javascript code you can get from the developers section of twitter, Google+ or Facebook. I've just added it to my site and it's pretty easy, you can customize the code to get a slightly different look from the standard buttons or you can completely customize it (like Stackoverflow have done).