Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[archived] mrz_file_preview
Notice: This plugin is no longer available.
**********************************************************
Inspired by the idea from Chris Campbell , who was inpired by the TargetAlert extension for Mozilla firefox, this plugin will place an icon unobtrusively next to your file link, indicating what file type lies behind the link.
Download & Documentation
<br />How To Use
<br />Just place the <txp:mrz_file_preview />
(will show a single file wrapped in a div tag) or <txp:mrz_file_preview_list />
(presents a list of files in ol or ul tags) tag wherever you want in your article or article form. The file list can be filtered by ID, Category, Filename or No. of downloads. You can see an example of the output here
Last edited by marz (2005-08-01 22:19:02)
Offline
Re: [archived] mrz_file_preview
Hey this looks good. Will try this out for sure.
Thank you very much!
Last edited by creativesplash (2005-07-31 05:45:14)
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline
Re: [archived] mrz_file_preview
Update to Version 0.2
<br />Rewrote the existing functions. No longer using TXP’s doWrap and doTag. They make things cumbersome at this point.
Added the mrz_file_list_preview tag
Restricted the mrz_file_list_preview tag to use only ol and ul as wraptags.Working on allowing different wraptags and breaktags.
Removed the ‘Core Settings’ from the previous version. All settings can be changed from the tag using the attributes.
Last edited by marz (2005-08-01 22:11:26)
Offline
Re: [archived] mrz_file_preview
Update to version 0.3
<br />Fixed wraptag not getting the correct class in mrz_file_preview_list
Allowed category attribute in the tag mrz_file_preview_list to accept a comma separated list.
Added the type, sort and sortby attributes.
Last edited by marz (2005-08-01 22:11:06)
Offline
Re: [archived] mrz_file_preview
I assume we add our own image through CSS to the class that is automatically assined?
Also, I would like to be able to turn off classes on the header and list wraptag like so: headerclass=”“ , listclass=”“. If these are set like this then no class shows up in the markup.
Refresh Dallas and other Refreshing Cities.
Offline
Re: [archived] mrz_file_preview
<blockquote>I assume we add our own image through CSS to the class that is automatically assined?</blockquote>
Yep. Heres my css (for the plugin tag I set listclass=“icon-list” and class=”“):
<pre><code>ol.icon-list, ul.icon-list { padding: 0; }
ol.icon-list li, ul.icon-list li
{
margin: 0 0 2.3em 0;
background-repeat: no-repeat;
background-position: left;
}
.icon-list li.php { background-image: url(/assets/images/icons/php.png); }
.icon-list li.txt { background-image: url(/assets/images/icons/txt.png); }
.icon-list li.css { background-image: url(/assets/images/icons/css.png); }
.icon-list li.js { background-image: url(/assets/images/icons/js.png); }
</code></pre>
<blockquote>Also, I would like to be able to turn off classes on the header and list wraptag like so: headerclass=”” , listclass=””. If these are set like this then no class shows up in the markup.</blockquote>
I’ll do this and update the plugin asap.
Offline
#7 2005-11-28 11:03:52
- Vitruvius
- Plugin Author
- Registered: 2004-09-21
- Posts: 125
Re: [archived] mrz_file_preview
I have just posted a thread in the feature requests forum that this plugin could be developed to solve.
The request is to add more sort features to file lists. Specifically to sort by date (be it date uploaded – which is currently not recorded, or date modified – which is??)
Anyway – I thought I’d ask marz to see if you have any idea how this might be achieved.
(Great plugin BTW – it has def. come in handy!)
SH
Offline
#8 2005-11-28 11:52:54
- Vitruvius
- Plugin Author
- Registered: 2004-09-21
- Posts: 125
Re: [archived] mrz_file_preview
mmm – I should have seems the solution was staring me in the face…
Offline
Re: [archived] mrz_file_preview
(Another dead-links plugin thread)
If anyone has the latest version of this plugin file, and it works with the latest version of Txp, would you be so kind as to add it to the Plugin Archives
Thank you.
Offline
Re: [archived] mrz_file_preview
the website to download this plugin does not seem to work…any ideas???
Offline
Re: [archived] mrz_file_preview
Chris, look at the dates of the posts above yours – this plugin died years ago.
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
Pages: 1
Topic closed