Skip to content

[9.0] [MIG] website_blog_share module - #291

Merged
pedrobaeza merged 3 commits into
OCA:9.0from
Tecnativa:9.0-mig-website_blog_share
Dec 13, 2016
Merged

pedrobaeza merged 3 commits into
OCA:9.0from
Tecnativa:9.0-mig-website_blog_share

Conversation

@cubells

@cubells cubells commented Nov 28, 2016

Copy link
Copy Markdown
Member
  • Updated README.rst

@Tecnativa

@cubells
cubells force-pushed the 9.0-mig-website_blog_share branch from c9d5079 to a93f57c Compare November 28, 2016 10:31
Comment thread website_blog_share/__openerp__.py Outdated
{
"name": "Blog Share",
"version": "9.0.1.0.0",
"author": "Tecnativa,"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cubells do not erase me from author 😄

@cubells

cubells commented Nov 28, 2016

Copy link
Copy Markdown
Member Author

Sorry @andhit-r

Check if all is right now.

@andhit-r

Copy link
Copy Markdown
Member

No worries @cubells. Tested functionally on runbot 👍

@yajo yajo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code OK. Functional not possible due to dead runbot, but I guess it should work fine.

<a class="oe_share_twitter" t-attf-href="https://twitter.com/intent/tweet?text={{blog.website_meta_title}}&amp;url={url}" target="_Blank"><i class="fa fa-twitter"/> </a>
<a class="oe_share_linkedin" t-attf-href="http://www.linkedin.com/shareArticle?mini=true&amp;url={url}&amp;title={{blog.website_meta_title}}" target="_Blank"><i class="fa fa-linkedin"/> </a>
<a class="oe_share_google" t-attf-href="https://plus.google.com/share?url={url}" target="_Blank"><i class="fa fa-google-plus-square"/> </a>
<a href="mailto:?body={url}&amp;subject={title}"><i class="fa fa-envelope-o"> </i></a>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to add whatsapp and telegram sharing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But that shouldn't be static... How do you tell your phone to share the content and make appear the share dialog? Is there a standard HTML way?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, all others are hardcoded. No standard so far, although all browsers have the option nowadays.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, they are hardcoded, but I thought that maybe there was a way to handle it. WhatsApp link will only work on mobile with it installed, so I see it as not a good choice. The other can be an addition indeed. I'm thinking that it would best to have a general website_share module (or even use any from standard - does it exists?), and that module can be improved for adding services. Of course, there's the need of allowing to configure in which services to share.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that would be great. Maybe we can add all this to roadmap to not block this migration.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, of course this is not blocking. They were just some thoughts.

@pedrobaeza

Copy link
Copy Markdown
Member

@cubells, please squash Andithia's commits together, as they are meaningless.

@cubells
cubells force-pushed the 9.0-mig-website_blog_share branch 2 times, most recently from 3147a9d to 782b2d5 Compare December 13, 2016 12:46
@cubells
cubells force-pushed the 9.0-mig-website_blog_share branch 2 times, most recently from fa938ea to 3f1c96c Compare December 13, 2016 12:51
@cubells
cubells force-pushed the 9.0-mig-website_blog_share branch from 3f1c96c to 811eb61 Compare December 13, 2016 12:54
@pedrobaeza

Copy link
Copy Markdown
Member

Merging as the error is not in this module.

@pedrobaeza
pedrobaeza merged commit 787cfc8 into OCA:9.0 Dec 13, 2016
@pedrobaeza
pedrobaeza deleted the 9.0-mig-website_blog_share branch December 13, 2016 13:26
@pedrobaeza pedrobaeza mentioned this pull request Dec 13, 2016
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants