Topic-icon Open Graph Object -> Custom Object type

Active Subscriptions:

None
10 years 6 months ago #37914 by petboh
Hello,

sorry for creating new topic, but it can help to others, if they will meet same question.

In Open Graph Object, I want to set-up Custom object. So left side of set-up is clear, can you help me with right side?
So I have component for recipes and I want to set-up action for it, but I need to create object.

So on right side is: URL Query Parameters
1.) if I use sh404sef should I use SEO URL or com_yourecipe for "option"
2.) I want to have for all recipes inside that component, it mean, that I will set-up only option and everything called from com_yourecipe will be included?
3.) If I want use my new parameter "ingredients" which I set-up in FB, I need to add manually that parameter to each site?
for example: {SCOpenGraph ingredients=meet, eggs, olive oil...}

Second setup is Open Graph tags
If I understand correctly this is something which will be published in case of this action, but statically...

And last is, do you know some plugin, or way how to add buttons in to editor for {SCOpenGraph xxxx=} (best could be something, where I can define and then on end of writing, I will just choose from drop down menu, post it and fill parameters) - and may be some automate, which can take care about my page :D :D :D sorry, I am so lazy

Thanks for answer PeterB
The topic has been locked.
Support Specialist
10 years 6 months ago #37933 by alzander

1.) if I use sh404sef should I use SEO URL or com_yourecipe for "option"

You should use the raw query parameters after they've been un-SEO'd. Each parameter should be on a new line, like:
option=com_yourecipe
view=recipe

2.) I want to have for all recipes inside that component, it mean, that I will set-up only option and everything called from com_yourecipe will be included?

You could do that. However, I'd recommend targetting just the recipe views. My guess is that there's a category view, and other types of views. You probably should try to make your custom object target specific pages, like just the recipes themselves.

3.) If I want use my new parameter "ingredients" which I set-up in FB, I need to add manually that parameter to each site?

Yes, you'd need to add that to each recipe like the following:
{SCOpenGraph ingredient=ns:olives}
The ns: is important to specify your site's Namespace, since ingredients is special for your site/application.

Second setup is Open Graph tags
If I understand correctly this is something which will be published in case of this action, but statically...

Correct, the tags you specify there will be used on every page that matches the object.

And last is, do you know some plugin, or way how to add buttons in to editor for {SCOpenGraph xxxx=} (best could be something, where I can define and then on end of writing, I will just choose from drop down menu, post it and fill parameters) - and may be some automate, which can take care about my page current/big_smile current/big_smile current/big_smile sorry, I am so lazy

Not yet. We have plans to make a button or some other feature to easily set Open Graph tags in an article without having to use the {SCOpenGraph ..} tags, but it's not there yet.

I hope that helps get you going,
Alex
The topic has been locked.