I have functioning Views displays (page or content pane yields same result) rendered as tabs within multiple regions of a Panel Page (set as homepage). Each region represents a different type of content and each tab represents a different view with a limited number of nodes by using different pager settings than the original view. I am trying to get the "more" link of those panels to point to another Panel Page rather than directly to the Views page itself. The secondary Panel Page would have just one region with multiple tabs for the different views of its given content type. This page would have more space to show more nodes and more fields than is possible on the homepage.
The path of secondary page would be example.com/type which makes each tab's URL example.com/type#tab-name. This works just fine from the browser, but not as the Override URL. If I enter type#tab-name it converts to type%23tab-name which doesn't resolve. If I enter type%23tab-name it converts to type%25%23tab-name which clearly doesn't resolve either.
I looked through numerous issues and through the module code itself, but could not find a way to allow for anchors in the URL to be resolved as "#" properly. As a workaround, I can hardcode a link to the secondary page in the footer of the views display itself, but I'd prefer to have the "more" link override handle the anchor. Any suggestions/patches/alternatives are appreciated. I have the utmost respect for CTools/Views/Panels which I have used heavily in my production site Local Music Vibe. Feel free to hit that link to see what I've attempted to describe above. Currently each of the "more" links on the tabs point directly to their respective views and I'm hoping to implement the secondary panel pages soon so I can get all the layout capabilities of Panels.

Comments

clem.chuang@gmail.com’s picture

I have the same problem,the '#' is written into the database table correctly,but some thing encode it while retrieving the url.
You can fix it by overriding the template file 'views-more.tpl.php',a little dirty.

<div class="more-link">
  <a href="<?php print preg_replace('/%\d+/', '#', $more_url); ?>">
    <?php print $link_text; ?>
  </a>
</div>
merlinofchaos’s picture

Status: Active » Closed (works as designed)

At this time the use of anchors in the override URL is not supported.