Page 1 of 1

Setting the default state of new subcategories and images uploads.

Posted: 13 Nov 2017, 16:10
by doodlebug
Is it possible to set the default state of any new subcategories and image uploads to 'Published', rather than '- Select State -' ??

Reason being, when uploading photos from my phone, selecting the category and state each time returns the browser to the top of the page, which is frustrating. I am the only one who can upload on my site so there is no issues having it set that way constantly.

Whilst I am asking questions... is it possible to re-order the categories drop down list so the newest ones are at the top?

(Apologies for all the questions)

Neil

Re: Setting the default state of new subcategories and images uploads.

Posted: 13 Nov 2017, 16:32
by Jan
Hi, where exactly, can you paste a screenshot?

I think, the only way can be modifying the model - which loads the data (to set the state) and modifying the function which creates the tree of categories :idea:

Jan

Re: Setting the default state of new subcategories and images uploads.

Posted: 13 Nov 2017, 17:52
by doodlebug
Sure...

*edit... I cannot add an image as the bbcode for images is disabled :(


I have found the piece of code that creates the list but I don't know how to modify it...
In components/com_phocagallery/views/user/tmpl/default_categories.php around line 82:

Code: Select all

</div><div style="float:right">
<?php echo $this->listssubcat['catid'] ?>
<br />
<?php echo $this->listssubcat['state']; ?>
</div>

Re: Setting the default state of new subcategories and images uploads.

Posted: 18 Nov 2017, 14:26
by Jan
Hi, see forum rules, you can paste external image per e.g. imgur service.