Create a faceted search for custom javascript items using Views - drupal

Hi
I am trying to create a faceted search using Views. I have created several taxonomy terms for some custom javascript content nodes & want to give a visitor the flexibility to search through those nodes using those taxonomy terms.
I cannot us the faceted search module because my host does not allow me to install modules.
I know it can be created using Views, but I am simply unable to implement it.
Need help.

You want to add the taxonomy term filter, then "Expose" it, this will create a drop down menu for the user to search from.
It will probably take a lot of twiddling to get to work like faceted search (You may need to manually add the "Search box" as a header on the views page and direct it to itsself via a views argument)

Related

Separate drupal view filters from the results

I implemented a search index using Drupal Search API, and then created a view using that search index. In my view I added filters on searchable fields. My search is working very well.
However, my clients want to have the search filter controls in the sidebar and the search results in the main content region. But my filter controls and results are part of a single view. It is possible to separate them?
Drupal version : 7.26
I'm assuming when you talk about a 'view' you mean you are using the views module.
If this is the case when you edit the view under the advanced section there is an option called "Exposed form in block" - it does exactly what is says on the tin.

Panels linking to articles or pages

New to Drupal. Installed it, set Bartik theme as default, created a few pages with a menu. Now I would like to do something like this:
where the pictures with descriptions link to either other pages or articles. Each of them should have custom size.
What is the simplest way to do it?
For the testing I have created 4 articles on my home page, but obviously they sit one on top of each other. The same happens when I add blocks.
There is not better option to this than to install and use Views module. You can achieve exactly what you want using the nice UI it provides.
You need Views if
You like the default front page view, but you find you want to sort it differently.
You like the default taxonomy/term view, but you find you want to sort it differently; for example, alphabetically.
You use /tracker, but you want to restrict it to posts of a certain type.
You like the idea of the 'article' module, but it doesn't display articles the way you like.
You want a way to display a block with the 5 most recent posts of some particular type.
You want to provide 'unread forum posts'.
You want a monthly archive similar to the typical Movable Type/Wordpress archives that displays a link to the in the form of "Month, YYYY (X)" where X is the number of posts that month, and displays them in a block. The links lead to a simple list of posts for that month.
P.S - Views module is the most used and installed module in Drupal, hence, it will be a part of Drupal 8 core.

Drupal Views & URL Alias Override Issue

I have a taxonomy vocabulary called 'catalogue'. Within this, I have levels of terms. Some have sub-terms, some have nodes.
I have two views to handle these: One to show sub categories, one to show nodes, each with a filter applied based on the URL. If I go to sub-category/category-name, it would show me all the sub-terms in category name. If I go to product-category/category-name, I get a list of related nodes.
With no aliases, the view works properly on sub-category/%. The problem with this is that the generated links for the sub-terms aren't to the view, they're to the term page.
If I create aliases, it overrides the view and shows no results on sub-category/% pages and default node teasers on product-category/%.
Can I use aliases with views in this way?
Sounds like you want to re-write the output of the Field instead of creating aliases. If you're not familiar with that particular feature in Views, see the screenshot below from http://highrockmedia.com/blog/rewriting-drupal-views-output-custom-theming-css
Note that instead of creating a <div> wrapper, you can create your own link as needed. Hopefully this will help you get started in the right direction.

How to create a custom form in drupal

I need help on how to create a 'custom form' using the same fields provided by cck.
Drupal gives you the ability to add fields to 'nodes' and how to theme their output. But I would like to be able to post a data from my own form (that pops-up) and sends data to the drupal database using the same drupal cck.
How do I access the specific form inputs to add data to my content types ? because the default form is kind of 'ugly' and loads on different page(without ajax).
Help would be much appreciated
There are several routes you could go down.
The easier option is to use the Webforms module. While this gives you similar fields to cck, they are not exactly the same, and if you have a module that implements a specific cck field type, it won't be available to webforms.
The second choice is to write your own module using the forms api. This can mean a lot of learning, add it takes time to get up to speed, but ultimately you have total control over how your form will look and behave. The forms api doesn't give you exactly the same fields, but all the tools are there to create them. Sometimes you need to hack open a module to find out haw a specific field is implemented.
A third option would be to use cck itself. You could create a content type and add the field types you want on your form. You would them give users permission to create but not view or edit the content type. The form submissions would them be nodes on your website. This would make me slightly nervous, so make sure all your permissions are correct!
The second part of your question: you can use a theme file to override the appearance of most forms and make them pretty.
James

Splitting CCK Node Content into Multiple Pages in Drupal?

I've a relatively long customized content type in Drupal that I'm trying to split across a few pages. The page has a bunch of custom CCK fields and I'd like to do something like node-name/general/, node-name/pricing/, node-name/photos, etc. What are the modules and techniques I would need to do this? I'm still a relative newbie to Drupal so I'm not sure if this is something that could be done with Views, Panels, or something else.
I recommend using views for this. Views and CCK go together very well as a set.
In views you can add a new 'page' view then based on the url to get the correct record (you use the settings Arguments for this)
You can add separate views for the different sections in your cck using the 'Page settings' path.
Although this explanation will not in itself be easy enough to get straight up and do this in views. This is the way of doing it without writing your own module. Once familiar with views it should be fairly simple though.
A good place to start with views might be Here

Resources