Search Function

Permalink Browser Info Environment
Hi,
Does the keyword search scan all the staff directory entries as I cant seem to get it to work?
Thanks
Phil

Type: Pre-Sale
Status: Resolved
PhilYoung
View Replies:
PhilYoung replied on at Permalink Reply
PhilYoung
Any feedback on this question?
InformaticsInc replied on at Permalink Reply
InformaticsInc
Hi Phil,

Have you confirmed you have installed the latest version of the Staff Directory?
PhilYoung replied on at Permalink Reply
PhilYoung
As you can see if you look at my environment information I am using 1.0.3. It appears to search through the names only but I assumed it would search for keywords in the whole of an staff entry. Its on the home page of the web site that you have access to.
PhilYoung replied on at Permalink Reply
PhilYoung
I see on looking at the controller the code
if ($this->request->query->get('keywordInput')) {
            $keywordinputsafe = $this->MakeSafe($this->request->query->get('keywordInput'));
            $directoryList->filter('cv.cvName', '%' . $keywordinputsafe . '%', 'like');

Whilst I am no kind of coder I realise that this means the keyword search is limited to just the name within the cv. I would have liked a broader search function that included at least the address within the listing.
InformaticsInc replied on at Permalink Reply
InformaticsInc
Hi Phil,

Upon further review, you can actually update the search criteria to target any of those fields without needing an updated module.

You can do this by going to Pages & Themes -> Attributes.
Once there, scroll down to the section on "Staff Directory" and find what field you're aiming to activate for searching. Click to open.
When viewing the attribute detail page, you'll find a checkbox labeled "Content included in search index." Select that and save the record.
That field is now added to the targeted fields within the C5 search function.

Let us know if you have any more questions.
- Informatics Inc.
PhilYoung replied on at Permalink Reply
PhilYoung
Wow, that is great news. Thanks as always for your superb support. Don't forget to add this feature to the documentation!
Phil
InformaticsInc replied on at Permalink Reply
InformaticsInc
Thanks Phil!

That's a great idea re: adding to documentation - will do!

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
Advanced Maps (1.1.10), Afixia: Login Redirect (0.9.2), Formify (3.1), Handyman (1.1.1), List files from set (1.0.13), Login/Logout Link (1.0), Login Block (0.9.3), Login Block Pro (1.0.1), Login Dialog (0.9.7), Login Page Background (0.9), Page password (0.9.3), PDF Viewer (1.0.1), Seren (1.0.5), Staff Directory (1.0.3), Tallacmans Copyright (0.9.3), Twitter Feed Block Components (0.9.18)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
litespeed

# PHP Version
5.6.35

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, libxml, litespeed, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 90
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 16M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5
zend_optimizerplus.max_accelerated_files - 2000
zend_optimizerplus.max_file_size - 0
zend_optimizerplus.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.