WBCE CMS – Way Better Content Editing.
Du bist nicht angemeldet.
WBCE CMS 1.6.9 verfügbar / available - wichtiges Sicherheitsudate / important security update
Hatten wir das schon mal?
ich verwende für eine Schmuckdesignerin etliche Abschnitte mit Ruuds Minigalerie.
Funzt auch brauchbar, jedoch möchte die Kundin es so haben, dass die Dateinamen auch automatisch im Caption als Text ausgegeben werden.
Beispiel wie es aussehen soll:
http://testpage.grafik-job.de/pages/hom … alerie.php
Ruuds Album mit Caption:
https://dev4me.com/modules-snippets/ope … allery-v2/
Hat wer einen Rat wo ich welche Schrauben drehe, damit der Dateinamen mit ausgeben wird?
Online
Hier gab es einen Ansatz, ich weiß aber nicht, ob das mit der aktuellen MG noch geht bzw. überhaupt zu einem befriedigenden Ergebnis geführt hat.
https://forum.wbce.org/viewtopic.php?pid=15079#p15079
Offline
byteworker
Danke, den Beitrag habe ich nicht mehr gefunden 
Online
Ruud hat mir geholfen, ist für andere hier eventuell auch interessant. Es gibt 2 Wege, um den Dateinamen des Bilder in den Captions und im Slider auszugeben:
It is not very difficult to add though. (for new uploads only!)
In functions.php find the line (around line 264) that says
$message = "Saving: ".$filename. '';
Below that line add this:
global $section_id;
$tmpfilename = pathinfo($filename);
$caption = str_replace(array('-','_'),' ',$tmpfilename['filename']);
minigallery_save_caption ( $section_id, $filename , $caption );
Now every new upload will have the filename as caption (also changing the "-" and "_" to a whitespace).
You can always overrule the caption the normal way later.
Another option is to do it when the images are displayed..
in view.php find the loop that reads all images:
foreach($images as $img) {
below that add this:
if(!$img['caption']) {
$tmpfilename = pathinfo($img['file']);
$img['caption'] = str_replace(array('-','_'),' ',$tmpfilename['filename']);
}
Every image without a caption will now get the filename as caption.
Feel free to "publish" these hacks in the forum if you think it might help others :-)
Cheers,
Ruud
Online
florian, bernd