Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-12-22 20:01:21
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Possible to add browse images to Article Image? *Fixed*
Is there any way of adding an field in the “Write articles”-area in the admin panel?
It would be better if my writers could browse images from their own computer instead of uploading images at the web and linking to them.
Thank you, Thomas.
Solution:
1. Add this plugin to your site: http://textpattern.org/plugins/330/bas_img_selector
2. Add the extensions in admin panel.
3. Upload images at “Images” under the Content tab.
4. Find a picture. Press add, and your done!
Notice: You may need to add some code if you’ve not controlling article images through forms and so on.
Last edited by Sono Juventino (2007-12-23 00:58:00)
Offline
Re: Possible to add browse images to Article Image? *Fixed*
Offline
#3 2007-12-22 20:47:39
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Re: Possible to add browse images to Article Image? *Fixed*
Almost what I’m looking for, but this plugin does nothing to “Article Image”. Therefor my layout will look like this when posting. (Look at the lower left news)
I don’t wanna be lame and requiring, but this plugin won’t help me without some editing. Could someone point out the file to edit to add this option at the Article Image-option? I’m not much of a coder myself, so I would love it if someone took the time to work this out. I think this is highly wanted for sites with without highly knowledged people.
Again, sorry for my bad english. I hope it’s understandable. :)
Edit: And before you ask: “Yes, i’ve copied the code <txp:image id="2" />
into my article. (The code i got after uploading a picture.)
Last edited by Sono Juventino (2007-12-22 20:49:18)
Offline
Re: Possible to add browse images to Article Image? *Fixed*
See txp:article_image Place it inside article form and then just place the image’s id inside article’s image-field at the Textpattern’s write tab.
Cheers!
Offline
#5 2007-12-22 21:18:31
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Re: Possible to add browse images to Article Image? *Fixed*
This code is located inside my “default” form: <txp:article_image class="main_img" />
Images are displayed when I’m writing a link inside the “Article Image field” at the write tab. This plugin gives me a browse and upload button at the bottom of the tab. When I upload, I’m getting code like this: <txp:image id="2" />
I’ve tried to insert that code both in the article field and in the Article Image field at writen tab.
Maybe I’m doing this just the wrong way. Appologising my incompetence. :)
What would really be great, if you got these browse and upload buttons below the “Article image”, and when uploading, you would get local links like “C:\webdesign\latest_project\Juventusnorge\images\buffon.jpg”
Last edited by Sono Juventino (2007-12-22 21:18:50)
Offline
Re: Possible to add browse images to Article Image? *Fixed*
do you mean you want the outputted copy-paste code to be article-image instead of image? or do you mean like a button to press so the article image # automatically gets placed in the article image input?
Offline
#7 2007-12-22 21:23:50
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Re: Possible to add browse images to Article Image? *Fixed*
That’s about it. I want the outputted code to bee article-image instead of image. My main problem is that I could do all this manually, but the rest of the writers don’t.
Maybe I’m misunderstanding, but this is not related to lazyness. I could live with copying the code from the browse field to the article-image field, but that’s not working.
Offline
Re: Possible to add browse images to Article Image? *Fixed*
Maybe I’m misunderstanding, but this is not related to lazyness. I could live with copying the code from the browse field to the article-image field, but that’s not working.
You should copy the plain image id to the article image-field, not that <txp:image id="2" />
-tag. In that case just use 2
, and you would be good to go.
Cheers!
Offline
#9 2007-12-22 22:53:41
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Re: Possible to add browse images to Article Image? *Fixed*
Ah, Of course! Stupid of me. In frustration of not getting it to work, i found this plugin http://textpattern.org/plugins/330/bas_img_selector. It is really great and gives me the option of browsing my entire upload-folder.
The only problem, well it’s not even a problem, just anoying, is the warning I’m getting in the footer after installing it. Notice: Undefined index: bas_img_sel_start_cat in /mounted-storage/home60a/sub001/sc15504-VBWD/*****/tp/textpattern/lib/txplib_misc.php(534) : eval()'d code on line 85
Offline
Re: Possible to add browse images to Article Image? *Fixed*
make sure you installed the preferences for bas_img_selector.
keeping on topic, i don’t know why you’re pasting the whole txp:image code into the article image field…that only accepts the article image id.
Last edited by iblastoff (2007-12-22 23:35:49)
Offline
Offline
#12 2007-12-23 00:42:39
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Re: Possible to add browse images to Article Image? *Fixed*
iblastoff wrote:
i don’t know why you’re pasting the whole txp:image code into the article image field…that only accepts the article image id.
Just a little lack of experience and knowlege on how the system works. ;)
Offline