• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Creation of separate pages with image upload facility

joeborn

Chevereto Member
We are trying to create separate pages each of which shows images corresponding to that page and gives guests the option to upload images with captions. Currently we only see an option to write source code in the page creation section. Please guide us on what is the way forward.
 
You need to create pages and on each page insert your custom PHP/CSS/HTML code. I'm sorry if you thought that this will be easy or that I will do it for you because that won't happen.

This is not a minor request and you should be aware of that.
 
I understand we aren't expecting it to be easy. I'm just asking for the shortcode or the code needed to be used to upload the images. Further I also wanted to know the effect on the theme due to the code inserted

The images that are uploaded need to go to the corresponding repository for that page. I'm specifically asking you for that. If it was just a PHP code which uploads images to a database then we probably do not need to be using chevereto in the first place. If you are able to understand what I'm talking about.

Further, I would also need the shortcode to display all the images in a particular category in a page. As per your earlier recommendation we would need to store images uploaded in different pages as different categories. Thus these need to be displayed in the page.
 
Last edited by a moderator:
I'm just asking for the shortcode or the code needed to be used to upload the images.
There isn't a shortcode for that. However, you can use all the built in methods to upload like CHV\Image::uploadToWebsite.

Further I also wanted to know the effect on the theme due to the code inserted
No effect, pages run stand-alone from theme.

The images that are uploaded need to go to the corresponding repository for that page. I'm specifically asking you for that.
There's no way to achieve that unless you do something like associate uploads with categories or add your own table relations in the database. In fact, you should just use categories for this and customize the categories view... Why make it more complex than it is.

Further, I would also need the shortcode to display all the images in a particular category in a page
There is a listing class that do that for you. Examples of it can be found at app/routes folder, check for: route.album.php, route.category.php, route.explore.php, route.user.php, route.search.php, etc. You can list absolutely everything.

Cheers,
Rodolfo.
 
Back
Top