Customization of short code with more parameters
-
I like the ng-weather plug-in but would love to implement (or ask for someone to contribute) two changes. I manage a website for a HOA in Florida and would like to show the temperature for my location (Ellenton FL) but the closest location displays as Bradenton:
[ng-weather api-key=”MY_API_KEY” city-id=”4148708″ locale=”en”]
Could we add a parameter on the short code (passed as a conditional parameter to the angular directive) for city-display-name?Ask #2 is a bit more complex. Since we are in Florida, we have a lot of residents who are either here for the winter or have relocated permanently from elsewhere in the country. I’d love to create a second widget that displays the temperature for one of several locations contained in a javascript array (or referenced in a local JSON file) such that I could do something like the following in my short code:
[ng-weather api-key=”MY_API_KEY” city-id=”0″ locale=”en”]
When city-id=0 then the getTemperature() function in ng-weather.js would use the location array to randomly pick one of several locations to display that temperature (and location).Thoughts?
- The topic ‘Customization of short code with more parameters’ is closed to new replies.