Adding an upload button
Posted: 19 Aug 2011, 21:46
I found that it was helpful to have an upload button directly in the template to make uploading easier. This can be applied to most category/section/sections files.
(This uses the existing blue button style which I personally don't use anywhere else. I probably need to change the little icon that goes with it though...)
Right under the 5th line in the category default.php file, where it says, "<div class="componentheading'......", insert the following code on the next line:
For styling purposes, it is also important to add the following to the componentheading div on the line above:
Enjoy!
(This uses the existing blue button style which I personally don't use anywhere else. I probably need to change the little icon that goes with it though...)
Right under the 5th line in the category default.php file, where it says, "<div class="componentheading'......", insert the following code on the next line:
Code: Select all
echo '<div id="phoca-dl-category-box" style="float:right;color:white;font-weight:bold;"><div class="pd-category"><div class="pdpreview'.$this->tmpl['button_style'].'"><div><a href="apartment-forms/upload-files" rel="nofollow">Upload</a></div></div></div></div>';
Code: Select all
style="display:inline;"