Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Date Time Slots #17

Open
kenjibailly opened this issue Jun 26, 2022 · 0 comments
Open

Feature Request: Date Time Slots #17

kenjibailly opened this issue Jun 26, 2022 · 0 comments

Comments

@kenjibailly
Copy link

I almost got it working, I just need a very small change in the code that I couldn't figure out.

The Idea

Have time slots for best time to post on social media platform and be able to choose them from a list in the content post.

Configuration Solution

  1. In "Schema" create a new class called "OTiming"
  2. Create 2 new properties:
  • name : STRING
  • timing: DATETIME
    image
  1. Edit OPContent class' property "when", change the type to "LINKLIST" (not 100% sure if this is right) and add Linked Class "OTiming"
    image
  2. In Perspectives > OPoster create a new Menu item with url going to "/browse/OTiming"
    image

Problem I'm facing

!! 5. Last step is to change the code to get something along the lines "when.timing" as it is now an array since the "name" attribute has been added. So I dived into the code to check out how this is done and I think I found it, but don't understand it unfortunately.
https://github.com/OrienteerBAP/OPoster/search?q=getWhen%28

I think the solution is simple and the code "getWhen()" should be changed to something like "getWhenTiming()", which obviously doesn't work. I have no knowledge of java nor from orienteer unfortunately, so I don't know where this function goes to "getWhen()".

A helping hand would be awesome! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant