Help texts for CMS users
Permalink
Does Concrete5 have any provisions for in-place help for editors?
One example I come across frequently is image sizes. A page layout usually has fixed sizes that uploaded images should observe. I would like to be able to leave hints for editors *inside the page layout* that they see when they edit the page (e.g. "Header image width: 700px").
Does something like this already exist in Concrete 5? If not, does anybody have a good idea how to start with this? I've been thinking about storing the help texts inside each page type, and display a tooltip when the CMS is in edit mode. Does that sound sensible, or is there a "more Concrete5-y" way to do it?
One example I come across frequently is image sizes. A page layout usually has fixed sizes that uploaded images should observe. I would like to be able to leave hints for editors *inside the page layout* that they see when they edit the page (e.g. "Header image width: 700px").
Does something like this already exist in Concrete 5? If not, does anybody have a good idea how to start with this? I've been thinking about storing the help texts inside each page type, and display a tooltip when the CMS is in edit mode. Does that sound sensible, or is there a "more Concrete5-y" way to do it?
Hey, that's not a bad idea at all. I might use that as a workaround, thanks!
I have a few themes that tell you the area width. It pretty simple to do in the theme code.
You can also use css to handle that task:
.area-name img{
width: 100%;
height: auto;
}
will force resize the image to your .area-name width.
You can also use css to handle that task:
.area-name img{
width: 100%;
height: auto;
}
will force resize the image to your .area-name width.
That will just resize it in CSS, it won't stop the actual image being 1000px in download size.
If you use an image block you can constrain it:
http://www.concrete5.org/documentation/using-concrete5/in-page-edit...
If it's a content block, I'd suggest making a custom block for it with Designer Content:
http://www.concrete5.org/marketplace/addons/designer-content/...
Since it's concrete5, there are multiple ways to solve this problem (like Composer) or an override - see this article:
http://www.mesuva.com.au/blog/technical-notes/automatically-resizin...
Hope that helps,
John
If you use an image block you can constrain it:
http://www.concrete5.org/documentation/using-concrete5/in-page-edit...
If it's a content block, I'd suggest making a custom block for it with Designer Content:
http://www.concrete5.org/marketplace/addons/designer-content/...
Since it's concrete5, there are multiple ways to solve this problem (like Composer) or an override - see this article:
http://www.mesuva.com.au/blog/technical-notes/automatically-resizin...
Hope that helps,
John
There are many ways you can do this and one of them is to check the current user permissions, and if they can edit the current page then make a div visible for the user (no matter if the page is in edit mode or not):
You could also use the built in permissions system to have a block only visible for users with edit permissions. Add a content block with whatever info you want and then set the appropriate permissions on the block.
A third suggestion is to have information only to be visible when the page is in edit mode, similar to my first suggestion:
A fourth suggestion, if you have the time and knowledge, is to build your own upload block that will resize and compress the images if they are too big.
<?php $up = new Permissions(Page::getCurrentPage()); if($up->canAdminPage()) { echo '<div class="whatever">Add all your information for the logged in editor in this div</div>'; } ?>
You could also use the built in permissions system to have a block only visible for users with edit permissions. Add a content block with whatever info you want and then set the appropriate permissions on the block.
A third suggestion is to have information only to be visible when the page is in edit mode, similar to my first suggestion:
<?php $c = Page::getCurrentPage(); if ($c->isEditMode()) { echo '<div class="whatever">Add all your information for the logged in editor in this div</div>'; } ?>
A fourth suggestion, if you have the time and knowledge, is to build your own upload block that will resize and compress the images if they are too big.
If you are a very quick but maybe ugly idea would be to rename your editable areas e.g. Change Header to Header Image Must Be 700px.
I know it's not very elegant and the idea sort of falls down depending on what you use each page template for but you never know it may work.