How to add right panel as help content in Silverstripe CMS admin [closed] - silverstripe

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
We've got a project which needs in CMS help for some users, to help guide them through various complex processes. This would be for various ModelAdmin screens.
Ideally we want an onscreen help & were wondering whether we can use the right "preview" panel functionality that is used in the /pages/ section of the CMS.
+-----------+------------+--------------+
| Left | Middle | Right |
+-----------+------------+--------------+
| Side Menu | ModelAdmin | Help Content |
+-----------+------------+--------------+
To keep things easy we'd like the Help content come from the CMS SiteTree itself: https://example.com/help/
Would it be possible for the preview panel functionality to be used in this way?
Thank you in advance.

The right panel you refer to is probably the split screen page preview stuff handeled by the SilverStripeNavigator. I've played around with that a few years ago, but found it was to tightly coupled to the CMS/SiteTree to be of any use for custom stuff.
But here a few other ideas of what you can do:
add extra infos to FormFields with ->setDescription("hello world") or/and ->seRightTitle("hello world"), eg:
$fields->addFieldToTab('Root.Main', [
(new TextField('MyFieldName', $this->fieldLabel('MyFieldName')))
->setDescription('Some help text here')
]);
You can improve the usability of the admin by grouping in Tabs and adding headlines
$fields->addFieldToTab('Root.SomeTab', [
//...
new HeaderField('MyHeader', 'Personal Details of this account'),
new TextField('FirstName', $this->fieldLabel('FirstName')),
//...
]);
Add Help Elements inline with LiteralField
$fields->addFieldToTab('Root.SomeTab', [
//...
new TextField('FirstName', $this->fieldLabel('FirstName')),
new LiteralField('MyLiteralField', '<p class="message info">A help description here with any HTML you want. Styled what ever way you want</p>');
//...
]);
build your own custom sidebar.
The Blog Module has a custom sidebar for the "Post Options". You could copy what they've done and instead of putting extra FormFields in there, you could use LiteralField to add any HTML in there you want to display your help information.
I don't have a code example for that at hand, but I'll imagine if you look at the source code of the blog, it won't be to difficult to figure out how they built the sidebar: https://github.com/silverstripe/silverstripe-blog

Related

JavaFX, best node/tools to use for this task? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 13 days ago.
Improve this question
i'm developing as a University project a destkop program that handles restaurant menu's management.
Since i'm new to JavaFX, i don't have knowledge of the various tools i can use. I'll provide a mock up of what i want to create with explanations.
The big rounded rectangles are my 'Categories', so 'Appetizers' and 'First Course' (in my mock up they're in italian, so i'm translating). I want this rectangles to be clickable so they can expand and show the meals they have inside.
By pressing the + button, i want to create a category.
Since my program have to be about organizing the menu, i also want to click the - button and enter a "delete" mode, where checkboxes appear on the left side of both categories and meals, i can select them and pressing 'Confirm' deletes them.
I also want to press the '=' button to order my categories (maybe i want to put Appetizers after First Course, or move meals inside a category).
What do you think is the best tools/library/node i can use to deal with this problem? I've looked up a lot but only found out about TitledPanes or Accordions, but seems to static for what i have to do.
there could be MANY more viable options to deal with this problem.
Understandable, but there are not.
You can be confident that you have the best advised solution to your problem by selecting TitledPanes or an Accordion.
To learn to use these controls, you can prototype using SceneBuilder. You can study layouts in the Oracle tutorials.
Accordions, but seems to static for what i have to do.
See Accordion getPanes() javadoc:
Changing this ObservableList will immediately result in the Accordion updating to display the new contents of this ObservableList.
so the content is dynamic, not static.
can i move the titledpanes' position inside the accordion at runtime?
The order in the pane list determines the order of the displayed panes in the Accordion. Changing the order in the list will automatically change the displayed order, as it is an observed list.

Ckeditor 5 does not render the good css

i'm using CKEditor 5 in a form to wright articles for a website form a backoffice. The editor allow me to put imgs in float when i'm editing but once it's rendered, the img are in verticle align: middle which is not really visually satisfying for an article.
While editing and the expected result in the article
The result in the articleSo my question is, is there a solution to avoid this difference between the edition part and the rendered one ?
Thanks

Swipe gesture menu

I am trying to make this specific menu from the image.
As you can see from the photo, the menu is based on filtering and submitting the custom filter. The way this menu is aimed to be used is by swiping left or right depending on the user's choice as shown in this image.
When swiped, depending on which element is currently located in the trigger point, in this case, the center of the page, it would give it a custom class as shown here.
I understand that question is too broad to be fully answered and I totally agree with that. My aim is to get some sort of help or advice in which direction should I go in order to accomplish this (using a library you know or tutorial explaining similar issues).
** Also if someone has an idea of how to make these elements swipeable, it would be of great help.
Thank you in advance.

Kind of flyout module on my help-page with FAQ Drupal

I want to make a helppage on my Drupal website.
I could easily make this by posting 20 Questions and putting a link behind it to a PDF or another webpage that has the information.
But I want something fancy. I want some kind of flyout module.
Example:
NORMAL STATE
How to add a picture? <-- USER CLICKS
How to add a PDF?
CLICKED STATE
How to add a picture?
If you want to add a picture go to "add resources" on your page and choose a picture...
Click here for a PDF-example.
How to add a PDF?
CLICKED ON ANOTHER QUESTION
How to add a picture?
How to add a PDF?
Bla bla bla bla.
I hope it is clear to you guys what I want. I can't really find a module to do something like this because I don't know how to call it. It isn't really a flyout like from a menu.
Thanks in advance!
If i get what you mean (although I'm not 100% i do!) I think you can achieve what you want with the field collection module and a bit of jquery:
https://drupal.org/project/field_collection
So you'd create a field collection - '20 questions' with fields for question, answer, pdf download etc.
attach it to a content type of you choice.
use css to hide the answers and jquery to show them when a user clicks a question.
Pretty much exactly what's done on this page: http://tdpf.org.uk/resources/glossary-terms

Questions from a newbie [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
Here is my home page: http://www.danmihaila.net/
I am trying to do a few things and I am not sure how because I am new not only to WordPress and web design but also to CSS.
There are three things I want to do right now and I can't really figure out how:
First of all, I use Clear Retina theme.
I know I can change the background color but for some reason when I do this, the background behind the header remains unchanged.
I don't see how I can make my main URL, danmihaila.net load my Home page. Should I set the Home page differently?
How can I add a sub menu to a certain page? What I want is when you hoover your mouse over one specific page, I want it to show a few other sub pages. I assume I have to create some sort of a sub menu but I am not sure.
Solution to point no.3: I figured the parent thing in the pages menu. It seems to do what I want it to do..
But I am getting more and more confused because while trying to figure out the Home page thing, I am starting to not understand what pages are and what a menu is...
Sorry if my questions are trivial but I am really really new to this. I am building this site just to host my Computer Graphics portfolio.
Thank you very much for your time and patience!
Change the background on your #branding in your stylesheet. (Appearence > Editor)
Goto Settings > Reading. On Front page displays: set it to A static page and select your home page.. looks like home-3
for a submenu, goto Appearence > Menus. you can add pages from the left panel to your navigation. If you drag the navigation items, you can re-arrange or nest them. Nested items will be your sub navigation.
I hope this helps.

Resources