TinyPortal

Development => Support => Topic started by: davo88 on March 25, 2024, 06:44:08 PM

Title: Change defaults for article viewing options
Post by: davo88 on March 25, 2024, 06:44:08 PM
I have many articles to enter (100+ initially, then ongoing) and am wondering if it is possible to edit a TP template to change the default 'Viewing options'. Currently the defaults are mainly all 'on'.
Snag_3302ba4d.png

It would save a lot of clicking around if I could edit and set them to my preferred state as shown below.
Snag_330594e4.png

I had a look at TParticle.template.php but it's to complex for me to follow.
Title: Re: Change defaults for article viewing options
Post by: @rjen on March 26, 2024, 07:34:29 PM
Had a look into that before, but it is not easy to set that the way these variables are set.
I cannot help with this
Title: Re: Change defaults for article viewing options
Post by: tino on March 26, 2024, 08:54:40 PM
I think I did a package for wildenborch which used a hook to set different defaults. I can't find it currently but it's an attachment on here.
Title: Re: Change defaults for article viewing options
Post by: @rjen on March 26, 2024, 09:00:28 PM
Found it....

https://www.tinyportal.net/index.php?msg=301703
Title: Re: Change defaults for article viewing options
Post by: @rjen on March 27, 2024, 06:21:01 AM
Jeez, missed the defaults in TportalAdmin.php completely...

Must be having an off-day
Title: Re: Change defaults for article viewing options
Post by: davo88 on March 27, 2024, 06:29:40 AM
Wow... thanks guys. That's a very handy little mod. It's great that TP has so many article options, but they can become a bit tedious when posting a stack of articles. I added a bit of info to the Article Defaults (https://www.tinyportal.net/index.php?msg=304232) topic in case anyone else is wondering how it works.
Title: Re: Change defaults for article viewing options
Post by: tino on March 27, 2024, 05:16:06 PM
Quote from: davo88 on March 27, 2024, 06:29:40 AMWow... thanks guys. That's a very handy little mod. It's great that TP has so many article options, but they can become a bit tedious when posting a stack of articles. I added a bit of info to the Article Defaults (https://www.tinyportal.net/index.php?msg=304232) topic in case anyone else is wondering how it works.

Thanks, I do have a habit of just doing something as a proof of concept then never documenting it!