Support is offline. We are back Monday 23 November, 09:00.

Add template ID as column #76415

Resolved Locked keep opened this topic Thursday, 22 June 2023 · 7 replies
Author

As far as I can see with Joomla 4 + RO CSVI users can show/hide columns when listing templates. What do you think about adding an ID column for that. It would be handy when you need an ID for a CLI script or just find the last added template by ordering the templates by csvi_template_id descending.

Support

Hello,

It would be handy when you need an ID for a CLI script

I assume you know you can find the ID on the first page when you edit a template. The reason it is not in the list is because there is already a lot in the list and the ID is used so rarely, we do not want it to take up even more space in the listing.

just find the last added template by ordering the templates by csvi_template_id descending.

That is what the ordering column (first column) is used for now, new templates get a higher ordering number.

I am definitely not against your suggestion, just not sure about the amount of screen space it takes up. Yes, you can filter the column in J4 but you cannot do that in J3.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

I agree mostly. But here a scenario: I manage a site with ~60 CSVI templates. Some of them are run from a CLI script, by template id. Like
/usr/local/bin/php /home/myuser/public_html/administrator/components/com_csvi/helper/cron.php --key="mysecretkey" --template_id="38"'

When I need to debug this, I need to find out which is template#38. Sure it's on the details page, and I can modify the url adding the correct id, so it's doable.
Maybe for this scenario would be a search phrads: "id:38" would be a quick solution, how Joomla works for content, modules, users, etc.

But this isn't so important for sure :D

Support

Hello,

Maybe for this scenario would be a search phrads: "id:38" would be a quick solution

I like that and agree should be implemented. This will be added for the next release.

When I need to debug this, I need to find out which is template#38

You know, you can also use the template alias instead of the ID. This might give you a faster clue of which template is being used.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

I like that and agree should be implemented. This will be added for the next release.

cool, thanks

You know, you can also use the template alias instead of the ID. This might give you a faster clue of which template is being used.

yup, but

  • it can be changed by the managers.
  • I'm just an occasional debugger, not the builder :)
Support

Hello,

cool, thanks

If you want it early, you can load the attached patch file from the maintenance menu.

  • it can be changed by the managers.

:o

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author
  • it can be changed by the managers.

I had a case, where I used to place a module to an article with regularlabs' modules anywhere, using the module's name. It was fine, until a site manager noticed a typo in the module name. He fixed it, and with that he ruined the embeding :) Since then I prefer using id :D

Support

:D :D :D

I can totally relate to that, been there, done that.

Since then I prefer using id

Until the next manager comes along and deletes the module and creates a new one to fix the problem ;)

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

This topic is locked. New replies are not possible.

Log in to reply to this topic.