2 Cleaning up a bit
source | link

I have a view which shows a list of articles.

url is, located at:  

mypage.com/articles

Each article is linked to it'sits main sub page view.

, like this:  

mypage.com/articles/name-of-my-artile-yay

The URL path is created with autopath & URL aliases.

HowIn views, how do I in views create a contextual filter to show only the selected sub page view.?

I have this as my path in views:

articles/%

but don't know where to go from here. I tried title and then making it lowercase and replacereplacing spaces with a Hyphenhyphen, but that wontwon't always work and the URL aliases change the URL such asthat it removes works egwords like:

a, an, as, at, before, but, by

And if a page title is:

This is my page title - with this

This is my page title - with this

The URL alias becomes:

my-page-title

my-page-title

Therefor wontTherefore it won't be able to match in my contextual filter using the page title.

Any help with this is very much appreciated.

CWhat am I missing?

I have a view which shows a list of articles.

url is:  

mypage.com/articles

Each article is linked to it's main sub page view.

like this:  

mypage.com/articles/name-of-my-artile-yay

The URL path is created with autopath & URL aliases.

How do I in views create a contextual filter to show only the selected sub page view.

I have this as my path in views:

articles/%

but don't know where to go from here. I tried title and then making it lowercase and replace spaces with a Hyphen but that wont always work and the URL aliases change the URL such as removes works eg:

a, an, as, at, before, but, by

And if a page title is:

This is my page title - with this

The URL alias becomes:

my-page-title

Therefor wont be able to match in my contextual filter using the page title.

Any help with this is very much appreciated.

C

I have a view which shows a list of articles, located at:

mypage.com/articles

Each article is linked to its main sub page view, like this:

mypage.com/articles/name-of-my-artile-yay

The URL path is created with autopath & URL aliases.

In views, how do I create a contextual filter to show only the selected sub page view?

I have this as my path in views:

articles/%

but don't know where to go from here. I tried title and making it lowercase and replacing spaces with a hyphen, but that won't always work and the URL aliases change the URL such that it removes words like:

a, an, as, at, before, but, by

And if a page title is:

This is my page title - with this

The URL alias becomes:

my-page-title

Therefore it won't be able to match in my contextual filter using the page title.

What am I missing?

    Notice removed Draw attention by cybercampbell
    Bounty Ended with Gregory Kapustin's answer chosen by cybercampbell
    Tweeted twitter.com/#!/StackDrupal/status/300910180844056576
    Notice added Draw attention by cybercampbell
    Bounty Started worth 50 reputation by cybercampbell
1
source | link

Drupal 7 Contextual Filter on URL Alias

I have a view which shows a list of articles.

url is:

mypage.com/articles

Each article is linked to it's main sub page view.

like this:

mypage.com/articles/name-of-my-artile-yay

The URL path is created with autopath & URL aliases.

How do I in views create a contextual filter to show only the selected sub page view.

I have this as my path in views:

articles/%

but don't know where to go from here. I tried title and then making it lowercase and replace spaces with a Hyphen but that wont always work and the URL aliases change the URL such as removes works eg:

a, an, as, at, before, but, by

And if a page title is:

This is my page title - with this

The URL alias becomes:

my-page-title

Therefor wont be able to match in my contextual filter using the page title.

Any help with this is very much appreciated.

C