Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom landing pages / Articles #1114

Open
ddfridley opened this issue Sep 19, 2024 · 0 comments
Open

Custom landing pages / Articles #1114

ddfridley opened this issue Sep 19, 2024 · 0 comments
Assignees

Comments

@ddfridley
Copy link
Collaborator

ddfridley commented Sep 19, 2024

This is a draft for a new feature. comments are welcome, I will keep updating this and remove this line when it is final.

Goal

Create a landing page, with a custom url on democracylab.org that lands on a page with the democracylab header and footer, and a custom article in between. Marketing will create Google Ad campaigns to drive people to these pages and click on a conversion action.

Admin

ability to mark a user as having the article-contributor privileged. Only people logged in with this will be able to create landing pages. Anyone, logged in or not,, can view landing pages.

Creation

democracylab.org/articles/new

Authorized users will go to democracylab.org/article/new - unauthorized users will see a not authorized message
The page will have these input fields:

Title - a string.

Content - a string in markdown format. And a WYSIWYG editor component like ckeditor will be used to make editing easy.

  • Inserting Images will be supported, and an image upload adapter will be implemented allowing authors to upload images - that are stored in DemocracyLab's S3 storage.

  • Conversion Actions - Article contributors will be able to place conversion buttons in the article with this type of text:
    <ConversionButton dst=\"https://www.paypal.com/webapps/hermes?token=6P883462V2684854H&mfid=1727202076268_f405055cffa1d&useraction=commit\">Donate Now</ConversionButton> which will show up looking something like this:
    image

    • dst is the url of the destination to go to. When the user clicks on this button, it will open in a new tab.
    • clicking on the conversion button will generate a conversion-button event for google analytics
    • to support detecting a conversion action for donations through a third party site - the donation page should be configured with a link to a thank you page - which can be another article created through this feature.

Permalink - will show the url for the article, it will be based on the title, but will have a unique id at the end. Before the article is published, the permalink will change as the title is updated. After it's published the permalink will not change.

Hidden a check mark - if an article is hidden, it won't show up in the /articles thumbnails, or in the sitemap. This is to support the need for 'thank you' pages after a donation or signup or whatever.

Publish button will store the article in the database, and it will be ready for viewing.

Viewing

democracylab.org/articles

If someone visits the /articles page, they will see thumbnails of all the articles, sorted by most resent first. 10 will be shown, if the user click on the "load more" button, 10 more will be loaded.

Clicking on a thumbnail will open up that page.

democracylab.org/articles/title-id

The title-id will be used to find the record in the database. The record will be sent to the browser for rendering by the
DisplayArticle component.

The title and content in markdown will be converted to HTML and shown, with the democracylab header and footer around it.
If the visiting user is logged in and authorized they will see an edit button that will switch them into edit more.
The name of the author and the publish date will also be shown.

Indexing

The article premalinks will be added to the siteindex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant