Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-03 16:45:58

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Display file descriptions?

When you upload a file you can add a description to it. What I’d like to do is to extract this info so it’s viewable by the user. The ideal solution would be the user would hover over the file link, and then the description would pop up while hovering.

Is there any way to achieve this?

The site

Thanks in advance

Last edited by sekhu (2006-04-03 16:47:23)

Offline

#2 2006-04-03 18:16:40

whatbrick
Member
From: Texas
Registered: 2006-03-13
Posts: 100

Re: Display file descriptions?

Use <a href=“http://textpattern.net/wiki/index.php?title=Txp:file_download_description_/”>this tag</a> for the description. Then modify the download link in your files form to something like this:

<a href="<txp:site_url />file_download/<txp:file_download_id />" title="<txp:file_download_description />"><txp:file_download_name /></a>

That would be one way to do it. The link above has a list of all the file related tags that you can use to display the file list however you like.


Do not taunt the Markup Monkey!

Offline

#3 2006-04-03 19:23:52

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Display file descriptions?

that’s excellent, whatbrick many thanks again

Last edited by sekhu (2006-04-03 19:28:13)

Offline

Board footer

Powered by FluxBB