Textpattern - A case study of www.weloverestaurants.ie - how it works

Posted 13 April 2010 in the web-design category

Having built a listings web site www.weloverestaurants.ie I thought it would be a good opportunity to give back to the txp community with a recording of how we achieved certain things with this great open source cms!

I just want to give you the bits of code highlighted in the tutorials/case study above, and the plug-in’s I mentioned in it:

Default form code:

<h2><txp:title /></h2> <div class="article"> <txp:article_image class="image" thumbnail="1" /> <txp:excerpt /> <txp:body /> <txp:ako_social images="1" imgclass="social" imgsrcdir="images/social" digg="1" googlebookmarks="1" twitthis="1" wraptag="div" wrapclass="social" /> <txp:if_custom_field name="bookingsemail"> <txp:output_form form="bookings" /> </txp:if_custom_field> <txp:if_comments_allowed> <h4>Visitor comments and restaurant promos!</h4> <txp:comments /> <txp:comments_form /> </txp:if_comments_allowed> </div>

Bookings form code:

<txp:zem_contact to='<txp:custom_field name="bookingsemail" />' label="Make a booking enquiry!"> <p><em>Thank you for your interest in this restaurant. The restaurant team will get back to you to confirm details and book your table / event. Please only make booking enquiries at least 24 hours in advance of your chosen date and time, thank you!</em></p> <div> <h4>Contact Details:</h4> <txp:zem_contact_text label="First Name:*" required="1" /><br /> <txp:zem_contact_text label="Surname:*" required="1" /><br /> <txp:zem_contact_email label="Email:*" required="1" /><br /> <txp:zem_contact_text label="Phone:*" required="1" /><br /> <h4>Dining Details:</h4> <txp:zem_contact_select label="Day* - " list=",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31" selected="1" required="1" /><txp:zem_contact_select label=" Month* - " list=",January,February,March,April,May,June,July,August,September,October,November,December" selected="12" required="1" /> <txp:zem_contact_select label=" Year* - " list=",2010,2011,2012" selected="2010" required="1" /><br /><br /> <txp:zem_contact_text label="Time:*" required="1" /><br /><br /> <txp:zem_contact_text label="Number of Adults:*" required="1" /><br /><br /> <txp:zem_contact_text label="Number of Children: (Write 0 if none)*" required="1" /><br /><br /> <txp:zem_contact_textarea cols="40" rows="3" label="Any Additional Requests:" required="0" /><br /><br /> <txp:zem_contact_serverinfo name="REQUEST_URI" label="Page" /> <txp:zem_contact_submit label="Send Enquiry" /> </div> </txp:zem_contact>

Plugins

And just visit www.weloverestaurants.ie to view the end result, and see what you can do with this cms!

Add to social bookmarks: del.icio.us | Tweet this: |


Web Development Karachi

Thanks to give us a valuable information about designing

From this article: Textpattern - A case study of www.weloverestaurants.ie - how it works | Comment: #

Leave a Comment!
















Just click preview first, then submit after image verification and your comment will appear instantly!