Page 1 of 1

Layout changes on upload form

Posted: 17 Aug 2010, 10:28
by LarsTCT
I have changed the layout of the upload form. For our users it makes more sense to have the upload form first and then the list of already uploaded files.

Now my problem is that I also want the "Choose Section and Category" part to be in the upload form and not just in the uploaded files list, (see image) as it makes more sence to have it here when it is required before you are able to upload anything.
Image
I have managed to find and copy/move the "Section and Category dropdown", but it doesn't work as I guess I also need to add/change some code before it wille work.

The file I have modified is in components/com_phocadownload/views/user/tmpl/default_files.php

This is the code I have copied and moved to the upload form:

Code: Select all

<?php echo $this->listsfiles['sectionid']; echo $this->listsfiles['catid'];?>
My programming skills is not very good so would appreciate any help..

Re: Layout changes on upload form

Posted: 21 Aug 2010, 16:12
by Jan
Hi, for now I am not able to give you some advices, 1/2 years ago I am working with 1.6 framework where there will be no more sections in Phoca Download :-( :-(

Jan

Re: Layout changes on upload form

Posted: 21 Aug 2010, 17:53
by LarsTCT
Okay.. Thought it would be easy and just a minor change.

Just want to move the Section and category dropdown from the form where the list of uploaded files are to the form where you upload the file, as I have done in the attached image. It is easy to move the dropdown boxes but the functionality have to move with it and how can this be achived?

By the way thanks for this and all the other great components you have made.. Really really great work :wink:

Re: Layout changes on upload form

Posted: 22 Aug 2010, 23:14
by Jan
If you will change e.g. the template only (only move the form fields) and you move it to other view, you need to see view.html.php too, to copy all the loaded data, to copy e.g. hidden element in form too, etc.

Re: Layout changes on upload form

Posted: 19 Oct 2010, 18:44
by abrabab
Were you able to do the layout change? Iam trying to do the same. Please post your solution.

Re: Layout changes on upload form

Posted: 20 Oct 2010, 08:22
by LarsTCT
Nope, unfortunately I didn't succeed in changing the layout :(