Is it possible to add field types relatived to topics ?
Permalink Browser Info Environment
It would be very useful to have a field for selecting a topic category or topic(s) item(s). Is it something you could easily add ?
Type: | Discussion |
---|---|
Status: | In Progress |
Hi,
For topic category, the idea would be to create a block similar to the Topic List, where the "Topic Tree" field lets you select a topic category.
Likewise, it would be to create a block with a field that lets you select a single topic (for instance 'sport').
I have not looked yet into how to difficult it is to add new field types to Block Designer.
For topic category, the idea would be to create a block similar to the Topic List, where the "Topic Tree" field lets you select a topic category.
Likewise, it would be to create a block with a field that lets you select a single topic (for instance 'sport').
I have not looked yet into how to difficult it is to add new field types to Block Designer.
So you'd like to select 1 topic out of ALL available topics, or you should select a tree first or... What do you have in mind?
It's quite easy to make a simple field type, like a text box, but I'm assuming you're aiming for something more complicated. Could still be simple though, depends on your requirements. I'm currently in a shitload of work, so can't get to this anytime soon unfortunately. I can think with you or give hints/tips where needed if you want to give this a try yourself though. Let me know what you think.
Kind regards,
Ramon
It's quite easy to make a simple field type, like a text box, but I'm assuming you're aiming for something more complicated. Could still be simple though, depends on your requirements. I'm currently in a shitload of work, so can't get to this anytime soon unfortunately. I can think with you or give hints/tips where needed if you want to give this a try yourself though. Let me know what you think.
Kind regards,
Ramon
In my precise use case, I just need to select one topic from one tree - I could hardcode the specific tree. Of course, I would prefer to build something more generic with a higher chance of reuse, but I could do something quick and dirty myself. I will contact you if I'm stuck with building the new field type.
Makes perfect sense. If you are willing to create something like this, I'd be happy to go over your code at some point and implement it in the core. This way you will have this new field type always in the core of Block Designer, instead of searching for it in your other project(s). And there could be some updates from my side of course.
Feel free to ask stuff, happy to help.
Kind regards,
Ramon
Feel free to ask stuff, happy to help.
Kind regards,
Ramon
Did you manage to build this? And what exactly did you need in the "view" from the topic? I mean, what should be outputted on the site, what the visitor/user sees?
Kind regards,
Ramon
Kind regards,
Ramon
There is no "Topic category" or "Topic item" field type unfortunately. Perhaps you can explain a bit more what you would like to do/achieve?
Kind regards,
Ramon