Drupal: specify the search engine description summary from back-end? - drupal

Is there any way to write in the Drupal back-end the text to display in the search engine summaries?
Currently, the beginning of my home page (usually menus...) is displayed. I would like to add a description instead.
Thanks

Google uses the metatag "description" when is it is available, instead of the content on the page.
There are a few modules that will help you create them:
nodewords
and
Integrated Metatags
Are the most popular. Using one of these modules will most likely be easier than hiding text with css, and from what I understand google ignores hidden text at least part of the time.
you can see this in action at our site
www.industrytrader.com
Here is a google search showing the how the custom descriptions show up.

You can't do this in the backend.
You should be able to this with regular Drupal theming. How depends on which search tool you use.

Related

Get rid of visual composer tags when sharing a wordpress page

I have created some pages in wordpress using Visual Composer Plugin. When I try to share those pages on social media sites it shows the visual composer tags as well. Is there any way to get rid of these tags ?
The tags come like
MY PAGE TITLE
[vc_row type=
my page text
The Visual Composer tags are simply arbitrary bits of text that the VS framework picks up and via JavaScript converts into the visual layout that you see.
To demonstrate this edit a page and click the 'Classic Mode' button and this will show you the 'real' content / markup of your page. As a result when sharing the page via social media that network looks for key info to grab for your page to then display.
All the major networks have some form of metadata that they look for first. They use these special tags to see what content you want them to use for your site. If these tags aren't present on your site, they will simply grab content from the page markup. Hence, the Visual Composer tags get picked up.
So, what you need to do is make your site use the necessary metadata / tags for each of the networks, and then populate these fields without these Vis Composer tags.
The easiest way to do this is to use an existing plugin which takes care of this for you. You typically find this in any decent SEO software. You'll in 99.9% of cases want an SEO plugin for WordPress anyway.
By far the most popular and in my experience the best SEO plugin is Yoast SEO. It's a free plugin which not only gives great easy to use SEO tools, it also allows you to set custom description fields for pages/ posts. This means that you can remove the VC tags, and so they will no longer show up on Search Engines and Social Networks. Plus depending on which version you use, you can also customise things on a per social network basis.
Facebook and Twitter etc all use heavy caching against shared content. So, if a page is shared and then edited, the same content will still be shared for a period of time. They don't actually grab live copies every time a page is shared. This can make it a little difficult when developing this side of your site.
Luckily, there is a tool to help with Facebook and here's the one for Twitter.

Plone - embed the content of an internal link in a page

I have a list of pages that have to appear in different places of my Plone. If I use an internal link, I see an HTML link in the page but instead of that I would like to see the embedded content of the linked page.
I've tried to install some link plugins (Smart Link, vs.alias...) but I'm not able to find the solution.
I'm using Plone 4.3.
I don't know any Plone Plugin, which satisfy your requirement.
A long time ago i wrote this small js to show internal links in a popup using Plone's prepOverlay.
In this case you can put a popup custom CSS class on the internal link with TinyMCE.
It simply shows the content area of the given URL.
$(function(){
jq('a.popup').prepOverlay({
subtype:'ajax',
urlmatch:'$',urlreplace:' #content > *'
});
});
I guess this is a good starting point for your own implementation.
You could think of a criterion like location, contenttype, etc., to distinct, which articles should be picked (in worst case use collective.flag), then fetch them with a collection, to give you the links as a resultlist, and set its view to all_content, a nice feature, introduced in the Plone-4 series.

How to select text in WebPreviewer?

When we click a document in Share, another page opens (document-details) with a preview of this document in flash.
By default, we can't select text (for copy/paste) in that preview, and I would like to know if this is possible and how ?
Perhaps I should use another previewer, or use the default one with a specific parameter ?!
I searched the web, and saw that this functionnality is present in flash, but can't find how to implement that with the WebPreviewer.
Any help is welcome.
Thanks.
The Media Viewers add-on on Share Extras provides an alternative document viewer based on pdf.js
Assuming you are using Alfresco 4.0, the add-on allows you to view document outlines, thumbnails and pages. In the pages you can select text and perform searches.
I am one of the contributors to this add-on and we would welcome feedback via the project site.

How to implement internal/powerful site search functionality ?

I have developed a site for our company, till now there is no search functionality in it. Now we are thinking to develop a site's search facility. Most of the times our page content comes from db. We have HTML editor by which our employee enter HTML content to db and later that content is shown on page but few things are still static, which means few things are hardcoded in the page, those are also important like menu content etc. now i want that when user put some word for search then that will search against database and file because that word may be hard coded in file. so guide me how to develop this kind of search where search will be based on file & database. if possible discuss here and also drive me toward article. thanks
As a starting point, the following MSDN code sample shows how to implement a search engine that can search contents (articles or posts...) in an ASP.NET website. It actually searches DB content...
Implement Search Engine in ASP.NET (CSASPNETSearchEngine)

Drupal. Using administrative title as browser title

I am using Drupal 6 and I got a lot of pages and content.
To save time, is there a way to use a page Administrative title as the title that is used in the browser (the HTML title tag: <title>)?
Thankful for all input!
Perhaps the Page Title module may be of some help to you. It allows for more control of the html title tag by setting up title patterns using tokens made available through the Token module
Drupal does this by default (at least on my install it is currently) - are you building these administration pages yourself or are they the default ones?

Resources