Here's what I'm trying to do.

I'm using organic group's default view that shows unread messages in a user's groups. I want to create a link from the node-type column on that view to pages that list the most recent nodes of that content type. So a poll would link to a page listing all the most recent polls etc.

The problem I'm having is that the replacement pattern for the node:type outputs the human readable name for the node not the machine readable name. So my view for showing recent posts by type uses a node:type argument expecting the machine readable name and doesn't work with the human readable names.

Is this a bug? Or I'm I configuring something wrong? I'd like it so that the replacement pattern should be able to output both the machine readable name and human readable name for any given content type.

Comments

mandclu’s picture

I'm running into the same thing. There definitely should be a way to get the machine readable version.

mandclu’s picture

For my purposes, I'd be happy if there was just a token I could use in the output rewrite field. Something like [type-raw] though I have no idea where I would go to create that. If someone could even suggest where to add code to support that, I'd be happy to attempt it myself, post the result here.

esmerel’s picture

Status: Active » Closed (fixed)

This issue is a year old, it's likely either resolved or no longer relevant.

michaelfavia’s picture

Version: 6.x-2.6 » 7.x-3.x-dev
Assigned: Unassigned » michaelfavia
Category: support » feature
Status: Closed (fixed) » Active

Unfortunately it is. Working on this.

michaelfavia’s picture

Status: Active » Fixed

Wow this IS possible now but i had to find it int he content type handler to find it in the field UI. :)

It is under MORE once you add the field to the view.

michaelfavia’s picture

Issue tags: +Needs usability review
StatusFileSize
new554 bytes

@UX people: Can i get a witness?

Attached patch moves it out of the MORE box into the main area like the other fields. It was undiscoverable in the MORE fieldset and is the only option for this field.

michaelfavia’s picture

Title: how access machine readable node:type » Make machine readable node type field option discover-able
Status: Fixed » Needs review

Forgot to update status sorry for the bugspam.

Status: Needs review » Needs work

The last submitted patch, content type machine name.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new555 bytes

Just uploading a test which can be applied by the testbot

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs usability review

Last time I needed this checkbox, I had to find it by grepping the codebase.
I'm going to be bold and say this needs no formal usability review.

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

As this is a major part of the functionality of that specific handler, it totally makes sense to move them out.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.