Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hello, I have a question. When downloading a gallery image created by couch cms it comes with the name of the image I uploaded:

example:

Gallery.php on the panel -> upload image -> name: photoname.png

going to the gallery.php and clicking save image as the image name is "photoname.png" same when I uploaded

My question is if I can automatically create random names when saving the image.
Use an editable of type securefile. File names will have random alphanumeric names.
trendoman wrote: Use an editable of type securefile. File names will have random alphanumeric names.



thanks man but i tried here and it didn't work i think because i already have the repetable. Here is an excerpt from my code:

<div class="owl-stage" style="transform: translate3d(-2340px, 0px, 0px); transition: all 0.25s ease 0s; width: 5460px;">
<cms:show_repeatable 'fotos_portfolio' >
<div class="owl-item active gallery-grid" style="margin-right: 30px;">
<div class="project-detail-item grid">
<a href="<cms:show portfolio />" data-lightbox="example-set"><img alt="p-detail" src="<cms:show portfolio />"></a></div>
</div>
</cms:show_repeatable>
</div>
Securefile type is very special. There is a dedicated tag cms:show_securefile for its output. I do not see it in the posted code, why?
P.S. Also check out cms:cloak_url, maybe it will be enough to temporarily hide filenames in generated HTML?
trendoman wrote: Securefile type is very special. There is a dedicated tag cms:show_securefile for its output. I do not see it in the posted code, why?
P.S. Also check out cms:cloak_url, maybe it will be enough to temporarily hide filenames in generated HTML?



try to put it and it doesn't work, I don't know if it's putting it in the right place, but try putting a tag over the repeatable:

<div class="owl-stage" style="transform: translate3d(-2340px, 0px, 0px); transition: all 0.25s ease 0s; width: 5460px;">
<cms:show_securefile>
<cms:show_repeatable 'fotos_portfolio' >
<div class="owl-item active gallery-grid" style="margin-right: 30px;">
<div class="project-detail-item grid">
<a href="<cms:show portfolio />" data-lightbox="example-set"><img alt="p-detail" src="<cms:show portfolio />"></a></div>
</div>
</cms:show_repeatable>
</cms:show_securefile>
</div>
Nah, it won't work like that.. It's not enough to mindlessly throw tags in code.
6 posts Page 1 of 1
cron