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
Setting the default state of new subcategories and images uploads.
- doodlebug
- Phoca Member

- Posts: 17
- Joined: 15 Jul 2015, 14:08
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Setting the default state of new subcategories and images uploads.
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
Jan
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
Jan
If you find Phoca extensions useful, please support the project
- doodlebug
- Phoca Member

- Posts: 17
- Joined: 15 Jul 2015, 14:08
Re: Setting the default state of new subcategories and images uploads.
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:
*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>- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Setting the default state of new subcategories and images uploads.
Hi, see forum rules, you can paste external image per e.g. imgur service.
If you find Phoca extensions useful, please support the project