Plone 4 - customize "related items" screen - plone

how can I customize the "related items" screen? I want to display the date (effective) and make the list to appear in chronological order.

Related items is an Archetypes field declared in Products.ATContentTypes package:
https://github.com/plone/Products.ATContentTypes/blob/master/Products/ATContentTypes/content/schemata.py#L38
You could override the template of the widget, in your own content type, or in all existing Plone contents via monkey-patching:
https://developer.plone.org/reference_manuals/old/plone_3_theming/buildingblocks/skin/templates/customizing-at-templates/customizing-widgets.html

Related

Filter View Reference results in paragraph based on taxonomy term selected in Drupal's backend

I have a paragraph named "Car Slider" and a Content Typ "Cars".
The content type consists of different fields like name, make etc. as well as a "Tags" taxonomy reference.
The car slider paragraph consists of fields like headline, description, and a Views Reference to display cars in a slider.
Right now I have different view displays to display only cars with specific tags in the slider, but it sounds unnecessary to have tons of displays, instead I'd prefer to have a dropdown in the backend editor the praragraph where I select the relevant tags and the view filters results to only that tag.
I want to use this to display sliders consisting cars of different categories/tags.
I am aware of the Expose Filter option, but this exposes the filter to the frontend/end-user, but I want to expose it to the admin who decides which content slider to add to the page.
I couldn't find a way to achieve this so far. Can anyone tell me if this is possible and how to achieve this? Thank you!

Plone - How can I use faceted navigation?

I have a plone site and I have added a content type called game. There are now several games that have been added and that can be viewed. I would like to use the eea.facetednavigation module, which you can read about here: http://plone.org/products/eea.facetednavigation.
The idea behind faceted navigation is that one can quickly filter all the objects, which is like doing a search. For instance, I place all my games in one of about twelve categories according to genre. I have options like "adventure" "action" "puzzle" "roleplaying" and so on.
I would like to have an area on the side where the user can click "puzzle" and then have the page display only puzzle games. I would also like to duplicate this behavior elsewhere so the user can filter by price. Of course if the user filters on both, then that should work as well.
I'm imaginging about four or five different facets that the user can filter on. Now, I have placed eea.facetednavigation in my buildout.cfg file and when I log in as "admin" I see the option under my Games tab (where I have added some games) to enable faceted navigation. However, when I do this I get a useless screen that I can't understand and that does not allow me to set up the kind of filtering criteria that I have in mind. I have attached a screen shot.
As you can see on the screen shot, faceted navigation is giving me options for "video link", "video file", "page", "news item" and so forth. None of these are the fields associated with my games. If I cllick "more" on that portal type, I see an option called "games" -- because I have created that content type -- but selecting it doesn't give me the behavior I want.
It is hard to see in the screen shot, but the "Games" tab is highlighted at the top. That is the folder in which I have enabled faceted navigation, and that is the folder in which I have added several games.
I've tried reading the documentation on faceted navigation -- http://plone.org/products/eea.facetednavigation -- but I've been mulling it over for an hour and I just can't make head nor tail of it.
Assuming that 'price' is an integer-field of your contenttype, you need to enable it as an index in the portal_catalog in order to make it available as a criterion in an eea-searchform.
So, first register the Index in profiles/default/catalog.xml like this:
<?xml version="1.0"?> <object name="portal_catalog" meta_type="Plone Catalog Tool">
<index name="Price" meta_type="FieldIndex"> <indexed_attr value="getPrice"/> </index> </object>
And then in th eea-searchform add a widget hitting one of the plus-icons, choose f.e. the kind 'Range' and as Index choose 'Price'.
Proceed similar with your other fields, choose checkboxes for your category-widget, etc.
If you categorized your games using the standard Plone "Tags" functionality (on the "Categorization" tab if you edit content), then you should be able to simply add a "Select" widget and set it to search the "Tags" index (under "Catalog index to use for search").
I agree that the facetednavigation UI is rather obtuse.
Just add a widget of type "Checkboxes" and choose "Subject" from Catalog Index and choose "Yes" on "Catalog Get unique values from catalog as an alternative for vocabulary". This should gives you a list of checkboxes with the categories. Also add an hidden (you can hide it clicking on the eye icon) widget selected on the "games" type, so results are pre-filtered on that content types so "Subject" widget contains only the games category and not all from the site.
For the prize, follow the Ida answer.

Filtering my products on drupal commerce

I have imported 5.000 to my drupal-commerce website.I want the user to be able to navigate fast on all of these products,so I just figured out that I need to make somehow a filter or a search that when the user chooses/selects some of the features of the product the result will be only the products with these features.How can I manage to do this on Drupal 7 and Drupal Commerce(Commerce kickstart?)
The short answer is that you'll probably want to use the Views module. You can create a Views page display for your main products page that loads the Commerce product displays. Since the product displays don't actually contain the field values that you'd want to filter (they're on the referenced products), you'll need to add a Relationship to the products. That'll let you add filter criteria for product fields (exposing them will make them visible to the user). If you want the exposed filters to appear in a sidebar, use the "Exposed form in block" option on the Views display to create a filter block that you can add to your sidebar region on Administration » Structure » Blocks (/admin/structure/block).
Most people who have used Views over the years are used to outputting the Views result using Fields and then customizing the display of the fields with template files or extensive configuration, etc. However, you can create a custom view mode for your product display content types and give them layout with Display Suite. You can output those custom displays in Views using the Content Format.

how can I imlement muliple upload fields in drupal, each with its title and drop down category select box?

Basically I want to implement the FILE UPLOAD's box shown in this link
http://laups.org/comp_2010/upload.php
You can do this with CCK 3's Multigroup module, FileField, and CCK's Option Widgets module (or Content Taxonomy if you need to reference taxonomy terms in your drop-down menu).
CCK 3 isn't stable, but it's not particularly volatile, either.

Changing order of fields in Drupal's content type

I am using Drigg on Drupal 6.17. Drigg has a content type called as "Scoop". I try to change the labels and order of fields. Normally, this is done in Content Management > Content Types > Manage Fields . But some fields that are shown in Create Content screen are not shown in Manage Fields screen.
The screenshot of Manage Fields is here:
The screenshot of Create Content view is here:
The first three fields (Submit the scoop as.., Scoop's URL, Scoop) in Create Content form are not shown in Manage Fields view.
I would like to ask the reason for this. They must be defined somewhere else. Where is it?
Manage fields is for editing CCK fields that you have added. Other fields from different modules often have a weight setting that you can change to move the field up and down, which you would get to from the main content type editing page.

Resources