I'm trying to create a view (block) that shows the QR code, short URL, and social media links (tweet, like, etc.). I see from #1431440: Views integration that there is Views integration, but I can't seem to figure out how to use it.

I have a view for Content, but don't see any fields where I can add the short URL for that page. Am I missing something?

Comments

icecreamyou’s picture

Category: support » feature

This feature doesn't exist. I've marked several similar issues "by design" in the past, and I still think it's not a great idea since you can end up with a lot of requests to an external URL shortening service on one page, but I suppose I should leave that decision up to site builders.

mrpeanut’s picture

I must not understand how it works. How would I have a lot of requests? Maybe I didn't explain what I'm looking for correctly...

For any given URL (that could be a panel, it could be a view, a view within a panel, or a node on its own), I'd like a QR code in the sidebar for that URL. So, my thought was, mydomain.com/panel would only be one request, mydomain.com/view would only be one request, and mydomain.com/node would only be one request.

I was just going to create a view to create that QR code (and even then, I was only going to use a view because I was going to add other information, like a short URL and social media links).

icecreamyou’s picture

Category: feature » support
Status: Active » Fixed

I think I misunderstood what you're trying to do because it sounds like you're abusing Views. Views is for making lists of things, not for displaying additional information about a single page. If you want to just display the short URL of the current page, you can do that with the "Short URL" block.

mrpeanut’s picture

How do I display additional information about a single page, then? I've always created a view with a block with a contextual filter.

My goal was to have the short URL, QR code, and social media links all in one block. I can't do that with the default Short URL block.

icecreamyou’s picture

Category: support » feature
Status: Fixed » Active

If it were me I would do it at the theme or block layer, but I guess if Views works for you you can stick to it. But right now Shorten URLs doesn't provide a Views field for node views with the short URL of the node.

hanno’s picture

As an alternative to a block view with a contextual filter you could use the module display suite to display additional node information in a region.

icecreamyou’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

This will be fixed by #2317241: Better token support