We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Add HTML with checkbox field
I want to have some checkbox fields in a region that would effectively add HTML to the page. For example a Twitter checkbox field that when checked added a Twitter button to the bottom of the page. To achieve this I believe I must have the perch:content tag in the template but I do not want it to be displayed directly. My solution is to wrap the perch:content tag in a div with display:none;
Is there a more elegant way of achieving this?
<perch:if exists=twitter_button"> <div style="display:none;"> <perch:content id="twitter_button" type="checkbox" label="Add a Twitter button" /> </div> <a class="twitter button" href="twitter.com" >Twitter</a> </perch:if>
Want to reply to this thread?Login with Perch