A little help on a block element and get a free licence!
Permalink 1 user found helpful
Hi Guys
I am building a specific block for my client but can't think for the life of me how to get it to work as I am having a stupid moment! ;-P
If you can help me out I will give you a free licence to one of my pay add-ons as I'm going nuts!
My client needs a drop down menu within the block that contains the following:
<select name="Status">
<option value="" selected></option>
<option>Approach</option>
<option>Desktop</option>
<option>Site visit</option>
<option>Approved</option>
<option>Heads of term issued</option>
<option>Heads of term agreed</option>
<option>Lease issued</option>
<option>Lease agreed</option>
<option>Planning application submitted</option>
<option>Planning application response</option>
<option>Planning application granted</option>
<option>G59 application submitted</option>
<option>G59 quotation received</option>
<option>G59 quotation accepted</option>
<option>Civil works quotation requested</option>
<option>Civil works quotation accepted</option>
<option>Kit ordered</option>
<option>Kit delivery</option>
<option>Site installation date agreed</option>
<option>DNO advised of installation date</option>
<option>DNO accept installation date</option>
<option>Civil works contractor advised of installation date</option>
<option>Civil works contractor accept installation date</option>
<option>Control cabinet manufacturer advised of installation date</option>
<option>Control cabinet manufacturer accepts installation date</option>
<option>Installation complete</option>
<option>Site commissioned and operational</option>
<option>3 month service complete</option>
</select>
When my client selects one of the options when adding the block it then places he text of that option on the page. If they edit it and select a different one and update, it changes on the page.
Im just not sure how to get the option to the page.
Probably very simple!!
Hope someone can help.
Cheers
I am building a specific block for my client but can't think for the life of me how to get it to work as I am having a stupid moment! ;-P
If you can help me out I will give you a free licence to one of my pay add-ons as I'm going nuts!
My client needs a drop down menu within the block that contains the following:
<select name="Status">
<option value="" selected></option>
<option>Approach</option>
<option>Desktop</option>
<option>Site visit</option>
<option>Approved</option>
<option>Heads of term issued</option>
<option>Heads of term agreed</option>
<option>Lease issued</option>
<option>Lease agreed</option>
<option>Planning application submitted</option>
<option>Planning application response</option>
<option>Planning application granted</option>
<option>G59 application submitted</option>
<option>G59 quotation received</option>
<option>G59 quotation accepted</option>
<option>Civil works quotation requested</option>
<option>Civil works quotation accepted</option>
<option>Kit ordered</option>
<option>Kit delivery</option>
<option>Site installation date agreed</option>
<option>DNO advised of installation date</option>
<option>DNO accept installation date</option>
<option>Civil works contractor advised of installation date</option>
<option>Civil works contractor accept installation date</option>
<option>Control cabinet manufacturer advised of installation date</option>
<option>Control cabinet manufacturer accepts installation date</option>
<option>Installation complete</option>
<option>Site commissioned and operational</option>
<option>3 month service complete</option>
</select>
When my client selects one of the options when adding the block it then places he text of that option on the page. If they edit it and select a different one and update, it changes on the page.
Im just not sure how to get the option to the page.
Probably very simple!!
Hope someone can help.
Cheers
nice one Chad!
Did not know C5 did this on the fly.
Will give it a go shortly.
PM me which add-on you would like. ;-)
Did you manage to log on to the test site OK?
Did not know C5 did this on the fly.
Will give it a go shortly.
PM me which add-on you would like. ;-)
Did you manage to log on to the test site OK?
That worked a treat. I never even tried this as I thought there would be some script to print the option. So it was simple! LOL
Thanks Chad.
feel like a dunce now! ;-P
Thanks Chad.
feel like a dunce now! ;-P
make sure all options have a value="x".
after that...in the block view.php. just reference <?=$Status?> to print
no need to define it. C5 does that automatically.
Just make sure the value is going into the db though.
Chad