Within the following url "/admin/build/block" I have a region called "Header Top" and within it I have 3 blocks assigned to it. One of the 3 blocks called "primary links" has 6 links and one of those links called "Home" has a URL link to the main page. I would like to vary the URL of the "Home" link depending on the current page URL. How would I implement this programmatically?
Thanks,
Could you be more specific? You want to alter the path of the "Home" link depending on the existing page? What determines how this will change?
On Fri, Apr 1, 2011 at 8:05 AM, John Mitchell mitchelljj98@gmail.comwrote:
Within the following url "/admin/build/block" I have a region called "Header Top" and within it I have 3 blocks assigned to it. One of the 3 blocks called "primary links" has 6 links and one of those links called "Home" has a URL link to the main page. I would like to vary the URL of the "Home" link depending on the current page URL. How would I implement this programmatically?
Thanks,
-- John J. Mitchell
-- [ Drupal support list | http://lists.drupal.org/ ]
*You want to alter the path of the "Home" link depending on the existing page? *Yes*
What determines how this will change? *The URL of the current page will determine the contents of the "Home" link. Right now the "Home" link is hard coded within the block to go the main page (i.e. https://domainname), but sometimes depending on the url of the current page I would like the "Home" link to go to it's associated storefront page (i.e. https://domainname/michigan/oceana-county).
John * *
On Fri, Apr 1, 2011 at 1:32 PM, Carl Wiedemann carl.wiedemann@gmail.comwrote:
Could you be more specific? You want to alter the path of the "Home" link depending on the existing page? What determines how this will change?
On Fri, Apr 1, 2011 at 8:05 AM, John Mitchell mitchelljj98@gmail.comwrote:
Within the following url "/admin/build/block" I have a region called "Header Top" and within it I have 3 blocks assigned to it. One of the 3 blocks called "primary links" has 6 links and one of those links called "Home" has a URL link to the main page. I would like to vary the URL of the "Home" link depending on the current page URL. How would I implement this programmatically?
Thanks,
-- John J. Mitchell
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]