Hot answers tagged

6

The "limit entries by status" setting for the Relationship field controls what entries are available to select in the control panel - not what entries will display in your templates. So if you have the field set to "any status", and you've selected child entries with both "open" and "featured" statuses, then your tag will need an explicit status parameter: ...


4

I think you're on the right track. I'd create a Matrix column that is a dropdown or multiselect. Then output those variables as CSS classes or data attributes and handle the sorting on the client side using something like this: http://mixitup.io/#Documentation. <ul id="filters"> {your_matrix_field} <li data-filter="{matrix_select_col_name}>{...


4

Try Reefine: http://devot-ee.com/add-ons/reefine. It allows you to filter by almost anything and supports the Store custom field.


3

With Low Search, you do not "form a URL", but rather you create a search form that you can submit, which will generate the URL for you. How you create the elements in your form depends on what types of filters you will need and how you set up your channels and fields. For the alphabet, you can use the Field Search filter, but you'd have to hard-code the ...


3

You'll need to write a custom fieldtype to achieve this - I can't think of any existing fieldtypes that could accomplish this for you. So in your fieldtype, you'd query exp_playa_relationships for all parent_entry_id's where where child_entry_id was equal to the entry_id associated with ee()->session->userdata('member_id'). (Not sure how Profile:Edit ...


3

Yes you can. I just tested with this code: {exp:channel:entries search:pt_assets="not IS_EMPTY"} <h1>{title}</h1> {/exp:channel:entries} <hr /> {exp:channel:entries} <h1>{title}</h1> {/exp:channel:entries} and definitely got only entries back that had Assets in the first set of entries; and all entries in the second. I hope ...


2

Personally, I think using categories would be a nightmare. Especially when you consider how frequently, this type of data is updated. I'm not certain where you are getting your data from, but the best option is to store it in new data table within your EE install, and query it. We haven't had to do lots of countries, but we had to do a State -> County -> ...


2

Low Search http://gotolow.com/addons/low-search Assuming your types/times are categories (which it sounds like they are)... In your {exp:low_search:results} tag, you should use require_all="category". This will make sure the results only match entries with all the selected categories. Your checkboxes should all be named category[]. {exp:channel:...


2

Actually, Playa is doing everything correct here. The parameters you pass on {exp:playa:parents} are for defining what parent entries you want to get; they’re not meant to describe the child, which is what you’re doing with url_title. If you have a URL Title for an entry and you want to get the parents of that entry, you first have to get the child entry ...


2

Render out the pagination in one block, framing the 2 styles of pagination: {paginate} <div id="top-pagination"> Showing results {abp_entry_from}-{abp_entry_to} of {abp_total_entries}. Show: 10 20 30 per page </div> <div id="bottom-pagination"> {pagination_links} <ul> {previous_page}<li><a href="...


2

Sounds like Numeric Matching with the search="" parameter may help. This is a parameter for the channel:entries tag. If you have a field containing numeric data, you may use greater-than or less-than operators to search through them. search:numeric_field="<20" search:numeric_field=">20" search:numeric_field="<=20" search:numeric_field=">...


2

We're using checkboxes for the categories, but I'm assuming it's similar... In the search form: {categories show="1|2|3|4" limit="4"} <div class="checkbox"> <label><input type="checkbox" name="categories[]" value="{category_id}" {checked}> {category_name} Products</label> </div> {/categories} Then in the ...


1

One method is to check which checkboxes are checked, build a URL containing multiple tags which is recognized by Tag (see the Tag documentation about multiple tags in the URL when using {exp:tag:entries}), and redirect to this URL. Here's an example: Assuming you have these three example tag checkboxes: <input type="checkbox" name="tag[]" value="foo">...


1

Why not just order the matrix field by the date column in descending order and apply a limit of 3? That would give you what you need.


1

Low Search doesn't have specific support for Channel Files (CF), so whether the two play nicely together depends on how CF stores its (searchable) data. If CF stores its data in the native channel_data table, then you can use the Field Search filter to search for substrings like .pdf etc. If it does not, then a custom filter/extension would be needed to add ...


1

Depends on what you're filtering. Low Search will filter channel entries. Use the Categories filter to filter by (sub)categories; You can use the Keywords filter in conjunction with the Field Search filter to filter by keywords and the File Type, if the file type is stored in a dedicated channel field. Whether you can “list them based on their category” ...


1

Date Field Filter works with the {exp:channel:entries} tag, so the native use of {date_heading} in {exp:channel:entries} should apply here. See the EE documentation. However, {date_heading} is for entry_date, not a custom Date field. How about PHP for this then? Basically, display a heading when the first occurrence of a year is encountered, and store it in ...


1

The problem with your second block of code is that the option values for the category select field is a URL, when it should be category data, such as a category_id, category_url_title or category_name. Let's say your first search with the first dropdown sends you to http://mysite.com/event/results/search&category=sports On this result page, you can ...


1

My recommendation would be Channel Images from dev demon which should achieve what your looking for.


1

From a 50K foot view this approach seems feasible. Obviously when you have that many different nested relationships, you'll need to be conscious of performance and the number of queries on any given page, but that's something you can somewhat manage with your nesting/embedding technique and caching. I'm working on a site with a similar problem where we have ...


1

Reverse Related entries from the Author channel back to the blog articles channel should work. But, since EE 2.6, the {reverse_related_entries} tag has been replaced with the new Relationships field -- so you'll need to download the older EE 2.5 documentation to see the official examples. But, basically the reverse related entries syntax, which goes inside ...


1

There's a great 2-part walkthrough of a setup like this on the Meta Q site that would be worth a read.


1

You can use the safecracker syntax of {field:field_name} to get it to display exactly as it does in the CP / Publish page.


1

Looks like it should work at a quick glance. Since it seems that the Channel Search might not work with Title, I think your 2 options are create a new field for Product Name or you can write your own mysql query / plugin to do the search for you.


1

You don't need addons for this. Try to use addons just when you really need them. <form name="catmenu" action=""> <select name="selcat" onchange="location=document.catmenu.selcat.options[document.catmenu.selcat.selectedIndex].value;"> <option value="">Filter by Category</option> <optgroup label="group 39"> {exp:...


1

If I understood you right, I think it's easier to setup your categories this way: guitar guitar brand 1 guitar brand 2 amplifier amplifier brand 1 amplifier brand 2 This way, you can filter them by its parent categories.


1

I was just doing something with GW Categories that involved showing child categories. In the end I ditched it in favour of using the query module. You could run a query something like select * from exp_categories where parent_id='CURRENT CATEGORY ID' and pass it your category IDs as required


1

One approach to only show comments on posts that have been authored by the logged in user is to use a conditional comparing logged_in_member_id to author_id. Do this inside your channel entries tag pair and embed the comment entries if the condition is met. Simplified example: {exp:channel:entries channel="blog"} <h1>{title}</h1> {if ...


1

I do this using great addon from Rob Sanchez http://devot-ee.com/add-ons/dynamo (going to use default EE search, but dynamic parameters are not passed when using pagination). not sure if you are ok with submitting the form with your inputs, but you can show (even select) your filter criteria.. Let us know


1

You can't do this natively with Playa filters - you'd have to hack-in and change how it builds the query there (which would not be upgrade-safe).


Only top voted, non community-wiki answers of a minimum length are eligible