Silverstripe: Fulltext search? - silverstripe

It seems that if you install Silverstripe 4.3 with a standard template (I tried several) there is no onsite full search. The input box is not appearing. What are the necessary steps to activate the onsite search?

There's a module that provides full text search of a SilverStripe CMS website. It also has a quick start guide that should be a sufficient starting point:
https://github.com/silverstripe/silverstripe-fulltextsearch/blob/master/docs/en/01_getting_started.md#quick-start

Related

Custom code in Wordpress: what are the programming limitations?

I have a website (www.easterisland.travel) that I'm considering converting into a Wordpress site. Why? Basically for the following reasons:
1: To use a CMS, so that I can teach others to further add content to the website without having programming knowledge. I would built the advanced pages myself though, and the pages that others would manage would be simple information pages.
2: Access to all of these great plugins, for example the "similar pages" plugin at the bottom of each page (which I haven't found as a independent solution for raw webpages), which is just fantastic to keep people reading.
At my site I have lots of custom stuff like booking systems that I've created. There's an AngularJS shopping cart (www.easterisland.travel/tours/), instant online booking and payment (using PayPal's Express Checkout) etc. There's a page for cruise ship shore excursions (www.easterisland.travel/cruise-ship/) that's automatically generated from database data, and I've created a system where I can add cruise ships and shore excursions (adding correct itinerary, price, info etc). Passengers can also log in and communicate to other future fellow travelers within the same group, and get organized for meeting up on the tour day. I have many more plans to go as well, for example showing hotel info, displaying TripAdvisor data (using TripAdvisor API) etc.
The million dollar questions are:
1) Can all of this be achieved in a Wordpress site? Can I add all of these systems using this platform? What are the limitations?
2) Would it make sense to change to Wordpress?
3) What implementation should be used? I don't want my code to be removed or altered when Wordpress is automatically updated.
Thank you!
Wordpress doesn't have any limitations, you can extend its default functionality if it can't accomplish what you need with either plugins or custom code. and having a framework is always better than building from scratch in many ways.
HOWEVER, wordpress was originally design as blogging platform, and if you plan on extending its simple functionality you should take some time to understand how it works to properly integrate your custom needs or things could get ugly,
If you know how to interact with the database, you can easily do what you want, there are built-in functions you can use according to your needs for database interactions or just create your own if it doesn't fit well very much.
just a quick overview with wordpress database.
wp_posts - where sites main front-end data are stored, like posts, pages,
wp_postmeta - storage for additional data that are stored on wp_posts
wp_comments - storage for user interaction data for wp_posts like comments, I've also used these before to store user/admin messages.
wp_terms - use for dividing/categorizing wp_posts data, like categories and tags,
wp_options - use for back-end storage data and configuration.
You'd need to check out these functions as you're probably will encounter them in the future
https://codex.wordpress.org/Function_Reference/add_post_meta
https://developer.wordpress.org/reference/functions/get_post_meta/
https://codex.wordpress.org/Function_Reference/update_post_meta
https://codex.wordpress.org/Function_Reference/register_post_type
https://codex.wordpress.org/Function_Reference/register_taxonomy
https://codex.wordpress.org/Class_Reference/WP_Query
If you also need database interaction, check out https://codex.wordpress.org/Class_Reference/wpdb
and for front-end implementation, check this out https://developer.wordpress.org/themes/basics/template-hierarchy/, though I never used any other wordpress theme except Genesis Framework for these past 5 years as I never had to mess too much with HTML codes and almost everything can be customize using actions & filters. I advise you to use Theme Framework (and remember to always use CHILD THEME to be safe from Main Theme upgrade)
You might also want to check -> https://github.com/WebDevStudios/CMB2 (I prefer to use this than Advance Custom Fields plugins.)
Booking system in wordpress is a bit complex, I've successfully use gravity form as booking system with AngularJS + Ajax, but never tried a custom one from scratch and don't have a chance to use booking plugin as never encountered a cleint that wants a simple booking system.
Just to answer your question.
Yes, It can, for comparison, take a look at woocommerce plugin functionality and features, I believe thats more complex than what you need.
It would make sense to convert a site built from scratch to any CMS (wordpress is an option), the CMS is up to you, though its better to use the one that you know more for easier integration and customization.
You can use your child theme "functions.php" for extending your custom functionality, like create a folder in your theme for all your custom code and include/require it on your child theme functions.php or better create your own plugin to properly integrate them, you can divide the functionality in plugins, like plugin for booking system and plugin for payment functionality. check this out https://github.com/hlashbrooke/WordPress-Plugin-Template
I hope this would give you an idea.
Yes you can do all that. You will need someone with knowledge in wordpress themes and plugins but it is possible. The beauty of wordpress is, that you can write "bare" php code, and the small amount of functions to interact with wordpress are well documented.
Wordpress itself, is structured "simple" (compared to fancy tools like magento for example). So all it manages, are posts / pages / ... which, more or less derive from the same database object. You can add functionality to those things (for example, make posts cruise ships and other posts to shore excursions) or you can add your own database structure on top.
The theme system is bare php code, so you dont have to crawl through a thousand lines of xml codes to adjust little things.
Wordpress power derives from its simplicity of the "core wordpress" and the feature volume based on all those plugins. I believe alot of people would say, that you should go for a custom solution (based on symfony for example), or a CMS that already comes with more of your desired functions (like magento which has the checkout / paypal included), but I (as a wordpress fan) would see no problem to take wordpress.
I have never failed to find a plug-in to do what I needed! I manage three WordPress sites - although none of them is commercial. (Yacht Club, Cycling Club and Political Party EDA).
There is a plug in that allows PHP on any WordPress page, but it means that the Editors all have to write using the text (HTML) view rather than Visual tab. I found that useful for some of my pages - and I'm the only "Editor."
There's also a plug-in that allows you to code PHP in Widget. That doesn't have the above disadvantage.

How to add schema in a Wordpress site for Google knowledge graph?

I'm confused to add schema in my Wordpress site for Google knowledge graph. I would like to show my knowledge graph in Google like - Royal Caribbean and ASOS etc. I'm not a brand like that as well as don't have Wikipedia Page too. But, I would like to add this information - my company name, founder, founded year, content, social media links etc.
Someone suggest me for this.
An easy way to add microdata to your WordPress site is using a plugin, you can find some interesting plugins for this purpose here:
https://wordpress.org/plugins/tags/microdata
Another option to add structured data markup is adding the snippets "by hand" on a contact page or in a text widget.
For more information have a look at schema.org/docs/gs.html and at developers.google.com/structured-data/customize/overview.
Regards.
The best option is to use the de facto standard concept schema:LocalBusiness and its properties from http://schema.org/LocalBusiness. On the bottom of this page, there are examples for implementing organizational data as structured data in serializations such as HTML5 Microdata, RDFa, and JSON-LD.
Once you implemented the code, you can test it at https://search.google.com/structured-data/testing-tool to make sure that it contains no errors and it is ready to be indexed by Google.
Install it in the usual way by going to Plugins > Add New and searching for Schema. Click Install and then Activate. Once the plugin is installed and activated, go to Schema > Settings to start adding Schema markup to your site.
You can validate your schema markups by Google's Structured Data Markup Validation Tool.

Create in MS Word for Sharepoint Wiki

Actually I was searching for a RTE which has the below features :
change tracking.
Easy Copy from MS Word
Copy from word feature is available in most of the RTE's in the market but none of them are perfect, I like to have the feature as in sharepoint blog where you can create a blog post in word then add it in sharepoint.
Is there a alternative or set of tools/steps I can use to achieve this,
Thanks.
Get in touch with Native Documents. They've been working on a web-based RTE with exactly the features you describe.
Disclosure: I have an interest in this.

Drupal: Translating the Contact-Form

I want to use the default Drupal contact form for my website, but the labels("Your Name","Category") are in english an I need them in german.
Maybe I'm blind but i couldn't find a way to edit these labels.
So I googled it and found this Module: https://www.drupal.org/node/1396984
I installed the module and followed the guide, but it seems that I can only localize the categories or the auto-reply, because I still see english lables.
Am I doing something wrong, or is there just no easy way to change those lables?
thanks
I'm using the latest Version of Drupal 7.
You need to install the i18n module - https://www.drupal.org/project/i18n (if you haven't already). Then you can translate those strings ("Your name","Category") from the translate interface located at http://yoursite.com/admin/config/regional/translate/translate *
Note: If the strings don't appear in the translate interface try displaying the page containing them (the contact page) in a language other than the default one. This will register them for translation.
* replace yoursite.com with the address of the site you are developing
P.S. If you are going to make a multilingual site, I suggest you enable all relevant i18n submodules and import the drupal core translation for the languages you need from https://localize.drupal.org/translate/downloads
I believe what you need is the Localization client.
https://www.drupal.org/project/l10n_client

Drupal 7 - Adding a cycle of images on each page

Im fairly new to developing in Drupal, i am using the 7.x code.
I have a site that i need to develop, which has a cycle of images on each page.
I am usually a wordpress developer, and how i achieve it there is a gallery plugin, then insert the shortcode on each page.
Is there something like this in Drupal, or could someone suggest something similar that i could use?
Cheers,
Drupal 7 is a bit shaky at this stage, so some of the module I listed here might not be suitable for production environment.
-Gallery Formatter
-Colorbox
are the two modules that do the trick for me. Search in drupal official site
To make gallery appear on all page, You can load the gallery in the block.
You could create the site at drupalgardens.com and see how they do it. They offer the required functionality or if you are just starting you could start there and export the site later to run it on your own server.
It took me a while to figure the right search query fot this myself, but I think what you are searching for is called a carousel.
Just browse the Drupal Module search of the keywords carousel.
I found the first one jCarousel doing exacly what I wanted, when combined with the Views Module.
Sometimes it's called a rotator or slider and additionally you could check out this Drupal comparison page

Resources