Secondly, this if done in a plugin would be a massive template override. I would love to know more about discourse AMP if there’s an expert here. Feasibility is in question here. As an AMP dummy, I would say try to go ahead incrementally using plugin outlets as much as possible.
@fzngagan thanks for your response . I have checked related topics on metadiscourse related AMP. I do see alot of people are indeed interested in this. Is it possible somehow to create an AMP version of topic page and keep it somewhere on my siteas a file.
and I can include a line in my html topic template of discourse to show where is the amp version of this page.
e.g this will be added to current html discourse topic pages
But how and where can I host that AMP file so that I can serve it from my site.
Is there anyone in discourses team or marketplace who can do this for me? As I’m not fully familiar with discourse working structure of template and where would I host the amp version of my topic pages. it needs to be a file and needs to be placedsomewhere on my site.
we can create a new AMP file and if we pass a topic name and ID, using discourse API, we can dynamically populate the values of that topic and get its posts and insert inthe AMP version of the page. but where can I host this custom AMP file in my discourse forum? I’m running discourse standalone on my site, not on subdomain.
Can anyone help me with this? happy to pay for this. @staff@team who should i tag so that my topic gets more visibility with the right people who can help me?
Hi @Faizan_Zahid, I’d recommend converting only questions’ pages, so they be indexed by Google/AMP cache, so when the user came from an AMP cache’s version, this AMP page will preload your existing PWA, then when the user clicks a link to another page, your PWA takes place.
@eduardogoncalves Thanks, but i still haven’t figured out the way on how to support my discourse topic pages to support AMP and have an alternate AMP version of a topic page. I am still finding somebody who can do this as a paid project or paid plugin for me.
@eduardogoncalves Many thanks for finally taking the initiative in trying support AMP for topics pages. May be somebody from @pfaffman or @angus can answer your question.
That view seems to contain files for google structure data, i think you could put a generic AMP supported topic layout page on it and populate the topic dynamically it with discourse API to feed in topic title, meta content, posts etc
Also, does anyone know how can i enable the google structure data feature on my discourse topics especially questions so that Google shows them in a nice snippet form like it does for other Q/A sites.
Hi there, just wanted to clarify — is this still an open job or a discussion about implementing AMP? If the latter, I’d be happy to move to #dev. If still an open job, please keep conversation limited to that.
This is an open job, we are trying to find someone who can do this as paid project (support AMP on all pages of discourse). if you know someone or could refer, please get in touch @justin on firstname.lastname@example.org