Open Graph - Intro Image

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

Hi, did you try to test it with the edit on GIST site?

Jan
If you find Phoca extensions useful, please support the project
sotisanis88
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 May 2015, 08:53

Re: Open Graph - Intro Image

Post by sotisanis88 »

Please tell me what is GIST site, i use the code from Github, please would you like to check my administrator site? Please Helppppp me!!!!!!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

Hi, did you read this whole post here? If you need the same feature like componentegd described and modified, you need to customize the code like he did. Not sure what is the goal I see your administration?

Jan
If you find Phoca extensions useful, please support the project
User avatar
componentegd
Phoca Member
Phoca Member
Posts: 21
Joined: 31 Mar 2015, 22:39
Location: Rio de janeiro - Brazil
Contact:

Re: Open Graph - Intro Image

Post by componentegd »

sotisanis88 wrote:Please tell me what is GIST site, i use the code from Github, please would you like to check my administrator site? Please Helppppp me!!!!!!
Hi. Please, calm down and explain to us what you really need. I didn't got it.

Jan, did you have any advance in this topic by yourself?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

Jan, did you have any advance in this topic by yourself?
Hi, no, I finished the Phoca Cart Beta 2 yesterday, so now I have time to look at it. I will see if this can be implemented or it is in conflicts, etc. etc.

Will let you know.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

The question, how it should work, there are a lot of options:

a) you now you have added introimage in articles - then the best method is to have parameter in plugin to set only intro image

b) more variable way is: Try to find the introimage - if found, it will be used, if not the script will try to find the image in article?

I think b) is the better one?

Jan
If you find Phoca extensions useful, please support the project
User avatar
componentegd
Phoca Member
Phoca Member
Posts: 21
Joined: 31 Mar 2015, 22:39
Location: Rio de janeiro - Brazil
Contact:

Re: Open Graph - Intro Image

Post by componentegd »

Jan wrote:The question, how it should work, there are a lot of options:

a) you now you have added introimage in articles - then the best method is to have parameter in plugin to set only intro image

b) more variable way is: Try to find the introimage - if found, it will be used, if not the script will try to find the image in article?

I think b) is the better one?

Jan
I think option B is better.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

Ok, set it in next version, I will publish it soon.

There is the following rule:
- if there is image set in parameters of the plugin, such will be used
- if not then the image will be searched in intro image parameter of the article
- if not then the image will be searched in fulltext image parameter of the article
- if not found, then the image from article body will be used (if found)

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply