by
KK » Mon Jul 16, 2012 3:01 am
Hi,
The 'masquerade' tag does not change the URL but it requires cURL library to be available on your server. In case cURL is not available, the tag falls back upon redirection. It seems that is what is happening in your case.
Anyways, we still have the 'pages' method.
In your template above, you have a single editable region named 'big_image' and this is the portion where its value is used
- Code: Select all
<div id="bigpic_box" style="background: url('<cms:show big_image />') no-repeat scroll 0 0 #fff;" >
</div>
</body>
We need to differentiate in the code as to whether we are dealing with a cloned page (e.g. index.php?p=12) or the home page (e.g. index.php). this is how we do it -
- Code: Select all
<cms:if k_is_page >
<div id="bigpic_box" style="background: url('<cms:show big_image />') no-repeat scroll 0 0 #fff;" >
</div>
<cms:else />
<!-- we are showing the home page -->
</cms:if>
What you wish is that while dealing with the home page, we show contents of the first cloned page. This can be done by making the following changes to the code above
- Code: Select all
<cms:if k_is_page >
<div id="bigpic_box" style="background: url('<cms:show big_image />') no-repeat scroll 0 0 #fff;" >
</div>
<cms:else />
<!-- we are showing the home page -->
<cms:pages masterpage='index.php' id='1'>
<!-- we have content of the first page here to use -->
<div id="bigpic_box" style="background: url('<cms:show big_image />') no-repeat scroll 0 0 #fff;" >
</cms:pages>
</cms:if>
Of course you need to specify the id of the first page (or better still use the 'page_name' parameter and specify the name of the first cloned page).
Hope this helps.