Beginner's Guide to Creating Discourse Plugins Part 5: Admin Interfaces

plugins
(Robin Ward) #41

Just so I can update the original post, what steps were required to fix this tutorial?

0 Likes

(David Taylor) #42

If it was what I said, then no changes, other than maybe a message to say how important it is that file names are exactly correct

0 Likes

(Mittineague) #43

I don’t know how far things should go for teaching prerequisite “basic knowledge”. But I think a lot of the troubles are when it is not only the first Discourse plugin but also an early venture into Ruby / Ember

That is, an unfamiliarity with the conventions that do “magic”. When structure and naming look like arbitrary is OK but it isn’t it can be a pain to figure out what’s wrong.

The “this can be whatever, this must be” stuff.

7 Likes

(Cheng Zheng) #44

Work for me!
2018-4-29

1. Code




2. Result

3 Likes

(Jay Pfaffman) #45

Glad it worked, but It is always better to post code than pictures of code.

3 Likes

(Cheng Zheng) #46

Thanks for reply
original post have all these code,
it’s not necessary for me to post code again.

The purpose of these picture is to show it work, give viewer a big picture view
(not for viewer to copy&paste)
(code in code editor have nicer code highlight)

0 Likes

(Josh) #47

If anyone runs into a testing error, I had to add id="show-tentacle" to the button component to get the tests to pass in part 6 of the tutorial:

<div class="buttons">
  {{d-button label="purple_tentacle.show" action="showTentacle" icon="eye" id="show-tentacle"}}
</div>
0 Likes