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
dangrth
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

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
dangrth replied on at Permalink Reply
dangrth
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.
ramonleenders replied on at Permalink Reply
ramonleenders
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
dangrth replied on at Permalink Reply
dangrth
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.
ramonleenders replied on at Permalink Reply
ramonleenders
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
ramonleenders replied on at Permalink Reply
ramonleenders
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

concrete5 Environment Information

/

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.