Nice filenaming?

Discuss PivotX 2.0.x here. Non-PivotX related discussions go in The Drain.

Nice filenaming?

Postby Harm10 » Sun Oct 11, 2009 1:06 pm

On different places in different coding and/or extensions there are filenames displayed.
Recently Hans has added a function in which the filename in question gets processed to a name that can be nicely displayed. Hence nicefilename. :idea:
http://forum.pivotx.net/viewtopic.php?f=10&t=1056&start=10#p5354
This revision was introduced in a totally different discussion so I felt obliged to create this new post.
Not only to make you aware of this revision but also so we all can point at coding and/or extensions that can use this extra function. If Hans can find the time he'll introduce this feature into the coding and/or extensions that are mentioned here.

Right now this feature is implemented in:
[[ gallery ]] - http://forum.pivotx.net/viewtopic.php?f=10&t=1056&start=10#p5354
media extension - http://forum.pivotx.net/viewtopic.php?f=10&t=1056&start=20#p5375
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Nice filenaming?

Postby Harm10 » Sun Oct 11, 2009 1:10 pm

[[ popup ]] can also use this feature whenever no description is delivered. Currently nothing is displayed when you click on the file or mouseover it. When using description="(thumbnail)" without any Alt value also nothing is displayed. Maybe the use of nicefilename can offer something here?
Something similar is the case with
[[ user field=image ]]
[[ image file=xxx ]]
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Nice filenaming?

Postby Harm10 » Sun Oct 25, 2009 5:14 pm

The recently added feature of [[ gallery_image ]] could be extended with something like attr=nicefilename so you can customize what you want to display for the title. Another feature could be to set the title and alttext to nicefilename if there was nothing specified for those parms when added to the edit gallery.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)


Return to 2.x Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron