Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-08-13 12:39:52
- AdamK
- Member
- From: Kraków, Poland
- Registered: 2009-08-11
- Posts: 47
path to images in css
Hello
I am lost, please, could anyone show me a reference:
When uploading an image by txp interface, the name of the actual file in /images is changed to it’s id. The old name is stored as a “name” (BTW wrongly translated as “login” in Polish translation).
When I want to refer my css to a picture in /images, I have to supply the new id-name. Is there any way to use the basic name of the image? When prototyping a layout I prepare css locally, changing 20+ image references in css is not easy and error prone :(
Greetings
Adam
Offline
#2 2009-08-13 12:46:57
- AdamK
- Member
- From: Kraków, Poland
- Registered: 2009-08-11
- Posts: 47
Re: path to images in css
Oh, one more thing:
is there a plugin, which would scan an image folder for every unindexed picture and allow to register it with txp (give an id and so on)?
Adam
Last edited by AdamK (2009-08-13 12:47:28)
Offline
#3 2009-08-13 13:03:56
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: path to images in css
AdamK wrote:
When I want to refer my css to a picture in /images, I have to supply the new id-name. Is there any way to use the basic name of the image?
No, the css reference needs to point to the numerical filename given by Textpattern.
When prototyping a layout I prepare css locally, changing 20+ image references in css is not easy and error prone :(
While txp’s interface is convenient, I use ftp exclusively to manage all images, graphics, scripts that are part of the site design. That way I can use any names I want and keep txp’s image library uncluttered. It also has the added benefit that other users can’t accidentally delete images that are used in your design framework.
is there a plugin, which would scan an image folder for every unindexed picture and allow to register it with txp (give an id and so on)?
No. However you can batch-upload large numbers of images using for instance ebl_upload
Last edited by masa (2009-08-13 13:04:17)
Offline
#4 2009-08-13 13:16:44
- AdamK
- Member
- From: Kraków, Poland
- Registered: 2009-08-11
- Posts: 47
Re: path to images in css
Thank you for the great answer. I will consider separating layout files from the content files: it’s not a problem with the site I design now, but you are right about multiuser environment and cluttering.
Thx
Adam
Offline
Re: path to images in css
fpx_image_import Can import images from the file system.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Pages: 1