1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

programmatically change link URL in view

Discussion in 'Programming/Internet' started by Finn, Oct 8, 2018.

  1. Finn

    Finn Guest

    I have a view that shows all of a particular user's content (content the user has created on the site). This works fine, but I need to link the results (title field) to the pages where the content is displayed - not to the original node of the created content.

    Since the content types may be different, I guess I need to set the URL's programmatically.

    For example one content type is "projects" projects are displayed at site.com/projects/!arg

    Another content type is "photos" photos are displayed at site.com/photos/!arg.

    How do I write a conditional that will set the URL's correctly?

    Login To add answer/comment
     

Share This Page