Problems, need help? Have a tip or advice? Post it here.
8 posts Page 1 of 1
Hi,
i've created a gallery page in this way:
Code: Select all
<cms:template title='Galleria' order='4' clonable='1' dynamic_folders='1' gallery='1'>

   <cms:editable
      name="gg_image"
      label="Foto"
      desc="Carica la tua foto qui"
      width="1136"
      show_preview='1'
      preview_height='200'
      type="image"
   />

   <cms:editable
      name="gg_thumb"
      assoc_field="gg_image"
      label="Thumbnail"
      desc="Thumbnail della foto"
      width='157'
      height='157'
      type="thumbnail"
   />
   
   <cms:editable
      name="gg_thumb2"
      assoc_field="gg_image"
      label="Thumbnail2"
      desc="Thumbnail della foto2"
      width='157'
      height='157'
      type="thumbnail"
   />
   
</cms:template>


I like so much the popup edit funcion... it is possibile to add it for masterpage/listing page
a tag for edit entire gallery ? (like the section in admin)

Thanks for support
Hi, and welcome :) Just to confirm - do you want to use this http://docs.couchcms.com/concepts/on-page-editing.html to edit any gallery picture on front end?
Thanks
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Hi, thanks !
Yes, I made a page (listing page i presume) which i show all foto uploaed in the admin section (with subfolders too).
I'd like a popview in this page with the same functions of "gallery admin section".

I'd like to not show the admin interface to final admin user (all inline editing) and gallery is for now the only obstacle.

Thanks for your replies
Mimicking the functions of admin panel is not an easy job, because that might include moving images between folders, uploading and deleting pictures, changing their published-unpublished status and set dates to make them appear in a certain order.

If the above description is not what you are looking for, then let me suggest a simple 'edit image' example, which will work for your client in case of swapping existing images with some new ones.
Code: Select all
  <cms:pages >
 
      <img src="<cms:show gg_image />" alt="" /><br>
      <cms:popup_edit 'gg_image' />
   
  </cms:pages>

I am sure you'd be able to see the standard popup edit tag and output of all the gallery images via cms:pages tag. Make sure you put in <head> <cms:load_edit /> and voila. Once admin is logged in, then link 'edit' will appear for every image of the gallery in the frontend. The key is to put cms:popup_edit tag inside the cms:pages loop, so it will be autoduplicated with correct settings for each image.

Does it help?
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Thank you trendoman,
i've tried your approach, but it allow only to modify images, not adding or managing folders.

You are right, mimicking this funcion is not easy, and not important i think.

I'd like to transform my site in a way that isn't necessary to go to admin panel...

but i think to go in this way: hide all pages in admin section for admin user, except for "gallery.php"... and create a link in front-end, only for admin user, to go to the
admin section-->gallery (the only section visible).

many thanks for your support
You are welcome, @sybilla.

Can I ask you to share some details of why you try to avoid the user to login to backend? I'm just curious, we are free, no doubt, to do whatever we like with couch and our clients :)

Once you hide all templates from the admin, except the gallery, then upon loggin, client will always come to the first visible template, i.e. gallery and therefore a simple link to couch admin folder is all you need to provide to your client. Actually, even to inline/popup edits to be available, client must login to admin panel first and will be driven to it as a result of successful login. My point is, it is not an easy task to hide 'everything', because login system is still there.

So the process looks like this (in case everything is hidden) - login to couch -> see empty admin panel (except 'users' page) -> click on View website -> now can make edits. I guess, your decision to make gallery available there is a good one!
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Hi and thanks again, @trendoman.

I want to tell to my client: <<This site is entirely modificable "live, in real time, without admin panel, only with credetials">>

The flow is as follows:

1.My Client (admin account, no super-admin) visit the site.. in the footer he click on "Members area" button"
2.A login page appear.. the client inserts credentials and after login he returns automatically in the same page he visited.
Code: Select all
<cms:if k_logged_in == '1' >
<a href="<cms:show k_logout_link />" title="Esci dall'Area Riservata"><span class="fa fa-unlock-alt primary"></span></a>
<cms:else />
<a href="<cms:show k_login_link />" title="Area Riservata"><span class="fa fa-lock primary"></span></a>
</cms:if>

3.The client modify with inline edit and popup edit all the site.
4.If the client wants to manage photos... he go to gallery page... there is a link:
Code: Select all
<cms:if k_logged_in == '1' >
<a href="<cms:show k_admin_link />"  target="_blank"><span class="fa fa-picture-o primary"> Manage Gallery</span></a>
</cms:if>

a click on this link --> new page appear, admin section, with only "gallery" and "user" visible

The client doesn't know the link for admin section.
I Know, this is not important and/or not useful... but i like it. :D
@sybilla, thanks for sharing with us, appreciate it! Hope to see your website in the 'showcase' forum some day :)
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
8 posts Page 1 of 1