Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Criar links para páginas #17

Open
2 tasks
teles opened this issue Jun 30, 2016 · 0 comments
Open
2 tasks

Criar links para páginas #17

teles opened this issue Jun 30, 2016 · 0 comments

Comments

@teles
Copy link
Member

teles commented Jun 30, 2016

  • Criar rotas para as páginas existentes na api.
  • Colocar os links para essas páginas em algum lugar da home (no topo, talvez);

Como mencionado no gitter dá para pegar as páginas no mesmo endpoint dos posts :)

Exemplo de saída do endpoint:

@alisonmonteiro

{"found":1,"posts":[{"ID":2508,"site_ID":3584907,"author":{"ID":1365285,"login":"thehline","email":false,"name":"Heather R.","first_name":"Heather","last_name":"Rasley","nice_name":"thehline","URL":"http:\/\/thingsandthin.gs","avatar_URL":"https:\/\/0.gravatar.com\/avatar\/c19b763b0577beb2e0032812e18e567d?s=96&d=retro","profile_URL":"http:\/\/en.gravatar.com\/thehline","site_ID":1301502},"date":"2009-08-28T14:23:05+00:00","modified":"2009-08-28T14:32:21+00:00","title":"Comment Guidelines for the WordPress.com News Blog","URL":"http:\/\/en.blog.wordpress.com\/comment-guidelines\/","short_URL":"http:\/\/wp.me\/Pf2B5-Es","content":"<p>We want the WordPress.com blog to be a place not just for news, but for a conversation. We love to hear what you think about new features, stats, and events. We love to engage with you. After all, it&#8217;s the interaction between writer and reader that makes blogging so awesome.<\/p>\n<p>But to increase meaningful conversation, sometimes it&#8217;s necessary to reduce the not-so-meaningful bits. Here are the kinds of things we&#8217;ve been deleting in recent posts. Please avoid these types of comments: <\/p>\n<ul>\n<li><strong>One-word comments<\/strong> like &#8220;Cool!&#8221; or &#8220;Thanks!&#8221; While we appreciate the congrats, we&#8217;d love to hear more about what exactly you love, and (even more importantly) why. <\/li>\n<li><strong>Shameless self-promotion.<\/strong> Comments that contain links to your site within the body or otherwise encourage folks to visit your blog are a no-no. If you&#8217;d like to increase traffic to you blog, check out <a href=\"http:\/\/support.wordpress.com\/getting-more-views-and-traffic\/\">this page<\/a> for tips.\n<li><strong>Support questions.<\/strong> Because it takes a couple of extra steps to get your question in to Support from a comment, leaving a question about an issue on the news blog usually results in slower assistance. For the speediest service, please <a href=\"http:\/\/support.wordpress.com\/\">read the Support docs<\/a> and <a href=\"http:\/\/support.wordpress.com\/contact\">contact Support<\/a> if you can&#8217;t find the answer there.\n<li><strong>Multiple comments by one author.<\/strong> We&#8217;re glad you want to be engaged, but please give others a chance to speak, too. <\/li>\n<li><strong>Really long comments.<\/strong> Let&#8217;s just say that if you need to take more than three breaths to read your comment, it&#8217;s probably too long. <\/li>\n<li><strong>Personal comments about staff members.<\/strong> OK, so sometimes they make us blush, it&#8217;s true. Nevertheless, they&#8217;re not appropriate for the blog.<\/li>\n<\/ul>\n<p>We also delete comments that are written entirely in another language (there will be more <a href=\"http:\/\/fr.blog.wordpress.com\/\">language-specific<\/a> <a href=\"http:\/\/pt.blog.wordpress.com\">news<\/a> <a href=\"http:\/\/ja.blog.wordpress.com\">blogs<\/a> for that), as well as those that are difficult to understand due to serious grammatical and spelling errors. <\/p>\n<p>We hope you&#8217;ll appreciate and stand by these guidelines. Our goal is to make the news blog a place for both information and feedback. What you say matters. The more specific insights we hear from you, the better able we&#8217;ll be to adapt to your needs in future upgrades<img width='16' height='16' class='wp-smiley emoji' draggable='false' alt=':)' src='https:\/\/s1.wp.com\/wp-content\/mu-plugins\/wpcom-smileys\/simple-smile.svg' style='height: 1em; max-height: 1em;' \/><\/p>\n","excerpt":"<p>We want the WordPress.com blog to be a place not just for news, but for a conversation. We love to hear what you think about new features, stats, and events. We love to engage with you. After all, it&#8217;s the interaction between writer and reader that makes blogging so awesome. But to increase meaningful conversation, [&hellip;]<\/p>\n","slug":"comment-guidelines","guid":"http:\/\/en.blog.wordpress.com\/?page_id=2508","status":"publish","sticky":false,"password":"","parent":false,"type":"page","discussion":{"comments_open":false,"comment_status":"closed","pings_open":false,"ping_status":"closed","comment_count":0},"likes_enabled":true,"sharing_enabled":true,"like_count":158,"i_like":false,"is_reblogged":false,"is_following":false,"global_ID":"8bc78abbecaac6b10edbf6332e09bcc2","featured_image":"","post_thumbnail":null,"format":"standard","geo":false,"menu_order":0,"page_template":"","publicize_URLs":[],"terms":{},"tags":{},"categories":{"General":{"ID":54,"name":"General","slug":"general","description":"","post_count":7,"parent":0,"meta":{"links":{"self":"https:\/\/public-api.wordpress.com\/rest\/v1.1\/sites\/3584907\/categories\/slug:general","help":"https:\/\/public-api.wordpress.com\/rest\/v1.1\/sites\/3584907\/categories\/slug:general\/help","site":"https:\/\/public-api.wordpress.com\/rest\/v1.1\/sites\/3584907"}}}},"attachments":{},"attachment_count":0,"metadata":false,"meta":{"links":{"self":"https:\/\/public-api.wordpress.com\/rest\/v1.1\/sites\/3584907\/posts\/2508","help":"https:\/\/public-api.wordpress.com\/rest\/v1.1\/sites\/3584907\/posts\/2508\/help","site":"https:\/\/public-api.wordpress.com\/rest\/v1.1\/sites\/3584907","replies":"https:\/\/public-api.wordpress.com\/rest\/v1.1\/sites\/3584907\/posts\/2508\/replies\/","likes":"https:\/\/public-api.wordpress.com\/rest\/v1.1\/sites\/3584907\/posts\/2508\/likes\/"}},"capabilities":{"publish_post":false,"delete_post":false,"edit_post":false},"other_URLs":{}}],"meta":{"links":{"counts":"https:\/\/public-api.wordpress.com\/rest\/v1.1\/sites\/3584907\/post-counts\/page"},"wpcom":true}}

Acho que o esquema aqui é:

  1. Adicionar uma função tipo getAllPages na api javascript de posts
  2. Criar modelo, diretiva, rotas, controllers e view para página (tipo de post mesmo);
  3. Criar uma diretivinha só com uma ul com nome e links para as páginas e coloca-la no index
@teles teles added this to the MVP milestone Jun 30, 2016
@teles teles modified the milestones: MVP, v0.1-beta.2 Jul 11, 2016
@teles teles removed this from the v0.1-beta.2 milestone Nov 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant