Search Widgets' title on ELGG 1.8 - php

I'm developing a social portal with ELGG 1.8 and I'm having some trouble with ELGG's default search engine.
What I want to do:
I need widgets' titles to be included in the search engine process/result list and they aren't by default. I don't know how to enable it.
What I achieved:
Now in search results widgets' descriptions are listed, but no titles yet.
Can someone suggest me something about how to solve this? I already read ELGG documentations from http://docs.elgg.org but I didn't find anything usefull.

Widgets are entites in Elgg. But they differ in such a way that they lack title and description. Your solution is to create a hook for the widget creation event and add title and description and add widget entities to search function. (it needs some major coding)
I am not getting how you are searching widgets based on descriptions?
The better place to ask these types of questions is Elgg community itself.

Related

Implement Custom Search Plugin for Joomla

I would like to implement a Custom Search Plugin for Joomla 3.5.1. I am new to Joomla and still busy getting my feet together.
I recently implemented a plugin that adds custom/extra fields (5 fields, free text inputs) to an article in Joomla 3.5.1. I followed their tutorial on how to get this right and so far so good. This plugin saves the extra/custom fields in the #__user_profiles table as per their tutorial. I could obviously save it to a different table but since I am learning, I kept it simple. This plugin works perfectly and I can capture the extra fields and saves successfully and the data is saved along with the article id being edited/created.
My next task is to create another site/front-end "search" (or smart search) plugin. This plugin must group the 4 field's values and provide them to the user in the front-end as selects/dropdowns.
Is there someone that can give me a lead on how I can archive this. Must I implement it as a search or smart search plugin? Is it even possible to archive what I am trying to archive?
This search plugin will only appear on one page but that I know I can config correctly once I've a plugin. Once user searches, the system must post back the selected options and I will search the "#__user_profiles" for any matching profile_key vs profile_value and collect all user_id (article_id) and get these articles from contents table and return this list of articles to the front-end as search results. Anyone can help me into the right direction?
I tried their tutorial of creating a search plugin but I seem lost, mostly I don't know how to dynamically provide my selects/dropdowns with that info saved in the #__user_profiles table.
Please assist in anyway possible...
I don't think that this might be done without modifying core 'search' task. My advise is to advise search view and include extra filtering, then write own 'search' task which allow you to read this data and provide additional results.
By writing just search plugin you can only extend search results by data which is stored outside default Joomla! tables but nothing more.

Drupal Commerce - Load drupal variations images instead of a select box

I am not a beginner with Drupal, but I am a beginner with Drupal Commerce. I have used Ubercart since this project.
Actually, If I create a product display, and then a few variations under this product, Drupal Commerce automatically creates select box with titles of the other variations. This is quite useful for almost all the e-shops, but not for this one. I need to replace select box with titles with just images, on which customer will be able to click on, and select variation type just by image.
I think that there is almost all the functionality in drupal commerce kickstart which I am using right now. But I do not know how to achieve the result. I have already tried editing product view, but was not able to make it working. I have also searched through core modules of drupal commerce in code, because I think that there should be just an array function with result of titles, but did not found something like this yet. I have searched whole internet to search for solution but did not found anything useful.
In some threads peoples use to solve similar problems with for example colors, to give the ability for customers to see the color squares instead of color select box, this is achieved by module, which some of devs written. Maybe I can edit this module?
Also, I have never ever created a module, I am a bit lost in drupal codes, but tried it before.
Here are the attachments for better vision:
http://ofca.sk/temp/printscreen.png,
http://ofca.sk/temp/result.png
Any advice will be greatly appreciated; I just need to be pointed to the right direction,
You can achieve this feature, the same way than Commerce Kickstart v2 does: http://demo.commerceguys.com/ck/tops/drupal-commerce-hoodie - note the color selector at the right middle.
This is done using Commerce fancy attributes module which allows you to render color or image selectors that come from a taxonomy:
This module provides a "Rendered term" attribute mode, that shows the rendered term instead of a radio button (degrades to a normal radio button when JS is off) on the add to cart form.
You've got a video demo of this module with a step by step to configure in http://vimeo.com/44308580
Thank you for an advice, but I still had not been able to make it working with fancy attributes module. I used another way using taxonomy and a few views, which done almost the same.
But I still think, It is achievable by Fancy Attributes.
Thank you again
I have created a module for this case: https://www.drupal.org/project/commerce_options_as_images
I use it on my projects.

edit magento navigation without coding

I just recently started working with a Magento site, and so far I'm really not liking it. I need to remove a couple links from the main navigation, but I can't seem to find the option for it. I've googled it numerous times, and all I see are examples for coding the navigation. My question is, can you edit the site navigation like you can with say wordpress? Seeing how it's a cms I'd imagine the user should be able to make changes to the navigation using some type of interface, and without having to pull the files from the server and edit them.
Also just out of curiosity, for anyone experienced with Magento would you say it's a good choice for a cms? I've heard of it before, but haven't seen many sites that use it.
No!, so you have three options here.
Learn how to extend the navigation with the 100's of tutorials out there, it is really not that hard, assuming you have a theme you just have to edit app/design/frontend/[theme]/default/template/page/html/topmenu.phtml
Get an extension to do it for you.
Hire a developer to do it for you, we create a static block with installer for the html which make it slightly more user friendly to update in the future.
Stackoverflow is a bad place to ask questions like this, it is aimed at programmers and doing such a procedure is rudimentary stuff, I really hope you are a client trying to be cheap rather than someone who claims they can run this site.
Edit: The cms features are ok but you need to be able to code to set them all up so the end user can make the changes with WYSIWYG.
If you don't want to code for navigation then you can do below things
1) Create category and then Display Settings=>Display Mode=>static block only and Display Settings=>CMS Block=>static block name. In static block u can include in page url or custom page
2)You need to hire developer
If you're using Magento and have an integrated WordPress blog, it's possible to design a completely custom menu in the WordPress Admin using the menu builder. You have complete control over what menu items you want and the hierarchy of each item.
To get this to work, you need to integrate your WordPress blog using WordPress Integration in full integration mode. Your Magento template also has to be using the default Topmenu block.

How to add multi-language support to opencart module

I've gotten pretty good at creating my own vqmods and it has allowed me to customize the cart to my heart's content. I am now at a point where I want to start supporting the other official language in my country.
I've searched and searched plus looked as some modules on the opencart extension store but still can't quite get a grasp on it. There are no posts that I could find in the support forums explaining how to go about achieving this. I have a module that creates a new tab on the product page. On this tab, I have use ckeditor to format the text and all works well.
I've seen it done where you go into a module to customize it and you can see extra buttons to add text for different languages. Just can't find any free modules that uses this so that I could muddle my way through making it work.
Can anyone help me to add multilanguage to my custom opencart modules?
I was able to figure it out by looking at another mod with language files in it.

Beginner question on Drupal

I am new to PHP and am doing some research on Drupal system to set up a website for my church.
Just want to know how to development a module on a page that display a list of articles? eg. display the article by category or tag etc.
Is there any template I can use or I will need to develop the template myself?
Thanks in advance!
Chris
Check out the views module. It lets you define your own rules for viewing articles (or other content types), by tag, category, or any arbitrary conditions you can think of.
in complement to #DanSingerman good answer For category and tags you should have a look at Taxonomy and also SimpleView to get some less advanced user interface when building your views.
If you're only displaying articles, you should go with Wordpress. Most Drupalistas would probably recommend Wordpress over Drupal for this usage.

Categories