Module Monday mod question


#1

Hello, I was wondering if I could get some assistance on a mod that I grabbed from ‘Module Monday’


#2

Yes, how can we help?


#3

Awesome thanks, it is the Carousel slider which is ‘dbdkb’ under ‘Popular Mods’


#4

the code for the button in the original is

{{#if buttonUrl}}
<a href="#" class="btn btn-primary">
{{ buttonText }}

so I updated it to this so that each slide could have it’s own link

{{#if buttonUrl}}
<a href="{{ buttonURL }}" class="btn btn-default" target="_self"> 
   {{ buttonText }}
</a>
{{/if}}

#5

Ah, that is a good catch


#6

but this is how it renders


#7

hmm, what you’ve written looks correct

I’ve updated the original mod and it seems to be working: https://anymod.com/mod/dbdkb

Is buttonUrl written in the proper case?


#8

Ahh!

no it isn’t

thank you


#9

Ah the joys of coding :smiley:

Thank you for pointing out the original issue though – I really appreciate it!


#10

haha at least I could help so it wasn’t that stupid of a question


#11

Totally, we’re actually building some tools now to make it easier to collaborate and open issues, etc

Stuff like this makes the library much better!


#12

oh nice!

you may have this in your docs somewhere but I did realize that our mod links were changing the url and not going anywhere… but the fix was adding a target=""


#13

This was within an angular app, correct?


#14

yes

at least the site is using angular


#15

Great, thanks. We’ll make a note of it!


#16

anyways, thanks again for your help


#17

Happy to do so, and thanks to you as well