We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Selected Items module

Development and Programming

Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

I would have checked this out sooner, but the day you posted version 1.3 is the day I left for a two week vacation. I’m happy to see this version sitting here now that I’m back!

I just posted a question in another thread about the ‘www’ issue, mainly because of this module: Why does Control Panel redirect drop the ‘www’ if trailing slash is missing in URL?

This module is really the only way I can get the site I’m developing to work correctly, so anything I can do to get it working for everyone who will be updating the site is great.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

Just a note that the extension in version 1.3 still reads “1.2”

I’m also wondering why it might be that Selected Items is only working for me when the ‘www’ is in the URL - but an extension like Mark Huot’s “Live Search”, which also uses AJAX, works in the CP whether the ‘www’ is in the URL or not. Is there some small tweak that could be made to allow Selected Items to work in either case?

       
Andrew Munro's avatar
Andrew Munro
51 posts
17 years ago
Andrew Munro's avatar Andrew Munro

Perfect. Just what I was looking for, thanks

       
Rob Quigley's avatar
Rob Quigley
236 posts
17 years ago
Rob Quigley's avatar Rob Quigley

I just want to note that should dates (2008/02/25/) be added to the url segments on a page that has the selected items weblog tag in it – it throws php error messages at the top of the page.

Notice: Undefined index: 191 in /websitepath/system/extensions/ext.selected_items.php on line 135

It would be great if the errors can be surpressed.

       
Brent Cartier's avatar
Brent Cartier
87 posts
17 years ago
Brent Cartier's avatar Brent Cartier

Great Module Andrew!

What would really complement this would be an extension that adds a custom field type allowing you to choose a “Selected Items” collection from a list. This would allow you to associate the list with any entry, rather that with in templates only…

I managed to get this working to an extent using a text field that holds the Selected Items name, and embedding a “dislay selected list” sub-template.

I don’t have any experience creating extensions though… Anyone? I’d be happy to test it out 😊

       
Rob Quigley's avatar
Rob Quigley
236 posts
17 years ago
Rob Quigley's avatar Rob Quigley

Bcartier, I was thinking the same thing and trying to find a way to dynamically show different lists in a template. If it was Monday, show list A; if Tuesday show list B, etc.

       
Brent Cartier's avatar
Brent Cartier
87 posts
17 years ago
Brent Cartier's avatar Brent Cartier

Andrew - I just noticed a ‘bug’ with this module when working with EllisLab’s Multiple Site Manager.

I just tried it out using two sites and my list of selected items appear for the default site, not the other (no lists appear). As far as I can tell from the docs Modules are supposed to be common across all sites. Other modules installed behave in this way.

I’ll try to find something specific in code to be more specific, though I’m not great with writing modules/extensions etc.

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
17 years ago
Andrew Weaver's avatar Andrew Weaver

Thanks for the note. I started to add MSM support to the module - I can’t remember how far I had got to be honest.

I think I was setting it up so that selections created on one site did not appear on other sites. I judged this to be the desired behaviour, but are you saying that you would expect selections to appear globally across all sites?

       
Brent Cartier's avatar
Brent Cartier
87 posts
17 years ago
Brent Cartier's avatar Brent Cartier

My mistake - after looking through the module, it’s clear you’ve specifically created this to have different collections for different site id’s.

I guess I’m using it in a different way. I might suggest making that a configurable setting for the module.

Thanks again for a great module!

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
17 years ago
Andrew Weaver's avatar Andrew Weaver

You’ve made a fair point - I’d just not considered it working that way.

I suspect you can probably access the selections from other sites in the templates, it is just the module interface that checks which site you are on.

       
JasonDT's avatar
JasonDT
1 posts
17 years ago
JasonDT's avatar JasonDT
Just a note that the extension in version 1.3 still reads “1.2” I’m also wondering why it might be that Selected Items is only working for me when the ‘www’ is in the URL - but an extension like Mark Huot’s “Live Search”, which also uses AJAX, works in the CP whether the ‘www’ is in the URL or not. Is there some small tweak that could be made to allow Selected Items to work in either case?

To solve this issue I removed the javascript from the mcp.selecteditems.php file and referenced “ajax.js” and “selected.js” the same way they are back in V 1.1.

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
17 years ago
Andrew Weaver's avatar Andrew Weaver

The module gets the URL from the Control Panel > Admin > System Preferences > General Configuration > URL to the root directory of your site. You could try removing the www. from here if you do not use it on your site.

I will try and find a workaround, anyway.

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
17 years ago
Andrew Weaver's avatar Andrew Weaver

To avoid multiple version of the module floating around, I’ve removed all the downloads from this thread and set up a central page - Selected Items - that will always have the most recent version.

Andrew

       
AW4542's avatar
AW4542
7 posts
17 years ago
AW4542's avatar AW4542

Thanks for this excellent module. I am encountering an error, however, when updating a selection or creating a new one. I receive the following message: “An appropriate representation of the requested resource /ee/sys/index.php could not be found on this server.”

I see some earlier conversation about server path issues. I am running 1.6.2 and using Firefox 3.0.

Thanks for any help.

       
Emily Heath's avatar
Emily Heath
197 posts
about 17 years ago
Emily Heath's avatar Emily Heath

Hi to everyone who’s been active on this thread. This module/extension/plugin is brilliant, thanks Andrew - a donation will be coming your way shortly!

I’d like to add comments about two different points, first one in response to Jesse McCarthy’s post, which helped me figure out the reason why my client was encountering a problem with the module (thanks Jesse!).

  1. Left-hand Available Entries column is blank - SOLUTION

My client was suddenly unable to see the left hand column of selected items - the last time they logged in it had been fine. I was able to see them logged in as super admin. They got this error message:

Line: 1884 Char: 5 Error: Access is denied

Anyway, it was Jesse’s comment below:

* The JavaScript file doesn’t load because I’m Masking Access to the Control Panel. That results in a control panel URL like http://www.example.com/admin.php. The Selected Items control panel page uses the document relative URL “modules/selecteditems/selecteditems.js” to link to the script, which ends up pointing to http://www.example.com/modules/selecteditems/selecteditems.js instead of http://www.example.com/system/modules/selecteditems/selecteditems.js (where “system” could be another name chosen when installing EE).

which pointed me to the problem. Before we went live the client was using a development URL, and they did not switch to using the new URL for the control panel when we went live with the website. So really I’m just confirming that the module does not work correctly unless the URL is the same as that entered into the General Configuration of the Admin area (as is stated elsewhere in this thread).

  1. Administrator can’t access Selected Items in control panel - SOLUTION

To make sure your administrator can use the “Selected Items” module, make sure that they have the right privileges first, E.g.

Here: Admin › Members and Groups › Member Groups › Edit Member Group › Administrator

Control Panel Area Access > Can access MODULES page [yes] Module Access Privileges > Can access module: Selecteditems [yes]

       
First 2 3 4 5 6

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.