XF 2.2 Template Macros & Node Icons Imgur

Liam C.

Member
Hi there! I have two questions in regards to styling/customization.

First, template macros. I have setup a template macro with a bunch of options, they work perfectly, however I am wondering if there is a way to use an array as args? Basically when this template is used, many URLs will be used, so I do not wish to create many arguments over and over and instead have it so it'll see how many items are in the array, and then proceed with that. So for example ["test1", "test2"], and then I can use that array in the styling.

Second, node icons. I'm looking to use Imgur (an image hosting platform) to show different icons. Meaning that we can use our own icons without needing to upload them locally. I have seen other places doing this by background-image url(), however I am unable to replicate it. Could someone point me in the right direction for this? If it requires an addon or such.

Many thanks!
 
Found some more information. Created a page node, and does not pop up either.
1717929881271.webp
It pops up on the styling, just not on the page.

Not sure if this information helps!
 
Back
Top Bottom