Page 1 of 1
Custom Webtags
Posted: Tue 09 Mar 2021 6:26 pm
by stefanbagnato
This may already be covered somewhere (that I didn't see) so I apologize in advance. However, I wanted to know if there is any way we can make our own customer webtags. As an example, let's say it has been a particularly rainy week. I want a 'Rainfall Last 7 Days' tag. Now it can be a rolling 7 days, not specifically "this week". To get the data from SQL would be super easy. I just don't really know how/where the webtags are configured. Is anything like this possible?
Re: Custom Webtags
Posted: Tue 09 Mar 2021 6:37 pm
by freddie
Webtags are generated in the code of the executable, so addition of new tags will involve coding. Not trivial.
Re: Custom Webtags
Posted: Tue 09 Mar 2021 9:52 pm
by stefanbagnato
Hm okay. Kind of figured since I could not find them anywhere else. I can deal with html and css and sql, but that's about it.
Re: Custom Webtags
Posted: Wed 10 Mar 2021 9:46 am
by mcrossley
If you have the data in MySQL then you can extract just about any information you want from it.
Re: Custom Webtags
Posted: Wed 10 Mar 2021 8:50 pm
by stefanbagnato
Mark, yes, but how do I get it into a webtag? Or is your idea not so much a webtag approach, but more of inserting into a variable? (which I can do for powershell, but not really sure on applying to html)
Re: Custom Webtags
Posted: Wed 10 Mar 2021 8:59 pm
by mcrossley
Most people use PHP on their web server to insert the data into the page. Though there are lots of alternatives like writing it to a file and getting the client to load it via Ajax etc. etc.