Domanda

I created a content type TestType.

I would like to have a field type Link. This type will list all my current page in a dropdown.

Is there any existing module for that?

Update

I have a content type Called
SlidesShow. For each page (Home, Services, Menu =>SubMenu (Principal, dessert etc..) the SlideShow content is different.
In this case When the customer enter a new SlideShow Content in the Content manager, I want him to specify witch page this slideshow content will be apply throught a dropdown list.

Note : If I add a new page, the dropdown list should be automaticaly updated.


FieldType : Body
FieldType : Image
FieldType : PAGE LIST (This is what I'm looking for)

È stato utile?

Soluzione 2

What do you mean by "This type will list all my current page in a dropdown"? If you want to have a field with a dropdown with options as all the node pages, you might be better putting a node reference field there.

Altri suggerimenti

Well now i think i get your use case. Here is what you need to do:

  1. in the slideshow content type create a textfield for specifying the page. Here is one thing to consider. If you are sure the pages in which you will use the slideshow will be specifically node pages you add a node reference field instead of textfield.

  2. While creating the view, use a contextual filter on the field and specify a default value to get the current page URL. You can use views php module to add a php filter instead of contextual filter and pull in $_GET['q'] of the page.

I hope this helps. please let me know if you have other queries.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top