Помогите разобраться с передачей аргументов из Panels во Views

Главные вкладки

Аватар пользователя Sergey1 Sergey1 12 марта 2008 в 4:04

Сделал View, которое работает по аргументу таксономии, в режиме Page отладил - все замечательно работает - выводится list'ом ноды с заданным term ID. И сделал даже больше: поставил taxonomy redirect, и перенастроил свое View, чтобы ноды выводились по term name, которое дает taxonomy redirect.

А вот с запихиванием этого View в Panel у меня реальная проблема. Куча аргументов, непонятно, куда вообще что ставить, внятных инструкций в гугле нет. В лучшем случае у меня получается View, которое всасывает чуть ли не вообще все термины на сайте. В худшем - вообще пустое View.

Теперь о ситуации поподробнее:
У меня есть словарь tag, который Free Tagging. Taxonomy redirect перенаправляет его термины с taxonomy/term/%termID на tag/%termName, все работает, как уже выше писал в Page View без вопросов.

Теперь, вот что стоит в Arguments во View:
Taxonomy: Term Name, больше ничего.

Заковыка, видимо, в панели Tag, которую я создаю из своего View. Там есть форма Argument: Taxonomy: Term Name. В ней, значит, в Argument source: я выбираю From context, а в Required context: - Taxonomy term. Логично, не правда? Panel argument: стоит First. Остальное, вроде, работу View "на панели" затрахгивать не должно.

Ну, и наконец, вкладка Context на моей панели.
Здесь в Arguments выбираю тоже Taxonomy term. В Argument type: выбираю Term Name. В Vocabularies помечаю галкой свой словарик Tag.

Ну и все. И при таких условиях у меня на www.mysite.com/tag/sample_tag в нужной панели ничего не высвечивается.

Что я делаю не так? Может, вообще taxonomy redirect не совместима с аргументами панелей? Или надо ориентироваться на term id. Подскажите, пожалуйста!

Комментарии

Аватар пользователя Sergey1 Sergey1 12 марта 2008 в 8:48

Вот еще поместил на http://drupal.org/node/219328#comment-766160 уточненное описание проблемы (извините за мой французский). Помогите плз!

I am completely lost, too, in the matter of passing argument from Panel Pages to my Panel View. I've setup and tested sweetly in View Page mode a simple block view called "Tag" with argument = Taxonomy: Term ID. This View displays certain nodes from the "Tag" free-tagging vocabulary. Than I've wrapper my "Tag" View with Panel View also called "Tag" with Argument source: = "From panel argument| and Panel argument: = "First". Finally, I create a Panel Page called also "Tag" with Path: = taxonomy/term (or taxonomy/term/% - I've tested a bunch of cases, and not only with Path:). In Context -> Arguments of my "Tag" Panel Page I select "Taxonomy term", and than set up Argument type: to "Term ID". Also I check my "Tag" Vocabulary on the "Taxonomy term" option pane. That's it!

The last step is adding "Tag" Panel View to the Panel Page and testing it with normally working URLs like taxonomy/term/tid. Two types of behaviour are possible on this stage: "Tag" Panel View displays either nothing or all of my content, either grouped by Summary type defined in Views argument configuration, or just a simple list View. What is surprising that Panel Page displays taxonomy term name in it's header, but it seems that this argument is not passed to the Panel View -> View. What am I doing wrong?