Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3233640
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:18:00+00:00 2026-05-17T17:18:00+00:00

i am using the views 2 module. i have a view that gets a

  • 0

i am using the views 2 module.
i have a view that gets a taxonomy term as an argument.
i want my view to display a text, in case there are no found items, “Cannot find any $args[0]”.
where $args[0] is the view argument.
but i cant figure out a way to add php code to the empty text configuration, i can see it supports filtered and full html, but no php code option.
any help ?
and if we are on the subject,
how can i add a view page display that has an argument to a drupal menu ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:18:00+00:00Added an answer on May 17, 2026 at 5:18 pm

    If you want to run php code in order to create your markup, you should really do it in a custom module, which is probably the reason that views doesn’t support it. You could create a custom module, and do the check yourself and use views_embed_view to display the view you want, or just create the page yourself if the argument is not found or invalid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view setup in the Views module that outputs an RSS feed
I'm using the Views RSS Module and want customize the display a bit more
I'm using Drupal 6 with the Views module. I have a view with an
I'm using Drupal 7 and Views module in my site. And want show number
On my Drupal site, I have made a Users page using the Views module,
I am using Views to display a gallery. Right now I have set up
I have partial view that displays model-specific flash messages. The partial looks like: app/views/mymodel/_flashpartial.erb
I have an application, built using MVC, that produces a view which delivers summary
Kind-of a crazy question here... I have a view display that's set up as
I'm using the Drupal views module to create an overview of nodes. In the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.