HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


images

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#34377 (In Topic #7743)
Avatar

Well-settled

adding images to a download section

I have added downloads to a download section, all perfect. Now I add a picture to a download, this results into 1 gallery for every download.
So if you have 20 downloads you get also 20 galleries.

Thats not how it must working. I have made a gallerie downloads with some sub dirs, there comes the pictures in. But now you will have no picture to the download file…….

Can someone help with this, I don't get it  O_o
Back to the top
 
Posted
Rating:
#34379
Avatar

Sorry, I don't really understand your problem/question.
ocPortal uses the name of the gallery (e.g. a gallery named downloads_10 for download #10, if I remember correctly). As long as the name is right, the gallery should work, but I don't know why you would not just let ocPortal create them for you.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34380
Avatar

Well-settled

hmmmm strange I have trye again to get a picture by the download file, now its working.

But I see the picture now as a gallerie in the gallerie root, oke.

But if this is happen for all the download files, I got a very large list of galleries with only 1 picture in it!!
 
I want that all the other pictures from that download section come into the same gallerie and thats not possible??

see what I mean at fyc-gron.nl  galleries/downloads. 2 files twee galleries???


Last edit: by Harry
Back to the top
 
Posted
Rating:
#34381
Avatar

You can type this into OcCLE:

Code

:set_value('download_gallery_root','my_downloads')

(replace 'my_downloads' with the name of a gallery where you'd like to store your download galleries underneath).

You can then make it so that gallery doesn't have view permissions if you wish.

This change only happens for new download galleries, but existing ones may be moved manually anyway.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34382
Avatar

Well-settled

Thanks Chris I will try that option!.


I got this error:
<fyc-gron.nl>

There was a problem retrieving the XML data:
404: Not Found.


If I try the code from you I got This:

The command you entered does not exist.

So its not working sorry.

Greets HARRY


Last edit: by Harry
Back to the top
 
Posted
Rating:
#34391
Avatar

Hi,

I'm not sure how this error would happen, unless if files are missing (perhaps data/occle.php). However, you can also add this value using phpMyAdmin.
Add a new row into the ocp2_values table, with the the_name field as download_gallery_root and the the_value field as my_downloads and the date_and_time field as 0.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34392
Avatar

Well-settled

The file /data/occle.php is there. So thats not the problem.
I will try the solution by hand.

Harry
Back to the top
 
Posted
Rating:
#34394
Avatar

Well-settled

oke this is not working also. I have found a another solution for my problem about this.
I have used the Cedi for it.

Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: