10 years ago
5
Topic
Hello,

How do I manually set the description on search engine resaults page of one of my forms? Is there any field I could add in order to do that?

Thank you very much
Ofer.
Get a VIP membership
693 Posts
rpoy
10 years ago
2
Level 1
Hi Ofer,

In the Search Type you can first define the description using the Description button found in the header.  Then under the Configuration tab, you can set the Show Description to show Above/Below the results.

Hope that helps,

Randy

10 years ago
1
Level 2
But be aware if you have a multilingual site.
You have to enable the JText option to display the description in various languages or you have to create one search type for each language.
10 years ago
0
Level 3
Hi Randy and Jürgen,

Thank you for your reply. Actually there is no specific description, but what I would like to do is to automatically set an obligatory field (that the user typed) to be the description on the SERP.
For example, since my site is a one that advertises lecturers (http://www.profilu.co.il) I would like to set the obligatory field of "service_description" (that the lecturer typed by himself) as the text that will be shown on the SERP when someone is searching for the name of that lecturer.

Is it possible? If it does, I hope you could explain it with patience :) I'm still learning Seblod's wonderful system.

Many thanks,
Ofer

10 years ago
0
Level 1
Hello Ofer,

the description on the SERP comes from the meta description tag inside the <head> tag.

So you would need to inject the text from your service_description into the <head> section of your page.

To do this, you need to place custom PHP code like described in your Facebook image thread.

The Joomla API code for setting the meta description in a position override:
$document = JFactory::getDocument();
$document->setDescription( $cck->getValue('service_description') );

If you want to use the Code Pack plugin:
$document = JFactory::getDocument();
$document->setDescription( $fields['service_description']->value );


10 years ago
0
Level 1
You mean that a lecturer typed his own description, which will be shown on the search result page of a SEBLOD search. You dont mean the search engine results on Google search or other search engines but in your own search engine on your site, right? The abbreviation SERP is usually used only for Google, Yahoo and Co search results. This makes me a little bit confused. Can you clearify if you mean the SEBLOD search results or the search results from one of the major search engines (Google, Yahoo,...).
Should be the description visible for all as an normal text or do you mean as an meta description only visible for bots?
After that I am going to think over how can I help you.

Best regards Jürgen

Get a VIP membership