Hello fellow Couchers,
I could use a hint on something. I have a homepage that consists only of one template with pages, no list or home view. I want to display a certain page called 'home' when a list view or home view is being called for. So far, I have used this:
I have two problems with this. The first is that some hosts really don't like 301 redirects and cause trouble (Internal Server error 500). The other one is that I think doing this is incredibly not elegant.
Another way I tried to achieve this was the following. Which, alas does not work because it attempts to write a system variable:
Can someone give me a hint on how to implement this?
I could use a hint on something. I have a homepage that consists only of one template with pages, no list or home view. I want to display a certain page called 'home' when a list view or home view is being called for. So far, I have used this:
- Code: Select all
<cms:if k_is_page >
<html>
//the entire page view
</html>
<cms:else />
<cms:redirect url="<cms:link masterpage='index.php' page='home' />" />
</cms:if>
I have two problems with this. The first is that some hosts really don't like 301 redirects and cause trouble (Internal Server error 500). The other one is that I think doing this is incredibly not elegant.
Another way I tried to achieve this was the following. Which, alas does not work because it attempts to write a system variable:
- Code: Select all
<cms:if k_is_page == '0'>
<cms set k_page_name = 'home' />
</cms:if>
Can someone give me a hint on how to implement this?